What is wrong here in this code
#1

PHP код:
if (strcmp(cmdtext"/events"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            
SendClientMessage(playeridCOLOR_GREEN"Events admins Online:");
            for(new 
0MAX_PLAYERSi++)
            {
                if(
IsPlayerConnected(i))
                {
                    if(
PlayerInfo[i][pEventadmin] >= 
                    
{
                        new 
sendername[MAX_PLAYER_NAME];
                        
GetPlayerName(isendernamesizeof(sendername));
                        
Message(playeridCOLOR_GREENstring);
                        }
                        else
                        {
                            
SendClientMessage(playeridCOLOR_YELLOW"*** Server Info *** : No events admins ONLINE");
                        }
                    }
                }
            }
            
SendClientMessage(playeridCOLOR_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: 1 Guest(s)