Saving unlocked skins
#3

You can create an array as you said
Код:
#define MAX_SKINS 312
new unlockedSkin[MAX_PLAYERS][MAX_SKINS]; //This is meant to be a string
And then set it to 1 if it's unlocked and to 0 if it's not
Код:
unlockedSkin[playerid][SkinID] = '1'; //unlocked keep in mind we're using a string
unlockedSkin[playerid][SkinID] = '0'; //locked keep in mind we're using a string
Then you can use either MySQL or INI, depends on what you're server is using.
For MySQL you have to create a Column, let's say
Код:
unlockedSkin |  VARCHAR(312)
Why 312?
Because that's the number of skin available.
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: 4 Guest(s)