SA-MP Forums Archive
Argument type dismatch (udb_hash) - 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: Argument type dismatch (udb_hash) (/showthread.php?tid=515120)



Argument type dismatch (udb_hash) - Metharon - 24.05.2014

Код:
        new ParolaContului[MAX_PLAYERS][50];
        format( ParolaContului[ playerid ], 50, "%s", udb_hash(inputtext) ); 
        new INI:File = INI_Open(UserPath(playerid));
        INI_SetTag(File,"data");
        INI_WriteInt(File,"Parola", ParolaContului[playerid] );	 < ---
pawn Код:
error 035: argument type mismatch (argument 3)



Re: Argument type dismatch (udb_hash) - Dignity - 24.05.2014

ParolaContului has two array brackets and you only used one.

EDIT: See above.


Re: Argument type dismatch (udb_hash) - ball - 24.05.2014

udb_hash returns number, so don't use format

Код:
new INI:File = INI_Open(UserPath(playerid));
        INI_SetTag(File,"data");
        INI_WriteInt(File,"Parola", udb_hash(inputtext));



Re: Argument type dismatch (udb_hash) - Metharon - 24.05.2014

thxx