12.05.2012, 20:46
Hey guys/girls. I am new with scripting and have been getting a few commands to work without errors. I wanted to create a command to fix a players vehicle. This command would be used by the player to fix their own vehicle. I tried a few variations and a few days and have not developed a solution. Could someone enlighten me onto what i'm doing wrong? The code is:
Thanks!
P.S. With the code above, I am able to compile, run, and play on the server. However, when I use the command in a vehicle, it does not work.
Код:
if (strcmp("/fixveh", cmdtext, true) == 0) { new vehicleid; IsPlayerInVehicle(playerid, vehicleid); RepairVehicle(vehicleid); return 1; }
P.S. With the code above, I am able to compile, run, and play on the server. However, when I use the command in a vehicle, it does not work.