30.06.2017, 23:36
Why are you using a 75 long string? Player names are not longer than 24 characters, so you should just use name[24] or name[MAX_PLAYER_NAME] MAX_PLAYER_NAME = 24 by default
you declared the variable as name[75] and you use name[playerid]? It doesn't make any sense,
use this instead
EDIT: sorry oMa37, didn't refresh the page
Код:
format(string,sizeof(string),"{B5B5B5}%s(%d): has used command %s",name[playerid],playerid,cmdtext);
use this instead
PHP код:
format(string,sizeof(string),"{B5B5B5}%s(%d): has used command %s",name,playerid,cmdtext);