Need help
#1

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
Reply
#2

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.
Reply
#3

Thanks it worked!! =D what was the problem? about [4] ?
Reply
#4

You made 4 rows of info, but you made 7 rows. It's like having 4 pails worth of water, but 7 pails.
Reply
#5

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
Reply
#6

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
Код:
Addplayer
etc
Reply
#7

You can make it so they spawn to one of those coords.

pawn Код:
public OnPlayerSpawn(playerid)
SetPlayerPos(playerid,gRandomPlayerSpawns[1],gRandomPlayerSpawns[2],gRandomPlayerSpawns[3]);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)