30.09.2012, 19:10
Hello!
I was trying to chek last player's login with a command.
I get : (25429) : error 035: argument type mismatch (argument 1)
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(playerid, params[])
{
new str[28],path[50],pLastOn[ 20 + 20 ],OnlineString[ 128 ],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_Exist( path ) )
{
file = INI_Open(path);
GetPVarString( str, "On", pLastOn, sizeof pLastOn );//25429
format( OnlineString,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;
}