AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   ML_NOTFOUND.. (https://forums.alliedmods.net/showthread.php?t=56558)

kaloszyfer 06-16-2007 05:53

ML_NOTFOUND..
 
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(idkey1) { 

(...)

         
client_print(players[a],print_chat,"%s (RADIO): %L",nameLANG_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",nameLANG_PLAYER"%s",radio1_say[key1]) 

to
PHP Code:

client_print(players[a],print_chat,"%s (RADIO): %L",nameLANG_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!


Alka 06-16-2007 06:34

Re: ML_NOTFOUND..
 
This is how should look!
Code:

client_print(players[a],print_chat,"%L",LANG_PLAYER,"COVER_ME", name);
And in lang file!

Code:

COVERME = %s (RADIO): Cover me!
:wink:

Arkshine 06-16-2007 07:22

Re: ML_NOTFOUND..
 
Alka:

You should use 'LANG_PLAYER' if you send to all players only.

I mean :

Code:
client_print( players[a], print_chat, "%L", players[a], "COVER_ME", name );

Code:
client_print( 0, print_chat, "%L", LANG_PLAYER, "COVER_ME", name );

kaloszyfer 06-16-2007 07:43

Re: ML_NOTFOUND..
 
Both of what you are saying is working , but not if i'm using array.

Emp` 06-16-2007 15:00

Re: ML_NOTFOUND..
 
PHP Code:

client_print(players[a],print_chat,"%s (RADIO): %L",nameLANG_PLAYERradio1_say[key1]) 

keep your custom_radio.txt the same as you originally had it.

kaloszyfer 06-17-2007 16:47

Re: ML_NOTFOUND..
 
Yes! You are right, this should work. thx :p


All times are GMT -4. The time now is 10:40.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.