30.01.2015, 20:13
When you want to return the statement, typicall when your code ends.
For example,
As you can see, we typically return a value when needed, and or when our code is over.
For example,
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_FIRE))
{
if(player_idle_status == true)
{
player_idle_status[playerid] = false;
return 1;
}
return 1;
}
return 1;
}