Hi,
part of my code:
PHP Code:
public plugin_init(){
(...)
register_dictionary("custom_radio.txt")
}
stock const radio1_say[6][] = {
"COVERME",
"TAKEPOINT",
"HOLDPOS",
"REGROUPT",
"FOLLOWME",
"FIREASSIS"
}
(...)
public radio1cmd(id, key1) {
(...)
client_print(players[a],print_chat,"%s (RADIO): %L",name, LANG_PLAYER, "%s",radio1_say[key1])
(...)
}
Ingame i got this:
KaLoSZyFeR (RADIO): ML_NOTFOUND: COVERME
KaLoSZyFeR (RADIO): ML_NOTFOUND: TAKEPOINT
but when i'm changing this:
PHP Code:
client_print(players[a],print_chat,"%s (RADIO): %L",name, LANG_PLAYER, "%s",radio1_say[key1])
to
PHP Code:
client_print(players[a],print_chat,"%s (RADIO): %L",name, LANG_PLAYER, "COVERME")
it works, but only COVERME message is displayed
custom_radio.txt:
Code:
[en]
RADIO_CMDS = Radio Commands
COVERME = Cover me!
TAKEPOINT = You take the point.
HOLDPOS = Hold this position
REGROUPT = Regroup team!
FOLLOWME = Follow me.
FIREASSIS = Taking fire, need assistance!