 |
|
Member
|

08-21-2020
, 15:48
Re: Check the player's played time
|
#3
|
Quote:
Originally Posted by Natsheh
PHP Code:
public ClientCommand_PlayedTime( id )
{
new szPlayer[32], temp;
read_argv(2, szPlayer, 31);
if((temp=cmd_target(id, szPlayer)) > 0)
{
id = temp;
}
new szTime[128]
new szName[32]
get_time_length(id, get_user_total_playtime( id ), timeunit_seconds, szTime, charsmax(szTime))
get_user_name(id, szName, charsmax(szName))
ColorChat( id, GREEN, "^x04%s^x01's Time:^x04 %s", szName, szTime)
}
Replace and give it a try.
PS : this section is for the people that are interested in coding. And want to learn.
|
error 017: undefined symbol "cmd_target"
|
|
|
|