Offline Player Command
#1

Hello!
I was trying to chek last player's login with a command.
I get : (25429) : error 035: argument type mismatch (argument 1)

PHP код:
CMD:online(playeridparams[])
{
    new 
str[28],path[50],pLastOn20 20 ],OnlineString128 ],INI:file;
    if(
sscanf(params,"s[30]",str)) return SendClientMessage(playerid,-1,"Usage: /online [name]");
    
format(path,sizeof(path),"Accounts/%s.ini",str);
    if ( 
INI_Existpath ) )
    {
        
file INI_Open(path);
        
GetPVarStringstr"On"pLastOnsizeof pLastOn );//25429
        
formatOnlineString,sizeof(OnlineString),"["REDSV"%s"BLUESV"] last Online time is "REDSV"%s.",str,pLastOn);
        
SCM(playerid,BLUES,OnlineString);
        
INI_Close(file);
    }
    else
    {
        
SendClientMessage(playerid,-1,"User in not registered.");
    }
    return 
1;

Reply


Messages In This Thread
Offline Player Command - by SumX - 30.09.2012, 19:10
Re: Offline Player Command - by Mr.Anonymous - 30.09.2012, 19:13
Re: Offline Player Command - by CaRa - 30.09.2012, 19:15
Re: Offline Player Command - by Roko_foko - 30.09.2012, 19:16
Re: Offline Player Command - by Mr.Anonymous - 30.09.2012, 19:19
Re: Offline Player Command - by SumX - 30.09.2012, 19:20
Re: Offline Player Command - by Mr.Anonymous - 30.09.2012, 19:22
Re: Offline Player Command - by SumX - 30.09.2012, 19:22
Re: Offline Player Command - by Roko_foko - 30.09.2012, 20:12
Re: Offline Player Command - by mamorunl - 30.09.2012, 20:44

Forum Jump:


Users browsing this thread: 1 Guest(s)