SA-MP Forums Archive
warning 202: number of arguments does not match definition - 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: warning 202: number of arguments does not match definition (/showthread.php?tid=619730)



warning 202: number of arguments does not match definition - dh240473 - 21.10.2016

PHP код:
    if(num_hash(inputtext) == dini_Int(userfile(playerid), "Password"))
    {
        new 
string[900],haha[500],Ultra[MAX_PLAYERS];
        
dini_IntSet(userfile(playerid),"Logged"1);
        
AccInfo[playerid][Logged] = 1;
        
AccInfo[playerid][Skin] = dini_Int(userfile(playerid),"Skin");
        
AccInfo[playerid][Money] = dini_Int(userfile(playerid),"Money");
        
AccInfo[playerid][Password] = dini_Int(userfile(playerid),"Password");
        
strcat(Ultra[playerid], dini_Get(userfile(playerid),"IP"));
        
SetPlayerSkin(playerid,AccInfo[playerid][Skin]);
        
format(haha,sizeof(haha),""green"Successfully Login With Password: "yellow"%d/n"red"[SERVER]: "white"Last login IP:"yellow"%s.",num_hash(AccInfo[playerid][Password]),Ultra[playerid]);// this is error line
        
strcat(string,haha,sizeof(string));
        
ShowPlayerDialog(playeridNotifyDialogDIALOG_STYLE_MSGBOX""red"< ! > "yellow"Notice"string"OK");
        
dini_Set(userfile(playerid),"IP"GetIP(playerid));
    } 



Re: warning 202: number of arguments does not match definition - SyS - 21.10.2016

can you show num_hash() function?
Edit:Also Ultra() function..


Re: warning 202: number of arguments does not match definition - dh240473 - 21.10.2016

Quote:
Originally Posted by Sreyas
Посмотреть сообщение
can you show num_hash() function?
i don't know where it is but it in my include i just don't know which one :/


Re: warning 202: number of arguments does not match definition - CantBeJohn - 21.10.2016

Quote:
Originally Posted by dh240473
Посмотреть сообщение
i don't know where it is but it in my include i just don't know which one :/
It's from the dutils include.