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(1, arg, sizeof(arg) - 1)
static player; player = cmd_target(id, arg, 2)
get_user_name(player, name, sizeof(name) -1)
if(player && read_argv(1, arg, sizeof(arg) - 1) > 0){
get_user_authid(player, key[player], 32)
get_time_length(id, (get_user_time(id) + nvault_get(vault, key[player])), timeunit_seconds , output, 63);
ColorChat(id, GREEN, "^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(1, arg, sizeof(arg) - 1) > 0 )
ColorChat(id, GREEN, "^x04[JoiNET]^x01 Player does not exists!");
else if ( read_argv(1, arg, sizeof(arg) - 1) == 0 ){
get_time_length(id, (get_user_time(id) + nvault_get(vault, key[id])), timeunit_seconds , output, 63);
ColorChat(id, GREEN, "^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 ?