Posts: 1,782
Threads: 306
Joined: Jan 2010
Reputation:
0
Hello,
I got the random spawns code of the wiki,
When i add it to my code, And try compile, It crashes my compiler,
Does anyone know why?
Posts: 19
Threads: 2
Joined: Jan 2008
Reputation:
0
Not when you don't post your code :P
Posts: 2,200
Threads: 14
Joined: Apr 2009
Reputation:
0
Like I said, you forgot a bracket
Posts: 2,200
Threads: 14
Joined: Apr 2009
Reputation:
0
The code on the wiki works fine with no crashes whatsoever.
You edited it and used the random() function outside of callbacks which caused the crash. You can't use functions outside callbacks
Posts: 1,782
Threads: 306
Joined: Jan 2010
Reputation:
0
What function?
All i have is the new rand thing below my includes,
Then the Float:ShipSpawns or w/e tht holds all the coords
Then in ongamemodeinit i use the random on addplayerclass