04.12.2012, 19:16
My script
Anyone able to help me with these errors? Kind of confused as i have defined the variable..
new pVariable=0;
edit - Edited code/errors as i fixed 1 of the errors
pawn Код:
CMD:XXXXXX (playerid, params[])
{
if(pVariable=0;
{
return 0;
}
if(IsPlayerInRangeOfPoint(playerid,XXXXXXXXXXXXX))
{
SendClientMessage(playerid, 0xFFFFFFFF, "XXXXXXXXXXXXXX");
DestroyPlayerObject(playerid, XXXXX);
CreatePlayerObject(XXXXXXXXXXXXXXXXX);
CreatePlayerObject(XXXXXXXXXXXXXXXXX);
CreatePlayerObject(XXXXXXXXXXXXXXXXX);
CreatePlayerObject(XXXXXXXXXXXXXXXXX);
CreatePlayerObject(XXXXXXXXXXXXXXXXX);
}
return 1;
}
}
Код:
C:\Users\Scripting.Ash-PC\Desktop\Roleplay\filterscripts\xxx.pwn(245) : error 017: undefined symbol "pVariable" C:\Users\Scripting.Ash-PC\Desktop\Roleplay\filterscripts\xxx.pwn(245) : warning 215: expression has no effect C:\Users\Scripting.Ash-PC\Desktop\Roleplay\filterscripts\xxx.pwn(252) : error 017: undefined symbol "pVariable" C:\Users\Scripting.Ash-PC\Desktop\Roleplay\filterscripts\xxxr.pwn(252) : warning 215: expression has no effect C:\Users\Scripting.Ash-PC\Desktop\Roleplay\filterscripts\xxx.pwn(256) : warning 225: unreachable code Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
new pVariable=0;
edit - Edited code/errors as i fixed 1 of the errors