Not working!
#1

i try fixing this but i cant. i dont know why.

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;
}
I tried everything
Reply


Messages In This Thread
Not working! - by Fool - 23.01.2011, 04:53
Re: Not working! - by Steven Paul - 23.01.2011, 05:15
Re: Not working! - by Fool - 23.01.2011, 05:32
Re: Not working! - by Steven82 - 23.01.2011, 06:17
Re: Not working! - by Fool - 23.01.2011, 06:55
Re: Not working! - by Steven82 - 23.01.2011, 07:24
Re: Not working! - by Fool - 23.01.2011, 11:05

Forum Jump:


Users browsing this thread: 5 Guest(s)