Warning
#3

Hello!

PHP код:
CMD:jail(playeridparams[])
{
    if(
PlayerInfo[playerid][pAdmin])
    {
        new 
string[128], cibleidtimereason[128], PlayerName1[MAX_PLAYER_NAME], APlayerName[MAX_PLAYER_NAME];
        if(
sscanf(params,"dds",cibleid,time,reason)) return SendClientMessage(playerid, -1"USAGE: /jail [playerid] [time] [reason]");
        if (!
IsPlayerConnected(cibleid)) return SendClientMessage(playerid, -1"[ERROR]The Player is not connected.");
        if(
jailed[cibleid] == 1) return SendClientMessage(playerid, -1"[ERROR]The Player is already jailed.");
        
GetPlayerName(cibleidPlayerName1sizeof(PlayerName1));
        
GetPlayerName(playeridAPlayerNamesizeof(APlayerName));
        
format(stringsizeof(string), "%s has been jailed for %d minutes; Reason: %s"PlayerName1timereason);
        
SendClientMessageToAll(-1string);
        
SetPlayerHealth(cibleid9999999999.0);
        
ResetPlayerWeapons(cibleid);
    }
    return 
1;

So. Where are the other two (row 7440) mistakes?
Reply


Messages In This Thread
Warning - by Eymeric69 - 03.07.2016, 09:56
Re: Warning - by M26 - 03.07.2016, 09:59
Re: Warning - by Mencent - 03.07.2016, 09:59
Re: Warning - by Eymeric69 - 03.07.2016, 10:07
Re: Warning - by Mencent - 03.07.2016, 10:11
Re: Warning - by Eymeric69 - 03.07.2016, 10:16
Re: Warning - by Mencent - 03.07.2016, 10:16
Re: Warning - by Shinja - 03.07.2016, 15:11

Forum Jump:


Users browsing this thread: 1 Guest(s)