2 operators that i don't understand
#10

Quote:
Originally Posted by =Contador=
pawn Код:
stock IsPlayerSpawned(playerid)
return (IsPlayerConnected(playerid) && playerinfo[playerid][spawned] ? 1 : 0);
what does it do? if the player is connected and spawned it returns 1 else 0
This example isn't a good one..If it's just to check if it's either 0 or 1, you just do
pawn Код:
return IsPlayerConnected(playerid) && playerinfo[playerid][spawned];
that's the exact same thing, and may be faster to execute.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)