Public and stock
#1

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
pawn Code:
forward FreezePlayer(playerid, status);
pawn Code:
public FreezePlayer(playerid, status)
{
    switch(status)
    {
        case 0: TogglePlayerControllable(playerid, 0);
        case 1: TogglePlayerControllable(playerid, 1);
    }
}
and this
pawn Code:
stock FreezePlayer(playerid, status=0)
{
    switch(status)
    {
        case 0: TogglePlayerControllable(playerid, 0);
        case 1: TogglePlayerControllable(playerid, 1);
    }
}
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
Reply


Messages In This Thread
Public and stock - by Sarra - 04.08.2014, 05:33
Re: Public and stock - by ViniBorn - 04.08.2014, 05:41
Re: Public and stock - by Sarra - 04.08.2014, 05:50
Re: Public and stock - by Sarra - 04.08.2014, 05:55
Re: Public and stock - by ViniBorn - 04.08.2014, 05:56
Re: Public and stock - by Sarra - 04.08.2014, 06:01

Forum Jump:


Users browsing this thread: 3 Guest(s)