17.07.2009, 16:49
Hello,
I have a problem with my wantedlevel
i get 2 warnings
the meaning of my script is that cops can't get wanted and all other people can
this is my script
these my old and newlevel variables
What's the problem?
I have a problem with my wantedlevel
i get 2 warnings
Код:
C:\Gta Sa Server Vernieuwd\gamemodes\freeroam.pwn(1479) : warning 211: possibly unintended assignment C:\Gta Sa Server Vernieuwd\gamemodes\freeroam.pwn(1482) : warning 211: possibly unintended assignment Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Warnings.
this is my script
Код:
if(gTeam[killerid] = !TEAM_COPS) { SetPlayerWantedLevel(killerid, newlevel); SetPlayerWantedLevel(playerid, 0);} if(gTeam[killerid] = TEAM_COPS) { SetPlayerWantedLevel(killerid, 0); SetPlayerWantedLevel(playerid, newlevel);}
Код:
new oldlevel; new newlevel; oldlevel = GetPlayerWantedLevel(killerid); newlevel = oldlevel + 2;