SA-MP Forums Archive
errors help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: errors help (/showthread.php?tid=634363)



errors help - JuzDoiT - 17.05.2017

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);




Re: errors help - StrikerZ - 17.05.2017

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


Re: errors help - JuzDoiT - 17.05.2017

thanks fixed by using INI_WriteString(File


Re: errors help - zedshadowzw - 18.05.2017

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


Re: errors help - Fairuz - 18.05.2017

Edit:Nvm.