wanted level
#1

Hello,

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.
the meaning of my script is that cops can't get wanted and all other people can

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);}
these my old and newlevel variables

Код:
	new oldlevel;
 	new newlevel;
 	oldlevel = GetPlayerWantedLevel(killerid);
  	newlevel = oldlevel + 2;
What's the problem?
Reply
#2

You have a "= !" which should be "!=" then a "=" which should be a "==".

Take a look on the Wiki for more information about operators or check the pdf.
Reply
#3

lol stupid mistake i am blind xD

thanks
Reply
#4

No problemo.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)