04.08.2014, 05:33
Hey I can see that public and stock are almost the same, I'm a beginner, and I learned using both of them today
What's the difference between
and this
A very small difference, I'm I wrong? I already made a /freeze [playerid] [1:optional (to unfreeze)] and it works with both of them after entering few modifications
What's the difference between
pawn Code:
forward FreezePlayer(playerid, status);
pawn Code:
public FreezePlayer(playerid, status)
{
switch(status)
{
case 0: TogglePlayerControllable(playerid, 0);
case 1: TogglePlayerControllable(playerid, 1);
}
}
pawn Code:
stock FreezePlayer(playerid, status=0)
{
switch(status)
{
case 0: TogglePlayerControllable(playerid, 0);
case 1: TogglePlayerControllable(playerid, 1);
}
}