AlliedModders

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

drekes 07-10-2010 12:07

Multilangual problem
 
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?

shuttle_wave 07-10-2010 12:49

Re: Multilangual problem
 
client_print(id, print_chat, "%s %L", id, "prefix", id, "MR_CONNECT_1");

drekes 07-10-2010 13:01

Re: Multilangual problem
 
Quote:

Originally Posted by shuttle_wave (Post 1234408)
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]"


drekes 07-10-2010 13:04

Re: Multilangual problem
 
I did
PHP Code:

client_print(idprint_chat"%s %L"idprefix"MR_CONNECT_1"); 

and now it works. Thanks


All times are GMT -4. The time now is 07:05.

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