error 035: argument type mismatch (argum
#1

Код:
C:\Users\Brandon\Desktop\Sicilian Mafia Roleplay\gamemodes\Mafia02.pwn(16111) : error 035: argument type mismatch (argument 1)
pawn Код:
new Float:opera;
pawn Код:
mysql_fetch_field_row(opera, "intX");
            hq[i][inx] = opera;
        mysql_fetch_field_row(opera, "intY");
            hq[i][iny] = opera;
        mysql_fetch_field_row(opera, "intZ");
            hq[i][inz] = opera;
Reply
#2

Are not your fields are set to integer type and the loaded value is already in integer as the name suggests? and i guess you are trying to load the integer value into a floating variable from mysql. Try changing it into an integer and check. Try this and tell me if it works. Also point out the line 16111 again.

pawn Код:
new opera;
Reply
#3

Try
pawn Код:
new Float:opera[2];

mysql_fetch_field_row(opera, "intX");
            hq[i][inx] = opera[0];
        mysql_fetch_field_row(opera, "intY");
            hq[i][iny] = opera[1];
        mysql_fetch_field_row(opera, "intZ");
            hq[i][inz] = opera[2];
Reply
#4

Fixed it. Used integer -

pawn Код:
hqi[inty] = floatstr(savingstring);
REP+ both for helping.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)