25.10.2014, 10:10
First of all you need an array to store the information, an enum is just a enumeration of constants
pawn Код:
enum TestFunc
{
Name[32],
PlotType = 0,
Float: pPos[16]
}
new Array[TestFunc];
stock TestFunc(Name[], Plot = 0, {Float,_}:...) {
if(numargs() == 2) {
printf("Unable to add the runway plot as no points where given");
} else {
strcat((Array[Name][0] = EOS, Array[Name]), Name, 32);
Array[PlotType] = Plot;
new
paramPos = 2,
paramCount = numargs()
;
while(paramPos < paramCount) {
Array[paramPos - 2] = getarg(paramPos);
}
}
}