Random Spawns - 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: Random Spawns (
/showthread.php?tid=131770)
Random Spawns -
[WF]Demon - 05.03.2010
hello i put this at the top of my script
Код:
new Float:MiniRandSpawn[][4] =
{
{1368.1959,2194.6023,9.7578},
{1393.2163,2167.3555,9.7578}
}
for my minigun DM and put this in my command
Код:
new iRandom = random(sizeof(MiniRandSpawn));
SetPlayerPos(playerid, MiniRandSpawn[iRandom][0], MiniRandSpawn[iRandom][1],MiniRandSpawn[iRandom][2]);
SetPlayerFacingAngle(playerid, MiniRandSpawn[iRandom][3]);
and when i compile i get this
Код:
C:\Users\Windows Vista\sampserver\gamemodes\Cranked.pwn(39) : error 001: expected token: ";", but found "public"
C:\Users\Windows Vista\sampserver\gamemodes\Cranked.pwn(130) : error 017: undefined symbol "COLOR_BLUE"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
(ignore the COLOR_BLUE thing i know what that is)
line 39 is
Код:
public OnGameModeInit()
anyone know why this is happening?
Re: Random Spawns -
Norn - 05.03.2010
Looks like you forgot to put a ; somewhere inside the function.
Re: Random Spawns -
[WF]Demon - 05.03.2010
Quote:
Originally Posted by Norn
Looks like you forgot to put a ; somewhere inside the function.
|
Thanks! i forgot to put a ; at the end of the "new"