10.08.2016, 21:09
Why i can't see anything when i enter cmd?
Code:
public OnPlayerCommandPerformed( playerid, cmdtext[], success)
{
if(!success)
{
SendClientMessage(playerid,red,"ERROR: Unknown command, use /cmds for the list of available commands.");
}
for(new i=0; i <MAX_PLAYERS; i++)
{
if(pInfo[playerid][pLevel] > 1)
{
new string[200];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"%s[%d] has used command %s",name,playerid,cmdtext);
SendClientMessage(i,COLOR_GREY,string);
}
}
return 1;
}

