String problem
#3

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
Код:
format(string,sizeof(string),"{B5B5B5}%s(%d): has used command %s",name[playerid],playerid,cmdtext);
you declared the variable as name[75] and you use name[playerid]? It doesn't make any sense,
use this instead
PHP код:
format(string,sizeof(string),"{B5B5B5}%s(%d): has used command %s",name,playerid,cmdtext); 
EDIT: sorry oMa37, didn't refresh the page
Reply


Messages In This Thread
String problem - by Mijata - 30.06.2017, 23:29
Re: String problem - by oMa37 - 30.06.2017, 23:33
Re: String problem - by Eoussama - 30.06.2017, 23:36

Forum Jump:


Users browsing this thread: 1 Guest(s)