Hello guys!
I have the problem with oop in MTA:SA.
I want to save my data to account so i'm using it like that
function playerAccountSetData(player, dataname, amount)
player:getAccount():setData(dataname, amount)
end
Okey, my data is changed, but when i logout and log in again, my data in account is null...
Is this a oop problem? Or i'm making something bad?
This is not even editing my db file...
Thanks for help!
Greetings, sc00r3!
//Edit1
I'm checking data after adding it by
outputChatBox(player:getAccount():getData(dataname))
and it show the data, what i saved.