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



error 035: argument type mismatch (argument 2) - Jimmi - 04.09.2015

C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(12145) : error 035: argument type mismatch (argument 2)
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(1214 : error 035: argument type mismatch (argument 2)

Hear:

new query[256], security, security2;
mysql_real_escape_string(vInfo[MasinaTrunkID[playerid]][tDrugs], security);//hear
format(query, sizeof(string), "UPDATE `vehicles` SET `Drugs`= '%d' WHERE `ID`='%d'", security, playerid);
mysql_query(query);
mysql_real_escape_string(PlayerInfo[playerid][pDrugs], security2);//hear
format(query, sizeof(string), "UPDATE `players` SET `Drugs`= '%d' WHERE `ID`='%d'",security2, playerid);
mysql_query(query);


Re: error 035: argument type mismatch (argument 2) - Fancy - 04.09.2015

Quote:
Originally Posted by Jimmi
Посмотреть сообщение
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(12145) : error 035: argument type mismatch (argument 2)
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(1214 : error 035: argument type mismatch (argument 2)

Hear:

new query[256], security, security2;
mysql_real_escape_string(vInfo[MasinaTrunkID[playerid]][tDrugs], security);//hear
format(query, sizeof(string), "UPDATE `vehicles` SET `Drugs`= '%d' WHERE `ID`='%d'", security, playerid);
mysql_query(query);
mysql_real_escape_string(PlayerInfo[playerid][pDrugs], security2);//hear
format(query, sizeof(string), "UPDATE `players` SET `Drugs`= '%d' WHERE `ID`='%d'",security2, playerid);
mysql_query(query);
try this:

Код:
		  new query[256], security[50], security2[50];
		  mysql_real_escape_string(vInfo[MasinaTrunkID[playerid]][tDrugs], security);//hear
		  format(query, sizeof(string), "UPDATE `vehicles` SET `Drugs`= '%d' WHERE `ID`='%d'", security, playerid);
		  mysql_query(query);
		  mysql_real_escape_string(PlayerInfo[playerid][pDrugs], security2);//hear
		  format(query, sizeof(string), "UPDATE `players` SET `Drugs`= '%d' WHERE `ID`='%d'",security2, playerid);
		  mysql_query(query);



Re: error 035: argument type mismatch (argument 2) - N0FeaR - 10.10.2015

Try this

pawn Код:
new query[256], security[50], security2[50];
          mysql_real_escape_string(vInfo[MasinaTrunkID[playerid]][tDrugs], security);//hear
          format(query, sizeof(string), "UPDATE `vehicles` SET `Drugs`= '%d' WHERE `ID`='%d'", security, playerid);
          mysql_query(query);
          mysql_real_escape_string(PlayerInfo[playerid][pDrugs], security2);//hear
          format(query, sizeof(string), "UPDATE `players` SET `Drugs`= '%d' WHERE `ID`='%d'",security2, playerid);
          mysql_query(query);