error 035: argument type mismatch (argument 3)
#1

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", "");
                        }
                    }
Reply
#2

What line does the error show?
Reply
#3

bump
Reply
#4

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.
Reply
#5

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

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


Forum Jump:


Users browsing this thread: 2 Guest(s)