AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Server cmd, client cmd multi lingual? (https://forums.alliedmods.net/showthread.php?t=210095)

Unkolix 03-06-2013 08:48

Server cmd, client cmd multi lingual?
 
I am thinking of a way to do this:
PHP Code:

server_cmd("kick #%d ^"Advertising!^""get_user_userid(id)); 

to work with ml, will this work?
1.
PHP Code:

server_cmd("kick #%d ^"%L^", id, "ADVERTISING""get_user_userid(id)); 

2.
PHP Code:

server_cmd("kick #%d ^"%L^""id"ADVERTISING"get_user_userid(id)); 


wangbochiang 03-06-2013 08:51

Re: Server cmd, client cmd multi lingual?
 
This might will work,
just a fast look, cause I have done this once about two years ago.
PHP Code:

server_cmd("kick #%d ^"%L^", id, "ADVERTISING", get_user_userid(id)); 


Unkolix 03-06-2013 08:54

Re: Server cmd, client cmd multi lingual?
 
Quote:

Originally Posted by wangbochiang (Post 1907629)
This might will work,
just a fast look, cause I have done this once about two years ago.
PHP Code:

server_cmd("kick #%d ^"%L^", id, "ADVERTISING", get_user_userid(id)); 


I was thinking of this way, gonna check it now.
You forgot one quote symbol.

YamiKaitou 03-06-2013 09:02

Re: Server cmd, client cmd multi lingual?
 
Why didn't you just try it instead of posting?

Unkolix 03-06-2013 09:05

Re: Server cmd, client cmd multi lingual?
 
Quote:

Originally Posted by YamiKaitou (Post 1907641)
Why didn't you just try it instead of posting?

I wanted to know if the first one would be just ok.

wangbochiang 03-06-2013 09:06

Re: Server cmd, client cmd multi lingual?
 
Quote:

Originally Posted by Unkolix (Post 1907633)
I was thinking of this way, gonna check it now.
You forgot one quote symbol.

Sorry Im on ASUS 1000H at work,
This keyboard is freakin' small that I always having typo.

YamiKaitou 03-06-2013 09:07

Re: Server cmd, client cmd multi lingual?
 
Quote:

Originally Posted by Unkolix (Post 1907643)
I wanted to know if the first one would be just ok.

If you had tried it, you would have found that it wasn't. If you had reviewed ML docs, you would have found it wasn't. If you tried to compile it, you would have found that it wasn't.

fysiks 03-07-2013 02:03

Re: Server cmd, client cmd multi lingual?
 
From now on, I don't want to see any threads like this from you. E.e. if you can easily test code and answer the question yourself, don't post.

Unkolix 03-07-2013 07:49

Re: Server cmd, client cmd multi lingual?
 
Quote:

Originally Posted by fysiks (Post 1908175)
From now on, I don't want to see any threads like this from you. E.e. if you can easily test code and answer the question yourself, don't post.

Ok, sorry. It won't happen again. But I have one more question... How to do multi-lingual this?:
PHP Code:

new onoff[2][]={{"\roff\w"},{"\yon\w"}} // \r=red \y=yellow \w white
new text[2][]={{"(use move forward/backward to switch on/off)"},{"(use esp_toggle command to toggle)"}} // \r=red \y=yellow \w white 


YamiKaitou 03-07-2013 07:53

Re: Server cmd, client cmd multi lingual?
 
Without putting it into ML files and translating it, you can't.


All times are GMT -4. The time now is 21:48.

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