What is wrong with this command?
#5

pawn Код:
if(strcmp(cmd, "/getteam", true) == 0)
{
        new tmp[256];
        pid = strval(tmp);
        tmp = strtok(cmdtext,idx);
        if(!strlen(tmp)) return SendClientMessage(playerid,0xffffffff,"USAGE: /getteam [playerid]");
        if(IsPlayerConnected(pid))
        {
            GetPlayerName(pid,sp,sizeof(sp));
            format(str,128 char,"%s (ID:%d) team is: %s.",sp,pid,GetPlayergTeam(pid));
            SendClientMessage(playerid,0xffffff00,str);
        }
        else return SendClientMessage(playerid,0xffffff00,"Warning: Player is not connected!");
        return 1;
}
Reply


Messages In This Thread
What is wrong with this command? - by nuriel8833 - 16.07.2012, 15:10
Re: What is wrong with this command? - by CmZxC - 16.07.2012, 15:14
Re: What is wrong with this command? - by nuriel8833 - 16.07.2012, 15:15
Re: What is wrong with this command? - by Ballu Miaa - 16.07.2012, 15:15
Re: What is wrong with this command? - by ViniBorn - 16.07.2012, 15:17
Re: What is wrong with this command? - by nuriel8833 - 16.07.2012, 15:21
Re: What is wrong with this command? - by Andi_Evandy - 16.07.2012, 15:29
Re: What is wrong with this command? - by nuriel8833 - 16.07.2012, 15:33
Re: What is wrong with this command? - by Andi_Evandy - 16.07.2012, 15:47
Re: What is wrong with this command? - by nuriel8833 - 16.07.2012, 15:57

Forum Jump:


Users browsing this thread: 2 Guest(s)