Problem with enums (Set a limit for saveboxes) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem with enums (Set a limit for saveboxes) (
/showthread.php?tid=309677)
Problem with enums (Set a limit for saveboxes) -
Kevin54321 - 08.01.2012
Hello,
i have a big problem with a savebox for gangs!
I hope someone can help me!
First: Sorry for my english, i am german and my english in school isn`t the best!
First this:
Код:
enum SBLimits1
{
Mats,
Drogen,
Deagle,
M4,
MP5,
Shotgun,
Rifle
};
new SBLimits[25][11][SBLimits1];
25 = GangID
11 = Rank in the Gang
To Set the Limit i created some dialogs and the GangID, RankL and the Limit was set in a global variable!
Код:
if(ItemSBL1[playerid] == 1){
SBLimits[GangID[playerid]][RankL[playerid]][Mats] = LimitL[playerid];
}
Is a structure like this right?
If not i hope someone find the mistake!
Thank you very much!
Re: Problem with enums (Set a limit for saveboxes) -
Rob_Maate - 08.01.2012
Wow a 3D array... Your aware of how large that is right?