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

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)