SetVehicleHealth 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: SetVehicleHealth help :) (
/showthread.php?tid=204106)
SetVehicleHealth help :) -
[SU]Fnugski - 28.12.2010
Hello samp forums
i got this
Код:
if (strcmp("/crash", cmdtext, true, 10) == 0)
{
SetVehicleHealth(vehicleid, 100);
SendClientMessage(playerid,1,"Your vehicle has been Destroyed.");
return 1;
}
but it gives me this fail when i compile
error 017: undefined symbol "vehicleid"
whats wrong
ps i want to set the vehiclehealth to 100 so the car explodes
Re: SetVehicleHealth help :) -
Jochemd - 28.12.2010
vehicleid -> GetPlayerVehicleID(playerid);
Re: SetVehicleHealth help :) -
Mean - 28.12.2010
pawn Код:
new vehicleid = GetPlayerVehicleID(playerid);
Re: SetVehicleHealth help :) -
_rAped - 28.12.2010
pawn Код:
if (strcmp("/crash", cmdtext, true, 10) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
SetVehicleHealth(vehicleid, 100);
SendClientMessage(playerid,1, "Your vehicle has been Destroyed.");
return 1;
}
Edit:
Too slow because of the flood protection =/