Показать сообщение отдельно

  #2  
Старый 01.08.2013, 22:36
25GHz
Новичок
Регистрация: 23.03.2013
Сообщений: 11
С нами: 6915896

Репутация: 0
По умолчанию

"param" is a "char *" just like "setLocalPlayerName" function argument, so you don't need to convert to int and then to "char *" again.

so, just...

setLocalPlayerName(param);

and the second argument of "addClientCommand" is a int, so you must not convert that void to char, but do it as an int, like this:

addClientCommand("nick", (int)cmd_nick);
 
Ответить с цитированием