Public and stock
#2

It's more complex, but... RESUME

public : Can be acessed by other script(Ex: CallRemoteFunction). You need to use this for timers

stock : Can be declared and not used. (I use this only in includes)

You can use
pawn Code:
FreezePlayer(playerid, status=0)
{
    switch(status)
    {
        case 0: TogglePlayerControllable(playerid, 0);
        case 1: TogglePlayerControllable(playerid, 1);
    }
}
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: 2 Guest(s)