Raised This Month: $ Target: $400
 0% 

Solved get_user_name


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
lexzor
Veteran Member
Join Date: Nov 2020
Old 01-05-2021 , 20:11   get_user_name
Reply With Quote #1

Hello, i have a problem with this code

PHP Code:
public getPlayedTime(id)
{
    static 
arg[MAX_NAME_LENGTH]
    static 
name[MAX_NAME_LENGTH]
    
read_argv(1argsizeof(arg) - 1)
    static 
playerplayer cmd_target(idarg2)
    
get_user_name(playernamesizeof(name) -1)
    
    if(
player && read_argv(1argsizeof(arg) - 1) > 0){
        
get_user_authid(playerkey[player], 32)
        
get_time_length(id, (get_user_time(id) + nvault_get(vaultkey[player])), timeunit_seconds output63);
        
ColorChat(idGREEN"^x04[JoiNET]^x01 Player^4 %s^1 accumulated a total of ^x04 %s^x01 on our server!"name[player], output);
    } else if (!
player && read_argv(1argsizeof(arg) - 1) > )
    
ColorChat(idGREEN"^x04[JoiNET]^x01 Player does not exists!");
    else if ( 
read_argv(1argsizeof(arg) - 1) == 0  ){
        
get_time_length(id, (get_user_time(id) + nvault_get(vaultkey[id])), timeunit_seconds output63);
        
ColorChat(idGREEN"^x04[JoiNET]^x01 You have accumulated a total of ^x04 %s^x01 on our server!"output);
    }
    

it doesn't show me the whole name, just 1-2 letters. why ?

Last edited by lexzor; 01-05-2021 at 20:26.
lexzor is offline
 


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 14:12.


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