Error after adding a new line and compiling
#1

I got this:

C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\gf.pwn(1190) : error 018: initialization data exceeds declared size

I added this: {666.0776,-1419.2883,14.1500},//House 34

and change new Float:HouseCarSpawns[34][4] ={

to this: new Float:HouseCarSpawns[35][4] ={
Reply
#2

You need to add the vehicle's "ZAngle" (facing angle).

Код:
{666.0776,-1419.2883,14.1500,0.0000},//House 34
Код:
new Float:HouseCarSpawns[35][4]

[35] = amount of car spawns
[4] = amount of variables (floats in this case) per car spawn
i.e. X, Y, Z, Angle
Reply
#3

quote:
I added this: {666.0776,-1419.2883,14.1500},//House 34
you do .,.,.
but it should be .,.,,
^^
Reply
#4

I added what you said: {666.0776,-1419.2883,14.1500,0.0000},//House 34


got this:

C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\gf.pwn(1190) : error 001: expected token: "}", but found "{"
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\gf.pwn(1191) : error 010: invalid function or declaration
Reply
#5

Your array should look like this:
pawn Код:
new Float:HouseCarSpawns[35][4] = {
... // All the other houses
{666.0776,-1419.2883,14.1500,0.0000} //House 34 (LAST HOUSE IN LIST)
};
If you can't figure it out, post your "new Float:HouseCarSpawns[35][4]" and everything in it and I'll fix it for you.

Good luck.
Reply
#6

edit
{666.0776,-1419.2883,14.1500,0.0000},//House 34
to
{666.0776,-1419.2883,14.1500,0.0000}//House 34
Reply
#7

Still ain't doing it.

C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\gf.pwn(1190) : error 001: expected token: "}", but found "{"
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\gf.pwn(1191) : error 010: invalid function or declaration


heres the whole thing: http://pastebin.com/m7f8224dc
Reply
#8

change:
{-2616.1897,-108.4479,4.1693,269.8246}//House 33
to:
{-2616.1897,-108.4479,4.1693,269.8246},//House 33
Remember it is House 33
Reply
#9

My server is crashing... I added: 685.6576,-1421.7115,14.7342,2237.5901,-1078.8700,1049.0234,0,0,0,0,0,0,The State,2 Room house,5000000,0,0,2,0,0,2,100,0,0,418,-1,-1,7.2.09,1337 to my property list
Reply
#10

Quote:
Originally Posted by JoyRiderUSA
My server is crashing... I added: 685.6576,-1421.7115,14.7342,2237.5901,-1078.8700,1049.0234,0,0,0,0,0,0,The State,2 Room house,5000000,0,0,2,0,0,2,100,0,0,418,-1,-1,7.2.09,1337 to my property list
This should ask in godfather thread now.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)