[Help]Random Spawning?
#1

Код:
enum PlayerSpawnInfo {
	Float:PlayerX, //Line 345
	Float:PlayerY,
	Float:PlayerZ,
	Float:PlayerAngle
}

  new Float:gRandomSpawns[][PlayerSpawnInfo] =
{
	{2493.9133, -1682.3986, 13.3382},
	{-2617.5156, 1390.6353, 7.1105},
	{2028.5538, 1008.3543, 10.8203},
	{1541.2833, -1362.4741, 329.6457},
}; //Line 357
Errors:
Код:
C:\DOCUME~1\USERS\Desktop\server\GAMEMO~1\Death.pwn(357) : error 029: invalid expression, assumed zero
C:\DOCUME~1\USERS\Desktop\server\GAMEMO~1\Death.pwn(357) : error 008: must be a constant expression; assumed zero
C:\DOCUME~1\USERS\Desktop\server\GAMEMO~1\Death.pwn(357) : warning 204: symbol is assigned a value that is never used: "gRandomSpawns"
C:\DOCUME~1\USERS\Desktop\server\GAMEMO~1\Death.pwn(349) : warning 203: symbol is never used: "PlayerAngle"
C:\DOCUME~1\USERS\Desktop\server\GAMEMO~1\Death.pwn(347) : warning 203: symbol is never used: "PlayerZ"
C:\DOCUME~1\USERS\Desktop\server\GAMEMO~1\Death.pwn(346) : warning 203: symbol is never used: "PlayerY"
C:\DOCUME~1\USERS\Desktop\server\GAMEMO~1\Death.pwn(345) : warning 203: symbol is never used: "PlayerX"
I took this out of the Mingun Madness Script...

If you cant figure this out, then pesae atleast tell me how to make Random Spawns!
Reply
#2

Quote:
Originally Posted by Tigerbeast11
Код:
enum PlayerSpawnInfo {
	Float:PlayerX, //Line 345
	Float:PlayerY,
	Float:PlayerZ,
	Float:PlayerAngle
}

  new Float:gRandomSpawns[][PlayerSpawnInfo] =
{
	{2493.9133, -1682.3986, 13.3382},
	{-2617.5156, 1390.6353, 7.1105},
	{2028.5538, 1008.3543, 10.8203},
	{1541.2833, -1362.4741, 329.6457}
}; //Line 357
this should fix the errors i think. Are u using the Float's in your gamemode? Because the warnings are telling u aint using them.
Reply
#3

I dont know what im using... I just copied this from the Minigun Madness GM...

BTW, it didnt work : (...

Edit: If you cant figure this out, I suggest you tell me how to create Random Spawns
Reply
#4

try using the search function, u'll find alot of topics about random spawning
Reply
#5

I tried! But being a newbie scripter, i didnt understand them... : (
Reply
#6

take a look at the LVDM gamemode that comes with the server pack it uses random spawning
Reply
#7

Can u explain to me how I can do it....

I cant understand them scripts
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)