error 035: argument type mismatch (argum - 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 (argum (
/showthread.php?tid=489165)
error 035: argument type mismatch (argum -
Brandon_More - 21.01.2014
Код:
C:\Users\Brandon\Desktop\Sicilian Mafia Roleplay\gamemodes\Mafia02.pwn(16111) : error 035: argument type mismatch (argument 1)
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;
Re: error 035: argument type mismatch (argum -
Ballu Miaa - 21.01.2014
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.
Re: error 035: argument type mismatch (argum -
Smally - 21.01.2014
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];
Re: error 035: argument type mismatch (argum -
Brandon_More - 21.01.2014
Fixed it. Used integer -
pawn Код:
hqi[inty] = floatstr(savingstring);
REP+ both for helping.