Can I make array of functions?
#6

Something like this?
pawn Код:
enum TDefinedCars
{
    Model,
    Float:SpawnX,
    Float:SpawnY,
    Float:SpawnZ
}

new DefinedCars[20][TDefinedCars] =
{
    {562, 100.0, 100.0, 5.0},
    {418, 150.0, 258.1, 7.8},
    ...
    {519, -130.5, 179.8, 11.4}
}


new Cars[20];

for (new i; i < 20: i++)
    Cars[i] = CreateVehicle(DefinedCars[i][Model], DefinedCars[i][SpawnX], DefinedCars[i][SpawnY], DefinedCars[i][SpawnZ], 0.0, 0, 0, 60);
Reply


Messages In This Thread
Can I make array of functions? - by Stuneris - 11.02.2014, 15:57
Re: Can I make array of functions? - by PowerPC603 - 11.02.2014, 16:01
Re: Can I make array of functions? - by Stuneris - 11.02.2014, 16:06
Re: Can I make array of functions? - by PowerPC603 - 11.02.2014, 16:11
Re: Can I make array of functions? - by Stuneris - 11.02.2014, 16:13
Re: Can I make array of functions? - by PowerPC603 - 11.02.2014, 16:23

Forum Jump:


Users browsing this thread: 1 Guest(s)