Limit? - 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: Limit? (
/showthread.php?tid=581511)
Limit? -
Midzi - 13.07.2015
Hello. I have an array with 4 dimensions.
Pawno says that is too much.
I can't create more than 3?
Is any way to broke this limit?
Help please ;f
Re: Limit? -
cnoopers - 13.07.2015
only 2
Re: Limit? -
Mauzen - 13.07.2015
What do you need 4 dimensions for? Theres certainly an alternative.
Re: Limit? -
Midzi - 13.07.2015
I need 4 dimensions for game:
Код:
new Game[Category][RoomID][MapID][Data];
And it's only for one game, not for all games in server.
Re: Limit? -
cnoopers - 13.07.2015
use enum
Re: Limit? -
Midzi - 13.07.2015
[Data] is an enum.
And in enum are more dimensions...
So I using actually 5 dimensions
Re: Limit? -
Onfroi - 13.07.2015
What exactly is the error you're getting? Maybe you're misinterpreting it.
Re: Limit? -
SickAttack - 13.07.2015
Why do you need all those extra elements?
pawn Код:
#define MAX_GAME_SLOTS 5
enum eGames
{
game_category,
game_room,
game_map,
game_data,
and_so_on
};
new aGames[MAX_GAME_SLOTS][eGames];
Re: Limit? -
admantis - 14.07.2015
He's right, you're viewing arrays the wrong way. If you make a new dimension for each variable, we'd have codes like this everywhere:
PHP код:
Employee[wage][age][employeer][rank][gender] = 1;
...which doesn't make a lot of sense.
Re: Limit? -
Lordzy - 14.07.2015
https://sampforum.blast.hk/showthread.php?tid=483994