10.10.2015, 07:28
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);