2024-02-26, 01:53 AM
(This post was last modified: 2024-02-26, 01:54 AM by YoungKrypt.)
Damn, I feel like a Newb...
In Save Data Ihad saved the Data in the same structure it was given in:
All I had to do was delete: pInfo[playerid][money]
And replace it with GetPlayerMoney(playerid)
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]);