23.01.2011, 04:53
i try fixing this but i cant. i dont know why.
I tried everything
pawn Код:
dcmd_backup(playerid,params[])
{
new
string[128];
if(PlayerInfo[playerid][IsCop] == 1 && PlayerInfo[playerid][IsSwatSpawned] == 1 && PlayerInfo[playerid][IsArmySpawned] == 1)
return SendClientMessage(playerid,red,"You aren't a Law Member");
if(PlayerInfo[playerid][IsInEvent] == 1)
return SendClientMessage(playerid,red,"You can't do that in a event!");
if(sscanf(params,"s",string))
return SendClientMessage(playerid,red,"USAGE: /backup [where?]");
else
for (new i=0; i<MAX_PLAYERS+1; i++) if (IsPlayerConnected(i)) if(PlayerInfo[i][IsCop] == 1 && PlayerInfo[i][IsArmySpawned] == 1 && PlayerInfo[i][IsSwatSpawned] == 1)
{
format(string, sizeof(string), "%s(%d) has called for backup in %s!",PlayerName(playerid),playerid,params);
IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
SendClientMessage(i,blue,string);
}
return true;
}