An error that doesn't make sense -
Dol - 03.03.2009
I am currently busy with a new project. I use The Godfather as the basic script, I know very unoriginal but trust me this will be nothing like The Godfather at all.
I was editting the family's like this:
La Cosa Nostra to San Fierro Rifa
It went all fine but now I got this error:
Код:
C:\Users\Dol\Desktop\D-RP\gamemodes\drp.pwn(1108) : error 052: multi-dimensional arrays must be fully initialized
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
It's this line:
Код:
new JoinPed[52][1] = {
{280},//POLICE_FORCE
{281},
{282},
{283},
{284},
{285},
{288},
{71},
{166},
{295},
{148},
{286},//FBI/ATF
{164},
{163},
{287},//NATIONAL_GUARD
{285},
{70},//FIRE/AMBULANCE
{274},
{275},
{276},
{277},
{278},
{279},
{173},//RIFA
{174},
{175},
{120},//YAKUZA
{121},
{122},
{123},
{169},
{186},
{228},
{127},//HITMANS
{165},
{186},
{93},
{141},
{148},//NEWS_REPORTERS
{188},
{187},
{255},//TAXI_CAB_COMPANY
{253},
{59},//DRIVING/FLYING_SCHOOL
{60},//DRIVING/FLYING_SCHOOL
{76},//DRIVING/FLYING_SCHOOL
{150}//DRIVING/FLYING_SCHOOL
};
The ''};'' line is the line where the error occures (line 110

. I do not understand this. I might need some help.
Thank you!
Dol
Re: An error that doesn't make sense -
Think - 03.03.2009
i dont count 52 skins, recount it (i got like 4
and replace 52
try to replace it with 47 or 46
Re: An error that doesn't make sense -
Homerman - 03.03.2009
Quote:
Originally Posted by Pandabeer1337
i dont count 52 skins, recount it (i got like 4
and replace 52
|
Joinped "JoinPed
[52]" ? That number is count of your values xD xD So 48 -
pawn Код:
new JoinPed[48][1] = {
{280},//POLICE_FORCE
{281},
{282},
{283},
{284},
{285},
{288},
{71},
{166},
{295},
{148},
{286},//FBI/ATF
{164},
{163},
{287},//NATIONAL_GUARD
{285},
{70},//FIRE/AMBULANCE
{274},
{275},
{276},
{277},
{278},
{279},
{173},//RIFA
{174},
{175},
{120},//YAKUZA
{121},
{122},
{123},
{169},
{186},
{228},
{127},//HITMANS
{165},
{186},
{93},
{141},
{148},//NEWS_REPORTERS
{188},
{187},
{255},//TAXI_CAB_COMPANY
{253},
{59},//DRIVING/FLYING_SCHOOL
{60},//DRIVING/FLYING_SCHOOL
{76},//DRIVING/FLYING_SCHOOL
{150}//DRIVING/FLYING_SCHOOL
};
Re: An error that doesn't make sense -
Synkro93 - 03.03.2009
new JoinPed[47][1] = {
it is 47...
Re: An error that doesn't make sense -
Think - 03.03.2009
Quote:
Originally Posted by HomerJay
Quote:
Originally Posted by Pandabeer1337
i dont count 52 skins, recount it (i got like 4
and replace 52
|
Joinped "JoinPed [52]" ? That number is count of your values xD xD So 48 -
pawn Код:
new JoinPed[48][1] = { {280},//POLICE_FORCE {281}, {282}, {283}, {284}, {285}, {288}, {71}, {166}, {295}, {148}, {286},//FBI/ATF {164}, {163}, {287},//NATIONAL_GUARD {285}, {70},//FIRE/AMBULANCE {274}, {275}, {276}, {277}, {278}, {279}, {173},//RIFA {174}, {175}, {120},//YAKUZA {121}, {122}, {123}, {169}, {186}, {228}, {127},//HITMANS {165}, {186}, {93}, {141}, {148},//NEWS_REPORTERS {188}, {187}, {255},//TAXI_CAB_COMPANY {253}, {59},//DRIVING/FLYING_SCHOOL {60},//DRIVING/FLYING_SCHOOL {76},//DRIVING/FLYING_SCHOOL {150}//DRIVING/FLYING_SCHOOL };
|
its 47 starting @ 1 (so not @ 0 just do minus 1 and you get the number 46 ;P)
Re: An error that doesn't make sense -
Synkro93 - 03.03.2009
when I tried to compile with 46, I failed, but when I tried 47, it did compile.
Re: An error that doesn't make sense -
Homerman - 03.03.2009
Quote:
Originally Posted by Pandabeer1337
Quote:
Originally Posted by HomerJay
Quote:
Originally Posted by Pandabeer1337
i dont count 52 skins, recount it (i got like 4
and replace 52
|
Joinped "JoinPed [52]" ? That number is count of your values xD xD So 48 -
pawn Код:
new JoinPed[48][1] = { {280},//POLICE_FORCE {281}, {282}, {283}, {284}, {285}, {288}, {71}, {166}, {295}, {148}, {286},//FBI/ATF {164}, {163}, {287},//NATIONAL_GUARD {285}, {70},//FIRE/AMBULANCE {274}, {275}, {276}, {277}, {278}, {279}, {173},//RIFA {174}, {175}, {120},//YAKUZA {121}, {122}, {123}, {169}, {186}, {228}, {127},//HITMANS {165}, {186}, {93}, {141}, {148},//NEWS_REPORTERS {188}, {187}, {255},//TAXI_CAB_COMPANY {253}, {59},//DRIVING/FLYING_SCHOOL {60},//DRIVING/FLYING_SCHOOL {76},//DRIVING/FLYING_SCHOOL {150}//DRIVING/FLYING_SCHOOL };
|
its 47 starting @ 1 (so not @ 0 just do minus 1 and you get the number 46 ;P)
|
WTF? xD xD Maybe mistake when counting ... xD xD
Re: An error that doesn't make sense -
MenaceX^ - 03.03.2009
Ban.. Stop the damn creating topics about GodFather.
Re: An error that doesn't make sense -
Synkro93 - 03.03.2009
Quote:
Originally Posted by MenaceX^
Ban.. Stop the damn creating topics about GodFather.
|
or better just search the forum for error's, I have solved almost every problem, when searching the forums or ******.
Re: An error that doesn't make sense -
Dol - 03.03.2009
Why thank you all!

It worked!
EDIT: A non-GF question, is there a list of coordinates with the right place for a gang like: Los Santos Vagos or Grove Street Families for an example?
Re: An error that doesn't make sense -
Homerman - 03.03.2009
Quote:
Originally Posted by ☮ DjSkca ☼
Quote:
Originally Posted by MenaceX^
Ban.. Stop the damn creating topics about GodFather.
|
or better just search the forum for error's, I have solved almost every problem, when searching the forums or ******.
|
You mean "
www.justfucking******it.com" or "
www.taksitokurvavygoogluj.com" ? xD xD
(Dol - What about /save .. ??)
Re: An error that doesn't make sense -
Synkro93 - 03.03.2009
Quote:
Originally Posted by Dol
Why thank you all!  It worked!
EDIT: A non-GF question, is there a list of coordinates with the right place for a gang like: Los Santos Vagos or Grove Street Families for an example?
|
you want the coordinates where gangsters should spawn?
Re: An error that doesn't make sense -
Dol - 03.03.2009
Yes.
Re: An error that doesn't make sense -
Think - 03.03.2009
and you got the Godfather script?
Re: An error that doesn't make sense -
Synkro93 - 03.03.2009
Quote:
Originally Posted by Pandabeer1337
and you got the Godfather script?
|
seems like this. but it's edited.
Dol, go in-game, then go to the place you want every gang's members to spawn, and in each place type "/save" later, when you have done them all, exit the game and go to C:/Program Files/Rockstar Games/GTA San Andreas and open the file savedpositions.txt - all the coordinates you saved are in there
Re: An error that doesn't make sense -
Think - 03.03.2009
just open up families.cfg and edit the coords with the coords you /saved
Re: An error that doesn't make sense -
Dol - 03.03.2009
Great thanks!
One last error (sorry for bothering):
Код:
C:\Users\Dol\Desktop\D-RP\gamemodes\drp.pwn(1106) : error 018: initialization data exceeds declared size
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
I made the Los Santos Vagos class myself but after I did that it gives me an error.
Код:
new JoinPed[46][1] = {
{280},//POLICE_FORCE
{281},
{282},
{283},
{284},
{285},
{288},
{71},
{166},
{295},
{148},
{286},//FBI/ATF
{164},
{163},
{287},//NATIONAL_GUARD
{285},
{70},//FIRE/AMBULANCE
{274},
{275},
{276},
{277},
{278},
{279},
{173},//RIFA
{174},
{175},
{114},//AZTECAS
{115},
{116},
{127},//HITMANS
{165},
{186},
{93},
{141},
{148},//NEWS_REPORTERS
{188},
{187},
{255},//TAXI_CAB_COMPANY
{253},
{59},//DRIVING/FLYING_SCHOOL
{60},//DRIVING/FLYING_SCHOOL
{76},//DRIVING/FLYING_SCHOOL
{150},//DRIVING/FLYING_SCHOOL
{108},//LOS_SANTOS_VAGOS
{109},
{110},
};
Re: An error that doesn't make sense -
Synkro93 - 03.03.2009
you don't need the comma at the last line...
Re: An error that doesn't make sense -
Think - 03.03.2009
Quote:
Originally Posted by Dol
Great thanks!
One last error (sorry for bothering):
Код:
C:\Users\Dol\Desktop\D-RP\gamemodes\drp.pwn(1106) : error 018: initialization data exceeds declared size
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
I made the Los Santos Vagos class myself but after I did that it gives me an error.
Код:
new JoinPed[46][1] = {
{280},//POLICE_FORCE
{281},
{282},
{283},
{284},
{285},
{288},
{71},
{166},
{295},
{148},
{286},//FBI/ATF
{164},
{163},
{287},//NATIONAL_GUARD
{285},
{70},//FIRE/AMBULANCE
{274},
{275},
{276},
{277},
{278},
{279},
{173},//RIFA
{174},
{175},
{114},//AZTECAS
{115},
{116},
{127},//HITMANS
{165},
{186},
{93},
{141},
{148},//NEWS_REPORTERS
{188},
{187},
{255},//TAXI_CAB_COMPANY
{253},
{59},//DRIVING/FLYING_SCHOOL
{60},//DRIVING/FLYING_SCHOOL
{76},//DRIVING/FLYING_SCHOOL
{150},//DRIVING/FLYING_SCHOOL
{108},//LOS_SANTOS_VAGOS
{109},
{110},
};
|
you added 3 skins (take the , away @ last one) so do 46+3 = 49
Re: An error that doesn't make sense -
Dol - 03.03.2009
Why thank you. I'm beginning to learn the basics. It was 46 though.