Error! - 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: Error! (
/showthread.php?tid=141330)
Error! -
ColdXX - 12.04.2010
err hay guys!
I have an eror on some adminc cars!
Ok so i am using Ladmin and i just did this command
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(PlayerInfo[playerid][Level] < 1)
{
new vehicleid = acar;
new modelid = GetVehicleModel(vehicleid);
if(modelid == acar || modelid == acar)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,0xFF9900AA, "This Vehicle Is Not Allowed");
}
}
return 1;
}
and when i want to compile it i get this error:
Код:
C:\Documents and Settings\Cosmin\My Documents\Downloads\samp03asvr_R7_win32\gamemodes\Stunt.pwn(2766) : error 017: undefined symbol "Level"
can someone help me please?
Re: Error! -
aircombat - 12.04.2010
srry can't help u exept saying u didn't defined "Level" and u have a wrong thing in ur script , it should be :
Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(PlayerInfo[playerid][Level] < 1)
{
new vehicleid = acar;
if(vehicleid == acar)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,0xFF9900AA, "This Vehicle Is Not Allowed");
}
}
return 1;
}