22.08.2010, 08:22
Quote:
When i push compile i get that errors:
Код:
C:\Documents and Settings\SoloW\Desktop\zK Official\pawno\include\JunkBuster.inc(2602) : warning 217: loose indentation C:\DOCUME~1\SoloW\Desktop\eRP.pwn(4374) : error 003: declaration of a local variable must appear in a compound block C:\DOCUME~1\SoloW\Desktop\eRP.pwn(4374) : error 017: undefined symbol "wanted" C:\DOCUME~1\SoloW\Desktop\eRP.pwn(4375) : error 017: undefined symbol "wanted" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors. Код:
if(gTeam[playerid] >= 1||gTeam[playerid] >= 3||gTeam[playerid] >= 4) new wanted = GetPlayerWantedLevel(playerid); SetPlayerWantedLevel(playerid, wanted + 1); |
pawn Код:
if(gTeam[playerid] >= 1||gTeam[playerid] >= 3||gTeam[playerid] >= 4)
{//this is a compound block
new wanted = GetPlayerWantedLevel(playerid);
}//compound block
SetPlayerWantedLevel(playerid, wanted + 1);