Raised This Month: $ Target: $400
 0% 

2 problems


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Lure.d
BANNED
Join Date: Dec 2009
Location: Lithuania->USA
Old 01-01-2010 , 14:05   2 problems
Reply With Quote #1

1:

I made a function to print players name, but seem not to work...
Code:
public ETCmsg() {
     client_print(0, print_chat, "%d has joined the server", LANG_PLAYER);
}
And when it comes to writing the etcmsg it kicks me outta server and post following in console:

Quote:
Host_Error: WriteDest_Parm: not a clien
How to make it write:
Playername has joined the server.

2:

Multi languaging...
Code:
client_print(0, print_chat, "%L is nice.", "MSG_CAR");
Thats just ex, but it doesnt print anything, just writes
Quote:
MSG_CAR is nice.
I have added
Quote:
register_dictionary("testml.txt");
In it i wrote
Quote:
[en]
MSG_CAR = Ferrari
Still doesnt print a thing except MSG_CAR is nice...

So help will be appreciated very much.

Last edited by Lure.d; 01-01-2010 at 14:12.
Lure.d is offline
Send a message via Skype™ to Lure.d
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 01-01-2010 , 14:13   Re: 2 problems
Reply With Quote #2

Try searching
PHP Code:
public client_putinserverid )
{
    new 
szName33 ];
    
get_user_nameid szName charsmaxszName ) );
    
client_printprint_chat "* %s as joined the server" szName );

__________________
Bugsy is offline
draft
Senior Member
Join Date: Jul 2007
Location: Russia, Saint-Petersburg
Old 01-01-2010 , 14:13   Re: 2 problems
Reply With Quote #3

Code:
client_putinserver(id)
{
static name[30]
get_user_name(id, name, 29)
client_print(0, print_chat, "%s has joined the server!", name)
}
__________________
draft is offline
Lure.d
BANNED
Join Date: Dec 2009
Location: Lithuania->USA
Old 01-01-2010 , 14:15   Re: 2 problems
Reply With Quote #4

sweet, ill try them, never thought about get_user_name
Lure.d is offline
Send a message via Skype™ to Lure.d
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 01-01-2010 , 14:27   Re: 2 problems
Reply With Quote #5

2.
PHP Code:
public plugin_init()
{

     
register_dictionary"MyDictionary.txt" );
}
    
public 
client_putinserverid )
{
     new 
szName33 ];
     
get_user_nameid szName charsmaxszName ) );
     
client_print"%L" LANG_PLAYER "MSG_CAR" szName );

MyDictionary.txt
Code:
[en]
MSG_CAR=%s drives a Ferrari
__________________
Bugsy is offline
Lure.d
BANNED
Join Date: Dec 2009
Location: Lithuania->USA
Old 01-01-2010 , 15:08   Re: 2 problems
Reply With Quote #6

CLOSED.

Last edited by Lure.d; 01-01-2010 at 16:05. Reason: CLOSED.
Lure.d is offline
Send a message via Skype™ to Lure.d
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 04:07.


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