Is that possible? In array structure ... - 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: Is that possible? In array structure ... (
/showthread.php?tid=445018)
In array structure string array (multiple dimension) -
Typhome - 19.06.2013
....
Re: Is that possible? In array structure ... -
dEcooR - 19.06.2013
try this
enum gFaction
{
gStatus,
gName,
gRank[11][30]
}
new Faction[MAX_SOME][gFaction];
Re: Is that possible? In array structure ... -
Typhome - 19.06.2013
....
Re: Is that possible? In array structure ... -
dEcooR - 19.06.2013
so its impossible if he said
You can't have multi-dimensional arrays in enums
Re: Is that possible? In array structure ... -
Typhome - 19.06.2013
....
Re: Is that possible? In array structure ... -
dEcooR - 19.06.2013
If its okay,no
Re: Is that possible? In array structure ... -
DarkPower - 19.06.2013
Limit is 3 dimension so if you use like
enum _something_
{
one,
two[2],
three[3][2]
};
new variable[MAX_PLAYERS][_something_]; // that's already two dimensions
if you use
variable[0][one] = (5); // you use two dimensions
variable[0][two][0] = (1); // this is third dimension
variable[0][three][1][2] = (2); // you pass a limit! so you can't use two dimensions in enum