SA-MP Forums Archive
I need some clarification.. - 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: I need some clarification.. (/showthread.php?tid=420934)



I need some clarification..[SOLVED] - Dagg - 07.03.2013

E:\**********************\***\gamemodes\***.pwn(78 62) : error 017: undefined symbol "vehicleid"
E:\**********************\***\gamemodes\***.pwn(78 63) : error 017: undefined symbol "vehicleid"

Yet these are the lines in question:

pawn Код:
new Float: farostoli_vHealth;
vehicleid = GetPlayerVehicleID(playerid);
GetVehicleHealth(vehicleid, farostoli_vHealth);
if(farostoli_vHealth < 350.0) return SendClientMessage(playerid, COLOR_RED, "The car is far too damaged, and has failed to start.");
else if(farostoli_vHealth < 900.0 && farostoli_vHealth >= 800.0) return VehicleEngineChances(playerid);
return 1;
>vehicleid = GetPlayerVehicleID(playerid);
Any suggestions?


Re: I need some clarification.. - Denying - 07.03.2013

new vehicleid = GetPlayerVehicleID(playerid); replaces vehicleid = GetPlayerVehicleID(playerid);


Re: I need some clarification.. - Dagg - 07.03.2013

Quote:
Originally Posted by Denying
Посмотреть сообщение
new vehicleid = GetPlayerVehicleID(playerid); replaces vehicleid = GetPlayerVehicleID(playerid);
Much appreciated, I apologize, I'm quite tired, so I'm overlooking a lot today.


Re: I need some clarification.. - Denying - 07.03.2013

I know the feeling. I've been trying to figure out something yesterday all day long and when I did figure it out I felt like I know nothing about Pawn. xD

Was happy to help.