sizeof error
#5

PHP код:
CMD:jail(playerid,params[])
{
    if(
pInfo[playerid][pAdminLevel] >= 1)
    {
        new 
id,time,reason[100],szString[150];
        if(
sscanf(params,"dds",id,time,reason)) return SendClientMessage(playerid, -1"*"COL_WHITE" /jail [playerid] [time] [reason]");
        if(!
IsPlayerConnected(id)) return SendClientMessage(playerid, -1,"*"COL_RED" Player is not connected.");
        if(
Jailed[id] == 1) return SendClientMessage(playerid, -1"*"COL_RED" Player is already jailed.");
        {
                
GetPlayerName(idPlayerNamesizeof(PlayerName));
         
GetPlayerName(playeridGetPlayerNamesizeof(GetPlayerName));
        
format(szStringsizeof(szString), "AdmSys-: %s (ID:%d) has been jailed for %d minutes; Reason: %s"PlayerNameidtimereason);
        
SendClientMessageToAll(-1szString);
        }
        {
                
SetPlayerInterior(id3);
        
SetPlayerVirtualWorld(id10);
        
SetPlayerFacingAngle(id360.0);
        
SetPlayerPos(id197.5662175.48001004.0);
        
SetPlayerHealth(id9999999999.0);
        
ResetPlayerWeapons(id);
        
JailTimer[id] = SetTimerEx("Unjail",time*60000false"i"id);
    }
    else{
        return 
0;
        }
    return 
1;

Hey... Try this just fix this identitations it is very hard to edit over here "intext"
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)