SA-MP Forums Archive
MySQL R38 - 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: MySQL R38 (/showthread.php?tid=632946)



MySQL R38 - MrTea - 22.04.2017

Hello , i have this stock, but i want to make for mysql R38 , i didn't know what i need to change because if i compile like this , i have error: unknown function
Код:
stock IncreasePlayerGroupReports(playerid)
{
new query[128];
PlayerInfo[playerid][pFactionPoints]++;
mysql_format(handle, query, sizeof(query), "UPDATE `playeraccounts` SET `FactionPoints` = '%d' WHERE playerID = '%d'", PlayerInfo[playerid][pFactionPoints], PlayerInfo[playerid][pInternalID]);
mysql_query(SQL, query, false);
Код:
cache_get_field_content(0, "FactionPoints", result); PlayerData[extraid][pFactionPoints] = strval(result);