Page 2 of 2

Re: multilang const info

Posted: 2012 Oct 30 19:05
by Tetusis
aaarnas wrote:

Code: Select all

public plugin_init() {      register_dictionary("ADMINkomandos.txt")    new kickinfo[32];        new lang_id = LANG_SERVER    LookupLangKey(kickinfo, charsmax(kickinfo), "KICK_INFO", lang_id)     register_concmd("/kick", "kick", ADMIN_KICK, kickinfo)  }
Kažkodėl ten būtinai reikia kintamąjį perduoti, nes refference yra.
Pagal instrukcijas turi veikti:
NOTE: LANG_PLAYER is invalid in this, use a player index
* or LANG_SERVER

works.. :)