/a not working
#8

pawn Код:
CMD:a(playerid, params[])
{
    new text[128];
    if(!sscanf(params,"s[128],text))
    {
        new adminname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, adminname, sizeof(adminname));
        format(string,sizeof(string),"
Adminchat (%s): %s", adminname, text);
        MessageToAdmins(purple,string);
    }
    else return SendClientMessage(playerid, COLOR_YELLOW, "
USAGE: /a [text]");
    return 1;
}
       
public MessageToAdmins(color,const string[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(pInfo[i][Admin])
            SendClientMessage(i, color, string);
        }
    }
    return 1;
}
@Jochemd Your code is too blue xD You forgot "at the sscanf

@geerdinho8 That doesn't make any difference. That's only param defining.
Reply


Messages In This Thread
/a not working - by geerdinho8 - 05.01.2012, 15:42
Re: /a not working - by [MG]Dimi - 05.01.2012, 15:49
Re: /a not working - by geerdinho8 - 05.01.2012, 15:55
Re: /a not working - by [MG]Dimi - 05.01.2012, 15:56
Re: /a not working - by Jochemd - 05.01.2012, 15:58
Re: /a not working - by geerdinho8 - 05.01.2012, 16:00
Re: /a not working - by geerdinho8 - 05.01.2012, 16:06
Re: /a not working - by [MG]Dimi - 05.01.2012, 16:08
Re: /a not working - by geerdinho8 - 05.01.2012, 16:29
Re: /a not working - by Gh05t_ - 05.01.2012, 16:45

Forum Jump:


Users browsing this thread: 1 Guest(s)