SA-MP Forums Archive
Big Problem - 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: Big Problem (/showthread.php?tid=170202)



Big Problem - CoLLYY - 22.08.2010

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.
Lines :
Код:
if(gTeam[playerid] >= 1||gTeam[playerid] >= 3||gTeam[playerid] >= 4)
	new wanted = GetPlayerWantedLevel(playerid);
    SetPlayerWantedLevel(playerid, wanted + 1);
Thx for help!


Re: Big Problem - dax123 - 22.08.2010

Quote:
Originally Posted by CoLLYY
Посмотреть сообщение
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.
Lines :
Код:
if(gTeam[playerid] >= 1||gTeam[playerid] >= 3||gTeam[playerid] >= 4)
	new wanted = GetPlayerWantedLevel(playerid);
    SetPlayerWantedLevel(playerid, wanted + 1);
Thx for help!
declaration of a local variable must appear in a compound block

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);



Re: Big Problem - CoLLYY - 22.08.2010

Now i get that...
Код:
C:\Documents and Settings\SoloW\Desktop\zK Official\pawno\include\JunkBuster.inc(2602) : warning 217: loose indentation
C:\DOCUME~1\SoloW\Desktop\eRP.pwn(4375) : warning 204: symbol is assigned a value that is never used: "wanted"
C:\DOCUME~1\SoloW\Desktop\eRP.pwn(4377) : error 017: undefined symbol "wanted"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.



Re: Big Problem - dax123 - 22.08.2010

Quote:
Originally Posted by CoLLYY
Посмотреть сообщение
Now i get that...
Код:
C:\Documents and Settings\SoloW\Desktop\zK Official\pawno\include\JunkBuster.inc(2602) : warning 217: loose indentation
C:\DOCUME~1\SoloW\Desktop\eRP.pwn(4375) : warning 204: symbol is assigned a value that is never used: "wanted"
C:\DOCUME~1\SoloW\Desktop\eRP.pwn(4377) : error 017: undefined symbol "wanted"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
try this

pawn Код:
if(gTeam[playerid] >= 1||gTeam[playerid] >= 3||gTeam[playerid] >= 4)
{//this is a compound block
    new wanted = GetPlayerWantedLevel(playerid);
    SetPlayerWantedLevel(playerid, wanted + 1);
}//compound block



Re: Big Problem - CoLLYY - 22.08.2010

Thx,no error,but in game when i get 1 wanted level,i get 2 stars... Why?


Re: Big Problem - CoLLYY - 22.08.2010

Resolved !! Thanks dax123 !!


Re: Big Problem - dax123 - 22.08.2010

Quote:
Originally Posted by CoLLYY
Посмотреть сообщение
Resolved !! Thanks dax123 !!
pleasure