What is wrong here in this code
#2

pawn Код:
if (strcmp(cmdtext, "/events", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            new count=0;
            SendClientMessage(playerid, COLOR_GREEN, "Events admins Online:");
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
                if(IsPlayerConnected(i))
                {
                    if(PlayerInfo[i][pEventadmin] >= 1)
                    {
                        count++;
                        new sendername[MAX_PLAYER_NAME];
                        GetPlayerName(i, sendername, sizeof(sendername));
                        Message(playerid, COLOR_GREEN, string);
                    }
                }
            }
             if(count==0)
                return SendClientMessage(playerid, COLOR_YELLOW, "*** Server Info *** : No events admins ONLINE");
            SendClientMessage(playerid, COLOR_GREEN, "______________");
        }
        return 1;
 }
Reply


Messages In This Thread
What is wrong here in this code - by boyan96 - 26.09.2011, 12:55
Re: What is wrong here in this code - by Xyrex - 26.09.2011, 12:56
Re: What is wrong here in this code - by boyan96 - 26.09.2011, 13:00
Re: What is wrong here in this code - by Xyrex - 26.09.2011, 13:01
Re: What is wrong here in this code - by Rachael - 26.09.2011, 13:05
Re: What is wrong here in this code - by Jafet_Macario - 26.09.2011, 13:07
Re: What is wrong here in this code - by boyan96 - 26.09.2011, 13:10
Re: What is wrong here in this code - by Jafet_Macario - 26.09.2011, 13:12
Re: What is wrong here in this code - by boyan96 - 26.09.2011, 13:16

Forum Jump:


Users browsing this thread: 4 Guest(s)