12.07.2014, 16:15
Код:
C:\Users\Matt\Desktop\SAMP\scatrucking\gamemodes\scatrucking.pwn(8571) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\Matt\Desktop\SAMP\scatrucking\gamemodes\scatrucking.pwn(8571) : warning 215: expression has no effect C:\Users\Matt\Desktop\SAMP\scatrucking\gamemodes\scatrucking.pwn(8571) : error 001: expected token: ";", but found "-string-" C:\Users\Matt\Desktop\SAMP\scatrucking\gamemodes\scatrucking.pwn(8571) : warning 215: expression has no effect C:\Users\Matt\Desktop\SAMP\scatrucking\gamemodes\scatrucking.pwn(8571) : error 001: expected token: ";", but found ")" C:\Users\Matt\Desktop\SAMP\scatrucking\gamemodes\scatrucking.pwn(8571) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
pawn Код:
if(sscanf(params, "us[128]", id, reason)) return SendClientMessage(playerid, red, "PHT-BOT:"green2" /warn [playerid] [reason]");
pawn Код:
CMD:warn(playerid, params[])
{
new str[128], id, reason[128];
if(PInfo[playerid][Level] < 3) return SendClientMessage(playerid,red,error);
{
if(sscanf(params, "us[128]", id, reason)) return SendClientMessage(playerid, red, "PHT-BOT:"green2" /warn [playerid] [reason]");
if(id == playerid) return SendClientMessage(playerid, red, "PHT-BOT:"green2" You cannot warn yourself");
if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, red, "PHT-BOT:"lred" Player not connected!");
if(pInfo[id][Warn] == MAX_WARNINGS)
{
format(str, sizeof(str), "%s(%d) has been kicked [Reason: Reach the Maxium Warnings!]", GetName(id), id);
SendClientMessageToAll(red, str);
SendClientMessage(id, lred, "You've been kicked [Reason: Reach the Maxium Warnings!]");
return Kick(id);
}
pInfo[id][Warn] += 1;
format(str, sizeof(str), "Administrator/VIP %s(%d) warns %s(%d) [Reason: %s] [Warnings: %d/%d]", GetName(playerid), playerid, GetName(id), id, reason, pInfo[id][Warn], MAX_WARNINGS);
SendClientMessageToAll(yellow, str);
format(str, sizeof(str), "You warned %s(%d) [Reason: %s] [Warnings: %d/%d]", GetName(id), id, reason, pInfo[id][Warn], MAX_WARNINGS);
SendClientMessage(playerid, green, str);
format(str, sizeof(str), "You've been warned by Administrator/VIP %s(%d) [Reason: %s] [Warnings: %d/%d]", GetName(playerid), playerid, reason, pInfo[id][Warn], MAX_WARNINGS);
SendClientMessage(id, red, str);
format(str, sizeof(str), "warn %s %s", GetName(id), reason);
SendAdminCMD(playerid, str);
}
else return SendClientMessage(playerid, lred, error);
return 1;
}