Posts: 22
Threads: 2
Joined: Dec 2008
Reputation:
0
if(IsCaptured[playerid] == 1) return SendClientMessage(playerid, YELLOW, "You can't escape now.");
Posts: 591
Threads: 121
Joined: Oct 2010
Reputation:
0
so next time I should use == instead of just = right ? or there's something else wrong ?
Posts: 22
Threads: 2
Joined: Dec 2008
Reputation:
0
01.12.2010, 21:23
(
Последний раз редактировалось am0k; 01.12.2010 в 21:26.
Причина: explain
)
correct
nothing else wrong
unintened assignment means: it thinks you want to set it to 1.
but you want to check if its 1
you could also check if its not 1 with != 1
Posts: 121
Threads: 0
Joined: Nov 2010
Reputation:
0
Marinov, have you searched this time?
have you even read pawn-lang.pdf?
it's exactly there!
Please, next time search!
Yes, you MUST use == to compare things and = to declare things.
Matthew "6d" Larrabure
Posts: 591
Threads: 121
Joined: Oct 2010
Reputation:
0
how would I search if I didn't know what the problem was !?!
Posts: 121
Threads: 0
Joined: Nov 2010
Reputation:
0
Searching on ****** your warning!
or even on the forums!