Jump to content

Stylez

Members
  • Content Count

    85
  • Joined

  • Last visited

Everything posted by Stylez

  1. Stylez

    help :?

    oh, thank-you :] for me the hardest thing in scripting are the arguments
  2. Stylez

    help :?

    Hi guys. i made this script but it has 2 errors in debug. [2012-03-28 17:52:27] WARNING: automobiliai\automobiliai.lua:20: Bad 'vehicle' pointer @ 'getVehicleOccupant'(1) [2012-03-28 17:52:27] WARNING: automobiliai\automobiliai.lua:21: Bad 'vehicle' pointer @ 'getVehicleOccupant'(1) BTW. script works fine function engine(driver) local vehicleHealth = getElementHealth(source) if vehicleHealth <= 500 then setVehicleEngineState(source, false) getVehicleOccupant(driver) outputChatBox("((Your engine is broken!))", getVehicleOccupant(driver), 255, 204,0
  3. Stylez

    Help :?

    Thankyou, i got it now :]
  4. I'm newbie in scripting and sometimes i just need an example of script. which i cant find. So, upload it. Than i can see how to scipt. :]
  5. Stylez

    Help :?

    huh? can you explain me more? cuz my english is poor
  6. Stylez

    Help :?

    mhm i know that, i thought that its possible to do that IG. by the way, im making DM map, so there is allots of object's in .map file
  7. Stylez

    Help :?

    Hi guys. I need some help with creating invisible road of shade objects. And i found this topic in other forum http://ffsgaming.net/showthread.php?310 ... -for-DD-DM its says to change dimension of shade to 1 and the last post says to change it to 2 . But when i change interiors to 1 or 2 in editor, the object becomes invisible. Then i enter test mode the object is still visible.
  8. yes thats what i meant. thankyou. :]
  9. thanks, but it works only without timer, when i add timer it says bad argument @ destroyElement
  10. Hey everybody. i am newbie in MTA scripting, but i badly wanna learn it and after few weeks of reading wiki. i tried to make my own script. which will delete the blown cars. i managed to make it so far (serverSide) function refresh (theVehicle) local vehicles = getElementsByType("Vehicle") if isVehicleBlown(theVehicle) then destroyElement(vehicles) end end addEventHandler("onVehicleExplode", getRootElement(), refresh) setTimer(refresh, 5000, 0) but when i run it. it shows errors in debug "Bad argument @ isVehicleBlown" sry, for my english :]
×
×
  • Create New...