03.07.2016, 09:59
Hello!
So. Where are the other two (row 7440) mistakes?
PHP код:
CMD:jail(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin])
{
new string[128], cibleid, time, reason[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(cibleid, PlayerName1, sizeof(PlayerName1));
GetPlayerName(playerid, APlayerName, sizeof(APlayerName));
format(string, sizeof(string), "%s has been jailed for %d minutes; Reason: %s", PlayerName1, time, reason);
SendClientMessageToAll(-1, string);
SetPlayerHealth(cibleid, 9999999999.0);
ResetPlayerWeapons(cibleid);
}
return 1;
}