• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] [Help] Can't get Player Money to Update through MySQL
#2
Damn, I feel like a Newb...
In Save Data Ihad saved the Data in the same structure it was given in:
Code:
mysql_format(handle, query, sizeof(query), "UPDATE `users` set PosX = %f, PosY = %f, PosZ = %f, Rot = %f, Skin = %d, Level = %d, money = %d, WHERE Master_ID = %d", px, py, pz, rot, pInfo[playerid][Skin], pInfo[playerid][Level], pInfo[playerid][money], pInfo[playerid][MasterID]);

All I had to do was delete: pInfo[playerid][money]
And replace it with GetPlayerMoney(playerid)

Code:
mysql_format(handle, query, sizeof(query), "UPDATE `users` set PosX = %f, PosY = %f, PosZ = %f, Rot = %f, Skin = %d, Level = %d, money = %d, WHERE Master_ID = %d", px, py, pz, rot, pInfo[playerid][Skin], pInfo[playerid][Level], GetPlayerMoney(playerid), pInfo[playerid][MasterID]);
  Reply


Messages In This Thread
RE: [Help] Can't get Player Money to Update through MySQL - by YoungKrypt - 2024-02-26, 01:53 AM

Forum Jump: