SA-MP Forums Archive
[Help] 2 Errors.. please 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: [Help] 2 Errors.. please help :) (/showthread.php?tid=93369)



[Help] 2 Errors.. please help :) - DiddyBop - 24.08.2009

Hi, ima new coder.. and when i was changing player spawn locations.. i got this..

C:\Users\Marc\Desktop\Samp Server\gamemodes\cdmaf.pwn(34) : error 052: multi-dimensional arrays must be fully initialized
C:\Users\Marc\Desktop\Samp Server\gamemodes\cdmaf.pwn(3 : error 052: multi-dimensional arrays must be fully initialized
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.


What am i doing wrong?


Here is script:

new Float:gRandomPlayerSpawns[23][3] = {
{1958.3783,1343.1572,15.3746}
};

new Float:gCopPlayerSpawns[2][3] = {
{2297.1064,2452.0115,10.8203}
};



Re: [Help] 2 Errors.. please help :) - Weirdosport - 24.08.2009

Maybe post some script, preferably the lines where you declare the array, and the lines the errors are on (34 - 3


Re: [Help] 2 Errors.. please help :) - DiddyBop - 24.08.2009

Ok did


Re: [Help] 2 Errors.. please help :) - Paladin - 24.08.2009

Quote:

new Float:gRandomPlayerSpawns[23][3] = {
{1958.3783,1343.1572,15.3746}
};

new Float:gCopPlayerSpawns[2][3] = {
{2297.1064,2452.0115,10.8203}
};

Код:
new Float:gRandomPlayerSpawns[1][3] = {
{1958.3783,1343.1572,15.3746}
};

new Float:gCopPlayerSpawns[1][3] = {
{2297.1064,2452.0115,10.8203}
};
-.-


Re: [Help] 2 Errors.. please help :) - DiddyBop - 24.08.2009

lmao thanks pala, told u i was new scripter


Re: [Help] 2 Errors.. please help :) - Paladin - 24.08.2009

No prob did you see what I did?


Re: [Help] 2 Errors.. please help :) - DiddyBop - 24.08.2009

yeah, changed the numbers