Raised This Month: $ Target: $400
 0% 

Server cmd, client cmd multi lingual?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Unkolix
Veteran Member
Join Date: Sep 2012
Old 03-06-2013 , 08:48   Server cmd, client cmd multi lingual?
Reply With Quote #1

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)); 
Unkolix is offline
wangbochiang
Member
Join Date: Aug 2006
Location: Taiwan - Taichung
Old 03-06-2013 , 08:51   Re: Server cmd, client cmd multi lingual?
Reply With Quote #2

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)); 
__________________
Catch me on : @twitter

Last edited by wangbochiang; 03-06-2013 at 08:52.
wangbochiang is offline
Send a message via MSN to wangbochiang Send a message via Yahoo to wangbochiang Send a message via Skype™ to wangbochiang
Unkolix
Veteran Member
Join Date: Sep 2012
Old 03-06-2013 , 08:54   Re: Server cmd, client cmd multi lingual?
Reply With Quote #3

Quote:
Originally Posted by wangbochiang View Post
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.

Last edited by Unkolix; 03-06-2013 at 08:55.
Unkolix is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-06-2013 , 09:02   Re: Server cmd, client cmd multi lingual?
Reply With Quote #4

Why didn't you just try it instead of posting?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Unkolix
Veteran Member
Join Date: Sep 2012
Old 03-06-2013 , 09:05   Re: Server cmd, client cmd multi lingual?
Reply With Quote #5

Quote:
Originally Posted by YamiKaitou View Post
Why didn't you just try it instead of posting?
I wanted to know if the first one would be just ok.
Unkolix is offline
wangbochiang
Member
Join Date: Aug 2006
Location: Taiwan - Taichung
Old 03-06-2013 , 09:06   Re: Server cmd, client cmd multi lingual?
Reply With Quote #6

Quote:
Originally Posted by Unkolix View Post
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.
__________________
Catch me on : @twitter
wangbochiang is offline
Send a message via MSN to wangbochiang Send a message via Yahoo to wangbochiang Send a message via Skype™ to wangbochiang
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-06-2013 , 09:07   Re: Server cmd, client cmd multi lingual?
Reply With Quote #7

Quote:
Originally Posted by Unkolix View Post
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.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).

Last edited by YamiKaitou; 03-06-2013 at 09:08.
YamiKaitou is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-07-2013 , 02:03   Re: Server cmd, client cmd multi lingual?
Reply With Quote #8

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.
__________________
fysiks is offline
Unkolix
Veteran Member
Join Date: Sep 2012
Old 03-07-2013 , 07:49   Re: Server cmd, client cmd multi lingual?
Reply With Quote #9

Quote:
Originally Posted by fysiks View Post
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 
Unkolix is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-07-2013 , 07:53   Re: Server cmd, client cmd multi lingual?
Reply With Quote #10

Without putting it into ML files and translating it, you can't.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Reply


Thread Tools
Display Modes

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 21:48.


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