Unknown command after some cmd's
#4

Hm, what about this:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext,"/teams",true))
    {
        new str[55],PN[MAX_PLAYER_NAME];
        SendClientMessage(playerid, COLOR_GREEN,"---[Teams]---");
        for(new i; i<GetMaxPlayers(); i++)==
        if(IsTeamLeader[i] == 1)
        GetPlayerName(i,PN,MAX_PLAYER_NAME);
        format(str,sizeof(str),"- %s {FFFFFF}[ID%d] members: %d",PN,GetPlayerID(PN),TeamCount[i]);
        SendClientMessage(playerid, COLOR_GREEN,str);
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread
Unknown command after some cmd's - by CutX - 05.08.2012, 11:21
Re: Unknown command after some cmd's - by Cxnnor - 05.08.2012, 11:22
AW: Unknown command after some cmd's - by CutX - 05.08.2012, 11:26
Re: Unknown command after some cmd's - by Cxnnor - 05.08.2012, 11:35
AW: Re: Unknown command after some cmd's - by CutX - 05.08.2012, 13:52
AW: Unknown command after some cmd's - by CutX - 05.08.2012, 15:37

Forum Jump:


Users browsing this thread: 1 Guest(s)