Kapupc Posted December 15, 2014 Share Posted December 15, 2014 because i just wanna make dynamic vehicle owner ship so i cannot connect to internal.db and sure i cant make new table i still make another .db but and cannot get id in accounts database that's all i need because i can't check who's owner anything i don't want to check with player name because unix id is cannot change tell me pls how can i do Link to comment
Kapupc Posted December 15, 2014 Author Share Posted December 15, 2014 account name still can change everytime like someone donote to change thier name in roleplay server. so if you script with unix_id that is dynamical with account name Link to comment
MTA Team botder Posted December 15, 2014 MTA Team Share Posted December 15, 2014 Create a new one, copy the data from the last account and delete the last account. Do you need something else? getAccount addAccount getAllAccountData setAccountData removeAccount Link to comment
Kapupc Posted December 15, 2014 Author Share Posted December 15, 2014 no one get hmm if you have 100 vehicles in vehicles database and when your change your name you need to edit 100 vehicles owner finally that look abit process but. i'm just look to better way mine tink we cant do with account system from mta i will go exthernal data base thanks every post ^__^ Link to comment
Kapupc Posted December 15, 2014 Author Share Posted December 15, 2014 i got some idea, can i saveplayerdata with table like saveaccountdata(acc, "vehiclesdata", table) ? Link to comment
MTA Team botder Posted December 15, 2014 MTA Team Share Posted December 15, 2014 You can't save a lua table, but you can convert it to a string with toJSON and convert it back with fromJSON Link to comment
Kapupc Posted December 15, 2014 Author Share Posted December 15, 2014 omg bad idea, how about when i create a vehicle and save into database i take that vehicle id(indatabase) and save into player data so that play will have vehicles key to access control that vehicle wew maybe this is EASIEST way Link to comment
albers14 Posted December 16, 2014 Share Posted December 16, 2014 Make an account system. Their account name shouldnt change when they donate. But their nickname should change. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now