AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved players name store (https://forums.alliedmods.net/showthread.php?t=328345)

mrspeak 11-05-2020 17:04

players name store
 
How can i store player name into a string on client_connect() ?

i tried like that:
Code:

       
static szName[ 32 ];
.
.
.
client_connect(id) {
    get_user_info( id, g_szCache_Name, szName, charsmax( szName ) );
}

but whenever/wherever i use the string szName it's... blank

Napoleon_be 11-05-2020 17:14

Re: players name store
 
why don't u try using get_user_name() ?

or just try this
PHP Code:

get_user_info(id"name"szNamecharsmax(szName)); 


fysiks 11-05-2020 23:10

Re: players name store
 
You should probably use client_putinserver() instead of client_connect().

mrspeak 11-07-2020 08:42

Re: players name store
 
Quote:

Originally Posted by fysiks (Post 2723876)
You should probably use client_putinserver() instead of client_connect().

I solved it already. It was the native am_get_player_arena.


All times are GMT -4. The time now is 14:12.

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