Saving unlocked skins
#7

312 Bytes string for all players, rly ?

PHP код:
/*
IsTogglePlayerSkin(playerid,skinid);
TogglePlayerSkin(playerid,skinid,toggle); //toggle 0/1
*/
new unlockedSkin[MAX_PLAYERS][GetConfigSize(312)]; //real size MAX_PLAYERS * 10
#define IsTogglePlayerSkin(%0,%1)        IsToggleConfigInformation(unlockedSkin[(%0)],(%1))
#define TogglePlayerSkin(%0,%1,%2)        ToggleConfigInformation(unlockedSkin[(%0)],(%1),(%2))
// mysql/ini data store
//0 - 9
for(new 0GetConfigSize(312); i++){
    
//get or save unlockedSkin[playerid][i]

10 x 4 Bytes integer values vs 312 Bytes String

BitFunctions:
https://sampforum.blast.hk/showthread.php?tid=591223
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: 2 Guest(s)