SA-MP Forums Archive
Repair Vehicle HELP - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Repair Vehicle HELP (/showthread.php?tid=428638)



Repair Vehicle HELP - adios1 - 06.04.2013

FIXED! Thank you to everyone who helped me!


Re: Repair Vehicle HELP - adios1 - 06.04.2013

BTW the line 9478 is

Код:
SendClientMessage(playerid, "Usage: /repairveh to repair any vehicle");



Re: Repair Vehicle HELP - judothijs - 06.04.2013

At
pawn Код:
SendClientMessage(playerid, "Usage: /repairveh to repair any vehicle");
Add the color.

And add
pawn Код:
vehicleid = GetPlayerVehicleID(playerid);



Re: Repair Vehicle HELP - DaRk_RaiN - 06.04.2013

You're missing a paramter
Try this
pawn Код:
SendClientMessage(playerid, -1,"Usage: /repairveh to repair any vehicle");



Re: Repair Vehicle HELP - adios1 - 06.04.2013

Quote:
Originally Posted by judothijs
Посмотреть сообщение
At
pawn Код:
SendClientMessage(playerid, "Usage: /repairveh to repair any vehicle");
Add the color.
OMG i can't believe i didn't notice that. Thank you ! Now the only problem is the line

9479 and 9482


Re: Repair Vehicle HELP - judothijs - 06.04.2013

Just edited my post with the other lines


Re: Repair Vehicle HELP - adios1 - 06.04.2013

Where should I add the
vehicleid = GetPlayerVehicleID(playerid);

is it below "else" sir ?


Re: Repair Vehicle HELP - judothijs - 06.04.2013

Yes, below the else{


Re: Repair Vehicle HELP - adios1 - 06.04.2013

I still got errors sir..

error 017: undefined symbol "vehicleid"


Re: Repair Vehicle HELP - judothijs - 06.04.2013

Oops my bad, add 'new' infront of it, so it becomes
pawn Код:
new vehicleid = GetPlayerVehicleID(playerid);