#6

Quote:
Originally Posted by DoVaH
Посмотреть сообщение
So i put this:

new Float:RandomSpawn[][] =
{
{2037.8833,-1411.0585,17.1641,125.2140},
{1178.1448,-1323.3326,14.1056,268.0599},
{-2675.1411,627.4380,14.4531,181.5241},
{1579.2161,1768.8231,10.8203,92.1241}
};


public OnPlayerSpawn(playerid)
{
new Random = random(sizeof(RandomSpawn));
SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1],RandomSpawn[rand][2]);
SetPlayerFacingAngle(playerid, RandomSpawn[rand][3]);
return 1;
}


and i get:
C:\Users\Tomo\Desktop\SA_MP\gamemodes\mygamemode.p wn(507) : error 020: invalid symbol name ""
C:\Users\Tomo\Desktop\SA_MP\gamemodes\mygamemode.p wn(50 : error 029: invalid expression, assumed zero
C:\Users\Tomo\Desktop\SA_MP\gamemodes\mygamemode.p wn(50 : error 017: undefined symbol "rand"
C:\Users\Tomo\Desktop\SA_MP\gamemodes\mygamemode.p wn(50 : error 029: invalid expression, assumed zero
C:\Users\Tomo\Desktop\SA_MP\gamemodes\mygamemode.p wn(50 : fatal error 107: too many error messages on one line

im a new to scripting
that's completely different from what you're original question was asking...The problem is you created a variable named Random instead of rand
Reply


Messages In This Thread
HELP - by DoVaH - 22.02.2012, 14:13
Re: HELP - by niels44 - 22.02.2012, 14:29
Re: HELP - by DoVaH - 22.02.2012, 18:05
Re: HELP - by [ABK]Antonio - 22.02.2012, 18:12
Re: HELP - by DoVaH - 22.02.2012, 18:38
Re: HELP - by [ABK]Antonio - 22.02.2012, 18:48

Forum Jump:


Users browsing this thread: 4 Guest(s)