[ERROR] vehicleid - 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: [ERROR] vehicleid (
/showthread.php?tid=510129)
[ERROR] vehicleid -
monster010 - 29.04.2014
Код:
C:\gf.pwn(4953) : error 017: undefined symbol "vehicleid"
C:\gf.pwn(4958) : error 017: undefined symbol "vehicleid"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
{
if(Engine[vehicleid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, "* Press 'N' to turn on vehicle *");
return 1;
}
else if(Engine[vehicleid] == 1)
{
SendClientMessage(playerid, COLOR_GREY, "* Engine alrealy running *");
}
}
Re: [ERROR] vehicleid -
Luis- - 29.04.2014
pawn Код:
new vehicleid = GetPlayerVehicleID(playerid);
Add that below the first bracket!
Re: [ERROR] vehicleid -
monster010 - 29.04.2014
Код:
warning 219: local variable "vehicleid" shadows a variable at a preceding level
Re: [ERROR] vehicleid -
Luis- - 29.04.2014
That means you already have it in the function, try searching for it using Control & F.
Re: [ERROR] vehicleid -
gekas - 29.04.2014
Quote:
Originally Posted by Luis-
pawn Код:
new vehicleid = GetPlayerVehicleID(playerid);
Add that below the first bracket!
|
Was hard ?
Re: [ERROR] vehicleid -
Luis- - 29.04.2014
Quote:
Originally Posted by gekas
Was hard ?
|
Huh?