Big Problem
#1

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!
Reply
#2

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);
Reply
#3

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.
Reply
#4

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
Reply
#5

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

Resolved !! Thanks dax123 !!
Reply
#7

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


Forum Jump:


Users browsing this thread: 1 Guest(s)