client_putinserver
hey guys,
have an small question about an small plugin. Dont blame me, im a new coder :) i only want to show, steamid and name Code:
#include <amxmodx> |
Re: client_putinserver
They are both strings, so you have to use %s for both.
|
Re: client_putinserver
new name[33]
new userid[18] get_user_authid(id, userid, 17) get_user_name(id, name, 32) client_print(0, print_chat, "%s %s", userid, name); return PLUGIN_CONTINUE change the above lines |
Re: client_putinserver
Okay thanks!
But can you tell me, why get_user_authid(id, userid, 17) sometimes dont post an steamid? at some people/sometimes its zero or a random number like 83 :/ |
Re: client_putinserver
An AuthID has 34 characters, so -> new userid[ 35 ]
PS : Use the native charsmax( ) Code:
|
Re: client_putinserver
Quote:
So if I want to run an function of mine, only if one user connected, I musst do it with set_task in public client_putinserver()? |
Re: client_putinserver
Quote:
|
Re: client_putinserver
If I have understood, you can do this :
Code:
|
Re: client_putinserver
Quote:
|
Re: client_putinserver
Quote:
|
| All times are GMT -4. The time now is 01:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.