SA-MP Forums Archive
error 035: argument type mismatch (argument 3) - 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: error 035: argument type mismatch (argument 3) (/showthread.php?tid=580636)



error 035: argument type mismatch (argument 3) - kloning1 - 07.07.2015

hi, i create mysql rank , but missmatch?
where iam wrong?
pawn Код:
case DIALOG_HEADMODERATOR: // kredit to justin
        {
            if(response)
            {
                switch(listitem)
                {
                    case 0:
                    {  // top kill
                        new query[256];
                        mysql_format(mysql, query, sizeof(query), "SELECT `Username`, `pKills` FROM `zmusers` ORDER BY `pKills` DESC LIMIT 10");
                        mysql_tquery(mysql, query);
                        new rows,fields;
                        cache_get_data(rows,fields,mysql);
                        if(rows > 0)
                        {
                            new string[64],name[24],kil;
                            for(new row = 0; row < rows; row++)
                            {
                                cache_get_row(row,0,name,mysql,MAX_PLAYER_NAME);
                                cache_get_row(row,1,kil); // error in here "error 035: argument type mismatch (argument 3)"
                                format(string,sizeof(string),"#%d: %s with %d Kill!",(row+1),name,kil); // #%d row table (1-10), %s // name, %d // rank (contoh aja exp)
                            }
                            ShowPlayerDialog(playerid, DIALOG_MODERATOR, DIALOG_STYLE_INPUT, "Top Kills", string, "Close", "");
                        }
                    }



Re: error 035: argument type mismatch (argument 3) - ZBits - 07.07.2015

What line does the error show?


Re: error 035: argument type mismatch (argument 3) - kloning1 - 07.07.2015

bump


Re: error 035: argument type mismatch (argument 3) - youssefehab500 - 07.07.2015

Look at the line above the line with the error and compare both, I'm sure you will find why it is giving you an argument type mismatch error.


Re: error 035: argument type mismatch (argument 3) - kloning1 - 07.07.2015

pawn Код:
cache_get_row(row,1,kil); // error in here "error 035: argument type mismatch (argument 3)"
the error


Re: error 035: argument type mismatch (argument 3) - justice96 - 07.07.2015

These codes should be work!

Код:
cache_get_row(row,1,kil); // error in here "error 035: argument type mismatch (argument 3)"
Код:
kil = cache_get_row_int(row,1,// mysql database);