[Help]Random Spawning? - 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: [Help]Random Spawning? (
/showthread.php?tid=102780)
[Help]Random Spawning? -
Tigerbeast11 - 17.10.2009
Код:
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!
Re: [Help]What is wrong with this script?[2 Errors][5 Warnings] -
per~fectionist - 17.10.2009
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.
Re: [Help]What is wrong with this script?[2 Errors][5 Warnings] -
Tigerbeast11 - 17.10.2009
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
Re: [Help]What is wrong with this script?[2 Errors][5 Warnings] -
per~fectionist - 17.10.2009
try using the search function, u'll find alot of topics about random spawning
Re: [Help]What is wrong with this script?[2 Errors][5 Warnings] -
Tigerbeast11 - 17.10.2009
I tried! But being a newbie scripter, i didnt understand them... : (
Re: [Help]What is wrong with this script?[2 Errors][5 Warnings] -
per~fectionist - 17.10.2009
take a look at the LVDM gamemode that comes with the server pack it uses random spawning
Re: [Help]What is wrong with this script?[2 Errors][5 Warnings] -
Tigerbeast11 - 17.10.2009
Can u explain to me how I can do it....
I cant understand them scripts