30.06.2014, 10:35
Hello all...
Have one problem idk what to do...
It just doesn't show when someone type any wrong cmd...how to fix it?
Thanks.
Have one problem idk what to do...
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new string[256];
new idx;
new i;
new playername[MAX_PLAYER_NAME];
string = strtok(cmdtext, idx);
if(ServerInfo[ReadCmds] == 1)
{
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "*** %s (%d) typed: %s", playername,playerid,cmdtext);
for(new i = 0; i < MAX_PLAYERS; i++) //THIS LINE IS THE PROBLEM...
if(IsPlayerConnected(i))
if( (PlayerInfo[i][Level] > PlayerInfo[playerid][Level]) && (PlayerInfo[i][Level] > 1) && (i != playerid) )
IRC_GroupSay(gGroupID3, IRC_MCHANNEL, string);
SendClientMessage(i, grey, string);
Thanks.