SA-MP Forums Archive
Small 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: Small Question =] (/showthread.php?tid=117949)



Small Question =] - ArTisT - 02.01.2010

Код:
new Float:gInviteSpawns[10][4] = {
{-1976.5912,166.1818,36.9623,272.6393},
{-1975.8610,162.1945,36.9623,272.0126},
{-1975.7461,157.5404,36.9623,276.1093},
{-1975.2136,151.4920,36.9623,268.2993},
{-1974.9963,145.3430,36.9623,269.2628},
{-1975.5842,140.8170,36.9623,269.8895},
{-1975.7874,134.0368,36.9623,271.7696},
{-1975.1681,129.0926,36.9623,270.8531},
{-1975.9069,121.4700,36.9623,270.5631},
{-1975.3311,112.7078,36.9623,267.7665}
The question is what the [4] stands for. 10 stands for 10 coords and that 4 .... ?

It's that i use 4 extra coord numbers or ?


Re: Small Question =] - MerLow - 02.01.2010

Means:

0 1 2 3
0 {-1976.5912,166.1818,36.9623,272.6393},
1 {-1975.8610,162.1945,36.9623,272.0126},
2 {-1975.7461,157.5404,36.9623,276.1093},
3 {-1975.2136,151.4920,36.9623,268.2993},
4 {-1974.9963,145.3430,36.9623,269.2628},
5 {-1975.5842,140.8170,36.9623,269.8895},
6 {-1975.7874,134.0368,36.9623,271.7696},
7 {-1975.1681,129.0926,36.9623,270.8531},
8 {-1975.9069,121.4700,36.9623,270.5631},
9 {-1975.3311,112.7078,36.9623,267.7665}

You have 10 coordinates, all have 4 positions, problably X, Y, Z and rotation.