errors help
#1

PHP код:
516) : error 035argument type mismatch (argument 3)
(
517) : error 035argument type mismatch (argument 3
PHP код:
stock RegisterPlayer(playeridpassword[])
{
     new 
strdate[20], year,month,day,ip[128];
    
getdate(yearmonthday);
    
format(strdate,sizeof(strdate),"%d/%d/%d",day,month,year);
        
    new 
INI:File INI_Open(UserPath(playerid));
    
INI_SetTag(File,"data");
    
INI_WriteInt(File,"Password",udb_hash(password));
    
INI_WriteInt(File,"RegisteredDate",strdate);    // Here Is Line 516
    
INI_WriteInt(File,"Ip",ip);                             // Here Is Line 517
    
INI_WriteInt(File,"Cash",0);
    
INI_WriteInt(File,"Admin",0);
    
INI_WriteInt(File,"Kills",0);
    
INI_WriteInt(File,"Deaths",0);
    
INI_WriteInt(File,"Hours",0);
    
INI_WriteInt(File,"Minutes",0);
    
INI_WriteInt(File,"Seconds",0);
    
    
INI_Close(File);
    
PlayerInfo[playerid][pLogged] = 1;
    
PlayerInfo[playerid][pRegistered] = 1;
    
    
GivePlayerMoney(playerid,50000);
    
SavePlayerStats(playerid);

Reply
#2

You're trying to save string bro and you're using
INI_WriteInt
I think you found your problem.
Reply
#3

thanks fixed by using INI_WriteString(File
Reply
#4

Having the same problems with this guy too but thanks for helping.. I got it all fixed now
Reply
#5

Edit:Nvm.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)