23.11.2011, 17:20
Quote:
Yes, that is possible.
|| = OR && = AND : = ELSE ? = THEN for example: pawn Код:
Example is from JaTochNietDan. |
pawn Код:
if(GetPlayerWantedLevel(playerid, >= 1)) ?
and why is >= 1 in the function?
Valid examples:
pawn Код:
return (GetPlayerWantedLevel(playerid) >= 0) SendClientMessage(playerid,RED," You are wanted!") : SendClientMessage(playerid,GREEN," OK!");
pawn Код:
if(GetPlayerWantedLevel(playerid) >= 0)
return SendClientMessage(playerid,RED," You are wanted!")
else
return SendClientMessage(playerid,GREEN," OK!");