Error after adding a new line and compiling -
JoyRiderUSA - 02.07.2009
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] ={
Re: Error after adding a new line and compiling -
ledzep - 03.07.2009
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
Re: Error after adding a new line and compiling -
yezizhu - 03.07.2009
quote:
I added this: {666.0776,-1419.2883,14.1500},//House 34
you do .,.,.
but it should be .,.,,
^^
Re: Error after adding a new line and compiling -
JoyRiderUSA - 03.07.2009
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
Re: Error after adding a new line and compiling -
ledzep - 03.07.2009
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.
Re: Error after adding a new line and compiling -
yezizhu - 03.07.2009
edit
{666.0776,-1419.2883,14.1500,0.0000},//House 34
to
{666.0776,-1419.2883,14.1500,0.0000}//House 34
Re: Error after adding a new line and compiling -
JoyRiderUSA - 03.07.2009
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
Re: Error after adding a new line and compiling -
Fj0rtizFredde - 03.07.2009
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
Re: Error after adding a new line and compiling -
JoyRiderUSA - 03.07.2009
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
Re: Error after adding a new line and compiling -
yezizhu - 03.07.2009
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.