Saving unlocked skins
#2

Here is something you can try. Create a table called skins. Add two columns, userid, skinid, purcahsed. When someone unlocks a skin, Add a new entry to the table and set the purchased to false. When he purchases it, Set the purchased to true. When you want to read data, You can select * from skins where userid = `playeruserid` and then store it in an array.
Reply


Messages In This Thread
Saving unlocked skins - by siemka321 - 20.05.2017, 11:42
Re: Saving unlocked skins - by DarkSkull - 20.05.2017, 11:48
Re: Saving unlocked skins - by Aly - 20.05.2017, 11:48
Re: Saving unlocked skins - by siemka321 - 20.05.2017, 11:51
Re: Saving unlocked skins - by Aly - 20.05.2017, 12:05
Re: Saving unlocked skins - by siemka321 - 20.05.2017, 12:12
Re: Saving unlocked skins - by AbyssMorgan - 20.05.2017, 12:12
Re: Saving unlocked skins - by Vince - 20.05.2017, 12:30

Forum Jump:


Users browsing this thread: 1 Guest(s)