SA-MP Forums Archive
problom in spawn .. - 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: problom in spawn .. (/showthread.php?tid=137839)



problom in spawn .. - rong13 - 30.03.2010

i did do spawn points and save them and add them 2 the mode
but some thing is wrong here ..
this up in the mode
Quote:

new Float:randomSpawn[18][3] = {
(1457.3940,2773.3762,10.8203),
(2026.3984,1000.9971,10.8203),
(2057.9458,863.0795,6.9573),
(2193.8147,1677.1129,12.3672),
(1710.2896,1615.4321,10.0903),

(1623.0256,1815.9717,10.8203),
(2206.5549,1285.5034,10.8203),
(2344.6221,1388.1173,42.8203),
(2415.7441,1121.3564,10.8203),
(2546.2944,1023.7031,10.8203),

(2566.2688,1326.7695,10.8203),
(2022.9060,1916.0720,12.3305),
(2371.5679,2169.0159,10.8255),
(2008.8800,2302.1409,10.8203),
(1661.6686,2252.5186,11.0701),

(2393.9746,593.0137,10.8222),
(2821.5322,2384.8953,11.0625),
(2633.1621,2350.2942,10.812
};

and this is on player spawn public
Quote:

public OnPlayerSpawn(playerid)
{
new rand = random(sizeof(randomSpawn));
SetPlayerPos(playerid, randomSpawn[rand][0], randomSpawn[rand][1], randomSpawn[rand][2]);
SetPlayerFacingAngle(playerid, 270.0);
GivePlayerMoney(playerid,1500);
GivePlayerWeapon(playerid,24,250);
return 1;
}

so what wrong ?
becuse when i am spawn im falling there



Re: problom in spawn .. - rong13 - 30.03.2010

some 1 ?



Re: problom in spawn .. - Naruto4 - 30.03.2010

try this format

Код:
new Float:RandomSpawn[][3] =
{
  {-2796.9854, 1224.8180, 20.5429},
  {-2454.2170, 503.8759, 30.0790},
  {-2669.7322, -6.0874, 6.1328}
};



Re: problom in spawn .. - rong13 - 30.03.2010

there is a max players spawn ?
becuse when i did what u give me its work
and when i remove the spawn point and wirte mine
its those the same thing then before ?
so the problom in the spawn points ?
or some thing else ?


Re: problom in spawn .. - rong13 - 30.03.2010

??/


Re: problom in spawn .. - [03]Garsino - 30.03.2010

pawn Код:
new Float:randomSpawn[18][3] = {
{1457.3940,2773.3762,10.8203},
{2026.3984,1000.9971,10.8203},
{2057.9458,863.0795,6.9573},
{2193.8147,1677.1129,12.3672},
{1710.2896,1615.4321,10.0903},

{1623.0256,1815.9717,10.8203},
{2206.5549,1285.5034,10.8203},
{2344.6221,1388.1173,42.8203},
{2415.7441,1121.3564,10.8203},
{2546.2944,1023.7031,10.8203},

{2566.2688,1326.7695,10.8203},
{2022.9060,1916.0720,12.3305},
{2371.5679,2169.0159,10.8255},
{2008.8800,2302.1409,10.8203},
{1661.6686,2252.5186,11.0701},

{2393.9746,593.0137,10.8222},
{2821.5322,2384.8953,11.0625},
{2633.1621,2350.2942,10.8128}
};
You need to use "{ and }" not "( and )"


Re: problom in spawn .. - rong13 - 30.03.2010


i was so stuped and thnx bro


Re: problom in spawn .. - jamesbond007 - 30.03.2010

Lol i even didnt notice it, nice one xD