SA-MP Forums Archive
just a small (array) question. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: just a small (array) question. (/showthread.php?tid=265430)



just a small (array) question. - Donya - 30.06.2011

how would i create an array using the value of another operator?

pawn Код:
new Position, Float:Distance[JoinCount];
ignore position


Re: just a small (array) question. - Shadoww5 - 01.07.2011

What ?


AW: just a small (array) question. - Nero_3D - 01.07.2011

use constants or defines, nothing else possible

pawn Код:
const stock JoinCount = 5;
pawn Код:
#define JoinCount (5)
If you use definitions, the expression on the right side must be constant

Also you only can use constants!