spawnplace help -
Wonderweiss - 11.10.2012
can someone help me with these spawnplaces :
new iSpawnSet[MAX_PLAYERS];
new Float:gRandomPlayerSpawns[23][3] = {
{2022.0264,1912.8053,12.3085,271.0555},
{2002.3131,1544.7351,13.5859,274.2728},
{2021.7002,1342.9380,10.8130,271.8450},
{2024.6863,1008.0142,10.8203,268.3375},
{2540.5234,1507.6232,11.0600,270.0753},
{2445.4412,1662.2295,10.8203,268.1276},
{2628.2605,1824.6783,11.0234,90.8377},
{1760.3098,2072.7112,10.8203,183.2706},
{1436.5428,2605.8967,10.6719,174.2706},
{406.1980,2536.2451,16.5463,92.0181},
{285.3898,1937.9608,17.6406,268.8461},
};
i have errors with one but when i delete it a new error with the other one comes up here :
C:\Users\Bojan\Desktop\LVDM\gamemodes\lvdm.pwn(31) : error 018: initialization data exceeds declared size
C:\Users\Bojan\Desktop\LVDM\gamemodes\lvdm.pwn(42) : error 008: must be a constant expression; assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Re: spawnplace help -
Red_Dragon. - 11.10.2012
Do you have an enumeration for that ? and is it defined ?
Re: spawnplace help -
Wonderweiss - 11.10.2012
i just edited the stock lvdm spawnplaces to this one now i have got only 1 error
Код:
C:\Users\Bojan\Desktop\LVDM\gamemodes\lvdm.pwn(31) : error 018: initialization data exceeds declared size
Re: spawnplace help -
newbienoob - 11.10.2012
Change [3] to [4]
Re: spawnplace help -
Roel - 11.10.2012
Try this and see if it works
pawn Код:
new Float:gRandomPlayerSpawns[12][4] = {
{2022.0264,1912.8053,12.3085,271.0555},
{2002.3131,1544.7351,13.5859,274.2728},
{2021.7002,1342.9380,10.8130,271.8450},
{2024.6863,1008.0142,10.8203,268.3375},
{2540.5234,1507.6232,11.0600,270.0753},
{2445.4412,1662.2295,10.8203,268.1276},
{2628.2605,1824.6783,11.0234,90.8377},
{1760.3098,2072.7112,10.8203,183.2706},
{1436.5428,2605.8967,10.6719,174.2706},
{406.1980,2536.2451,16.5463,92.0181},
{285.3898,1937.9608,17.6406,268.8461},
};
Re: spawnplace help -
Wonderweiss - 11.10.2012
when i change [3] to [4] i have this
Код:
C:\Users\Bojan\Desktop\LVDM\gamemodes\lvdm.pwn(41) : error 052: multi-dimensional arrays must be fully initialized
Re: spawnplace help -
Roel - 11.10.2012
Try
pawn Код:
new Float:gRandomPlayerSpawns[11][4] = {
{2022.0264,1912.8053,12.3085,271.0555},
{2002.3131,1544.7351,13.5859,274.2728},
{2021.7002,1342.9380,10.8130,271.8450},
{2024.6863,1008.0142,10.8203,268.3375},
{2540.5234,1507.6232,11.0600,270.0753},
{2445.4412,1662.2295,10.8203,268.1276},
{2628.2605,1824.6783,11.0234,90.8377},
{1760.3098,2072.7112,10.8203,183.2706},
{1436.5428,2605.8967,10.6719,174.2706},
{406.1980,2536.2451,16.5463,92.0181},
{285.3898,1937.9608,17.6406,268.8461},
};
Sorry I cannot test here anything so thats why I sometimes give wrong sulotuions.
Re: spawnplace help -
Wonderweiss - 11.10.2012
@Roel
nope it gave me this error
Код:
C:\Users\Bojan\Desktop\LVDM\gamemodes\lvdm.pwn(34) : error 018: initialization data exceeds declared size
C:\Users\Bojan\Desktop\LVDM\gamemodes\lvdm.pwn(42) : error 010: invalid function or declaration
Re: spawnplace help -
Roel - 11.10.2012
I edit my post, try it again with [11][4]
Re: spawnplace help -
Wonderweiss - 11.10.2012
@Roel [11][4] WORKS !!! thanks +rep for u

D