Raised This Month: $ Target: $400
 0% 

Multilangual problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 07-10-2010 , 12:07   Multilangual problem
Reply With Quote #1

I'm having some trouble inserting ml in a plugin.

I did this for client_print, but it doesn't work.
Code:
                client_print(id, print_chat, "%s %L", id, "MR_CONNECT_1", prefix);
                client_print(id, print_chat, "%s %L", id, "MR_CONNECT_2", prefix);
                client_print(id, print_chat, "%s %L", id, "MR_CONNECT_3", prefix);
                client_print(id, print_chat, "%s %L", id, "MR_CONNECT_4", prefix);
I get "b ML_NOTFOUND MR_CONNECT_1" in chat.

And i did this for hudmessages, and this works fine.
Code:
formatex(powername[id], 99, "%L", id, "MR_POWER_NONE");
This is the ml
Code:
MR_CONNECT_1 = This server is running Super Mario Mod by Drekes.
MR_CONNECT_2 = Type /help for everything you need to know.
MR_CONNECT_3 = Type /guns to choose your guns.
MR_CONNECT_4 = You will need to bind +mario to use some skills.

MR_POWER_NONE = None
Does someone know what i'm doing wrong?
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
shuttle_wave
Veteran Member
Join Date: Apr 2009
Location: New Zealand
Old 07-10-2010 , 12:49   Re: Multilangual problem
Reply With Quote #2

client_print(id, print_chat, "%s %L", id, "prefix", id, "MR_CONNECT_1");
__________________
JailBreak Mod with Plugin API ( 90% ) Public
shuttle_wave is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 07-10-2010 , 13:01   Re: Multilangual problem
Reply With Quote #3

Quote:
Originally Posted by shuttle_wave View Post
client_print(id, print_chat, "%s %L", id, "prefix", id, "MR_CONNECT_1");
Still gives ML_NOTFOUND.
And do i have to add the "" on prefix to? It's not a multilang thing.
It's like this:
PHP Code:
new prefix[] = "[MARIO]"
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 07-10-2010 , 13:04   Re: Multilangual problem
Reply With Quote #4

I did
PHP Code:
client_print(idprint_chat"%s %L"idprefix"MR_CONNECT_1"); 
and now it works. Thanks
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
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 07:05.


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