Error with this inc?
#7

If you only modify a native than do it like that
pawn Код:
native Freeze(playerid, bool: toggle = false) = TogglePlayerControllable;
native UnFreeze(playerid, bool: toggle = true) = TogglePlayerControllable;
Otherwise just do it like that
pawn Код:
/*
native Freeze(playerid);
native UnFreeze(playerid);
*/


static
    bool: gPlayerFrozen[MAX_PLAYERS char]
;

stock bool: IsPlayerFrozen(playerid) {
    return gPlayerFrozen{playerid};
}

stock Freeze(playerid) {
    return TogglePlayerControllable(playerid, (gPlayerFrozen{playerid} = false));
}

stock UnFreeze(playerid) {
    return TogglePlayerControllable(playerid, (gPlayerFrozen{playerid} = true));
}
Reply


Messages In This Thread
Error with this inc? - by Elysian` - 16.12.2012, 13:44
Re: Error with this inc? - by Mike_Peterson - 16.12.2012, 13:49
Re: Error with this inc? - by Elysian` - 16.12.2012, 13:50
Re: Error with this inc? - by Mike_Peterson - 16.12.2012, 14:00
Re: Error with this inc? - by Elysian` - 16.12.2012, 14:01
Re: Error with this inc? - by Konstantinos - 16.12.2012, 14:11
AW: Re: Error with this inc? - by Nero_3D - 16.12.2012, 14:29
Re: Error with this inc? - by Elysian` - 16.12.2012, 14:30
Re: Error with this inc? - by maramizo - 16.12.2012, 15:40
Re: Error with this inc? - by Konstantinos - 16.12.2012, 16:22

Forum Jump:


Users browsing this thread: 1 Guest(s)