Raised This Month: $ Target: $400
 0% 

ML_NOTFOUND..


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kaloszyfer
Member
Join Date: Mar 2007
Location: Poland
Old 06-16-2007 , 05:53   ML_NOTFOUND..
Reply With Quote #1

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!
kaloszyfer is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 06-16-2007 , 06:34   Re: ML_NOTFOUND..
Reply With Quote #2

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!
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-16-2007 , 07:22   Re: ML_NOTFOUND..
Reply With Quote #3

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 );
__________________
Arkshine is offline
kaloszyfer
Member
Join Date: Mar 2007
Location: Poland
Old 06-16-2007 , 07:43   Re: ML_NOTFOUND..
Reply With Quote #4

Both of what you are saying is working , but not if i'm using array.
kaloszyfer is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 06-16-2007 , 15:00   Re: ML_NOTFOUND..
Reply With Quote #5

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.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
kaloszyfer
Member
Join Date: Mar 2007
Location: Poland
Old 06-17-2007 , 16:47   Re: ML_NOTFOUND..
Reply With Quote #6

Yes! You are right, this should work. thx :p
kaloszyfer is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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