little help please
#1

can somebody tell me whats this mean??

Код:
C:\Documents and Settings\xy\Desktop\SAMP\testing\newscripts\filterscripts\neon.pwn(604) : warning 211: possibly unintended assignment
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
Код:
if(strcmp(cmdtext, "/kucagore", true) == 0)
{
if (pTeam[playerid] = TEAM_NINJA)
{
new string[128];
new movetime = MoveObject(glenh1, 1853.94000000,-1066.30000000,40.50000000,1.00000000);  
format(string, sizeof(string), "Object will finish moving in %d milliseconds", movetime);
}
return 1;
}
604 line is :

Код:
if (pTeam[playerid] = TEAM_NINJA)
Reply
#2

Try using:
pawn Код:
if (pTeam[playerid] == TEAM_NINJA)
You used one '=' sign ... which is used to set something.

To check if something is equal to something else ... then you must use '=='
Reply
#3

aww i was forget that thanks
Reply
#4

i was forget that? :P xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)