Will not work unless you define "i".
"i", is usually used with a loop, for example:
pawn Код:
for(new i; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i)) continue;
SetPlayerInterior(i, 0);
}
Let me explain, this is a loop, it loops through the maximum amount of players your server can hold, and for every person that is connected it will set there interior to 0.
I used "continue", just over preference, "continue", along with putting "!" before the function, checks if the player is not online(note that's why I put a "!" before the function), and then will continue with the loop.
playerid returns the ID of the player executing the function, where as "i", as shown in the loop above returns the ID of everybody connected.