sizeof error
#8

Try this:

PHP код:
CMD:unjail(playeridparams[])
{
    if(
pInfo[playerid][pAdminLevel] >= 1)
    {
        if(
sscanf(params"u"params[0]))
            return 
SendClientMessage(playerid, -1"*"COL_WHITE" /unjail [playerid]");

        if(!
IsPlayerConnected(params[0]) && params[0] == INVALID_PLAYER_ID)
            return 
SendClientMessage(playerid, -1"*"COL_RED" Player is not connected.");
            
        if(
Jailed[params[0]] == 0)
            return 
SendClientMessage(playerid, -1"*"COL_RED" Player is not jailed.");

          
SetPlayerInterior(params[0], 0);
          
SetPlayerVirtualWorld(params[0], 0);
          
        
SpawnPlayer(params[0]);
        
SetPlayerHealth(params[0], 100);
        
KillTimer(JailTimer[params[0]]);
        
        
Jailed[params[0]] = 0;
    }
    return 
true;

If it doesn't work show function "UnJail".
Reply


Messages In This Thread
sizeof error - by Hybris - 13.03.2015, 20:58
Re: sizeof error - by Hybris - 13.03.2015, 21:03
Re: sizeof error - by HazardouS - 13.03.2015, 21:09
Re: sizeof error - by Evocator - 13.03.2015, 21:12
Re: sizeof error - by NoDi522 - 13.03.2015, 21:12
Respuesta: sizeof error - by JuanStone - 13.03.2015, 21:17
Re: Respuesta: sizeof error - by Hybris - 13.03.2015, 21:26
Respuesta: sizeof error - by JuanStone - 13.03.2015, 21:38
Re: sizeof error - by Hybris - 13.03.2015, 21:48
Respuesta: sizeof error - by JuanStone - 13.03.2015, 21:54

Forum Jump:


Users browsing this thread: 1 Guest(s)