Posts: 498
Threads: 233
Joined: Aug 2013
Reputation:
0
well,i have made a system ,this system is like packs,each pack can get only 100 slots,But all of the packs use the same variables/saving system,how can i make it count the slots that are for a specific pack from the whole objects,like for editing a slot and..
Posts: 362
Threads: 46
Joined: Jul 2013
Reputation:
0
Can you explain more and post some code?
Posts: 54
Threads: 10
Joined: Nov 2013
Reputation:
0
Well you cant make it specific if all the packs use the same variables. You would have to do something like Ppack1, Ppack2, Ppack3. Then you can do something like if player buys 2 more of pack 2, it would Playerinfo[playerid][Ppack2] += 2;
Posts: 362
Threads: 46
Joined: Jul 2013
Reputation:
0
Oh I see. If you are going to do it like that, it won't be possible try something like
Playerinfo[MAX_PLAYERS][Ppack2][MAX_PACKS]
So in your enum just add Ppack2[MAX_PACKS],