Need help - 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: Need help (
/showthread.php?tid=98270)
Need help -
alistair_hawk - 20.09.2009
Hey guys sorry for asking alot of questions.
I am making some spawns and i had an error which is this :
Код:
C:\Documents and Settings\Desktop\Server\gamemodes\Hawk.pwn(41) : error 052: multi-dimensional arrays must be fully initialized
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
This is my script
Код:
new Float:gRandomPlayerSpawns[7][3] = {
{1884.3619,-2400.3230,13.5547},
{1880.1267, -3790.6748, 6.4682},
{1561.6987,-2935.8010,4.9565},
{1970.5021 ,-2247.2249, 13.5469}
};
(can you tell me what [7] and [3] means pls? xD
Re: Need help -
shady91 - 20.09.2009
pawn Код:
new Float:gRandomPlayerSpawns[4][3] = {
{1884.3619,-2400.3230,13.5547},
{1880.1267, -3790.6748, 6.4682},
{1561.6987,-2935.8010,4.9565},
{1970.5021 ,-2247.2249, 13.5469}
};
Try This.
Re: Need help -
alistair_hawk - 20.09.2009
Thanks it worked!! =D what was the problem? about [4] ?
Re: Need help -
ilikepie2221 - 20.09.2009
You made 4 rows of info, but you made 7 rows. It's like having 4 pails worth of water, but 7 pails.
Re: Need help -
_Vortex - 20.09.2009
Quote:
Originally Posted by ilikepie2221
You made 4 rows of info, but you made 7 rows. It's like having 4 pails worth of water, but 7 pails.
|
A better way to put it would be.. "its like having 7 monkeys but only 4 bananas."
Sorry for the offtopic post
Re: Need help -
alistair_hawk - 20.09.2009
Oh lol , thx i understand now ^^ and do you know what its used for? because i thought it was for players to spawn there but then i realised that its
etc
Re: Need help -
_Vortex - 20.09.2009
You can make it so they spawn to one of those coords.
pawn Код:
public OnPlayerSpawn(playerid)
SetPlayerPos(playerid,gRandomPlayerSpawns[1],gRandomPlayerSpawns[2],gRandomPlayerSpawns[3]);