Reading Cmds Problem.
#1

Hello all...

Have one problem idk what to do...

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    new 
string[256];
    new 
idx;
    new 
i;
    new 
playername[MAX_PLAYER_NAME];
    
string strtok(cmdtextidx);
    if(
ServerInfo[ReadCmds] == 1)
    {
        
GetPlayerName(playeridplayernamesizeof(playername));
        
format(stringsizeof(string), "*** %s (%d) typed: %s"playername,playerid,cmdtext);
        for(new 
0MAX_PLAYERSi++) //THIS LINE IS THE PROBLEM...
        
if(IsPlayerConnected(i))
        if( (
PlayerInfo[i][Level] > PlayerInfo[playerid][Level]) && (PlayerInfo[i][Level] > 1) && (!= playerid) )
        
IRC_GroupSay(gGroupID3IRC_MCHANNELstring);
        
SendClientMessage(igreystring); 
It just doesn't show when someone type any wrong cmd...how to fix it?
Thanks.
Reply


Messages In This Thread
Reading Cmds Problem. - by FedEx - 30.06.2014, 10:35
Re: Reading Cmds Problem. - by Twizted - 30.06.2014, 21:21

Forum Jump:


Users browsing this thread: 1 Guest(s)