SA-MP Forums Archive
Help whirpool :-// - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help whirpool :-// (/showthread.php?tid=186672)



Help whirpool :-// - DarkPower - 30.10.2010

I making reg/login system using whirpool hash system, this is OnDialogResponse code

pawn Код:
if(dialogid == DIALOG_LOGIN)
    {
       new
       buf[130];
       format(File,sizeof File,LOKACIJA_RACUNA,GetName(playerid));
       if(!response) return SCM(playerid,plava,"SERVER: Kickani ste jer ste odustali od logiranja, a to je obvezno napraviti."); Kick(playerid);
       WP_Hash(buf, sizeof(buf), inputtext);
       if(!strcmp(buf, dini_Int(File, "Pass") , true))
       {
       
       }
       else
       {

       }
    }
and i get this error

C:\Users\ExtremePower\Desktop\Lve\gamemodes\lve.pw n(17 : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

on this line

pawn Код:
if(!strcmp(buf, dini_Int(File, "Pass") , true))



Re: Help whirpool :-// - MadeMan - 30.10.2010

pawn Код:
if(!strcmp(buf, dini_Get(File, "Pass") , true))



Re: Help whirpool :-// - DarkPower - 30.10.2010

tnx alot