SA-MP Forums Archive
correct array usage. - 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: correct array usage. (/showthread.php?tid=202744)



correct array usage. - The_Gangstas - 25.12.2010

pawn Код:
new Float:FireSpawns[6][3] =
{
    {//Lvpd  -- Here This Means LVPD which equals to iFire
        {2297.2849,2430.6099,10.8203},
        {2293.6882,2430.5081,10.8203},
        {2272.9319,2428.5117,10.8203},
        {2276.1521,2429.4663,10.8203},
        {2278.4812,2427.9199,10.8203},
        {2273.8140,2427.1079,10.8203}
    },
{//diff ifire here
}
};


FireSpawns[iFire][0], FireSpawns[iFire][0], FireSpawns[iFire][0]

//firespawn .. ifire = lvpd right? then [0] for the first float's but its taking [o] for ifire..



Re: correct array usage. - admantis - 25.12.2010

i dont get the point