SA-MP Forums Archive
little help please - 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: little help please (/showthread.php?tid=242343)



little help please - Amel_PAtomAXx - 19.03.2011

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)



Re: little help please - antonio112 - 19.03.2011

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 '=='


Re: little help please - Amel_PAtomAXx - 19.03.2011

aww i was forget that thanks


Re: little help please - bestr32 - 19.03.2011

i was forget that? :P xD