error 018: initialization data exceeds declared size
#1

pawn Код:
new Float:gRandomHospitalSpawns[2][4] = {
    {-3439.2871,476.0846,57.6204},
    {-3443.1304,498.4368,57.6132}
};
wth?
Reply
#2

Sometimes arrays can be weird. Try changing around the numbers. Like making 4, 3 etc..
Reply
#3

No proper fix? just "try's"? :/
Reply
#4

Код:
new Float:gRandomHospitalSpawns[2][3] = {
    {-3439.2871,476.0846,57.6204},
    {-3443.1304,498.4368,57.6132}
};
2 down\
by x y z (3 wide)
hence [2][3]
Reply
#5

Quote:
Originally Posted by (SF)Noobanatior
Посмотреть сообщение
Код:
new Float:gRandomHospitalSpawns[2][3] = {
    {-3439.2871,476.0846,57.6204},
    {-3443.1304,498.4368,57.6132}
};
2 down\
by x y z (3 wide)
hence [2][3]
you could also change the int "2" to nothing :

pawn Код:
new Float:gRandomHospitalSpawns[][3] = {
    {-3439.2871,476.0846,57.6204},
    {-3443.1304,498.4368,57.6132}
};
but the problem is as you stated "3 wide, and not 4".
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)