Wierd error.
#1

I have weard error and i think its a bug or something...
Error:
Код:
(109) : error 001: expected token: "}", but found "forward"
Lines:
Код:
line 107: {299}
line 108:
line 109:forward ProxDetectorS(Float:radi, playerid, targetid);
line 110:forward CheckForWalkingTeleport(playerid);
I don't know how to fix it, can somebody help me?
Reply
#2

Delete line 107.

{299}
Reply
#3

Код:
new Peds[200][1] = {
{7},
/*{288},//TEAM_ADMIN
{286},{287},{228},{113},{120},{147},{294},{227},{61},{171},*/
{247},//CIVILIANS DOWN HERE
{248},{100},{256},{263},{262},{261},{260},{259},{258},{257},{256},{255},
{253},{252},{251},{246},{245},{244},{243},{242},{241},{239},
{238},{237},{236},{235},{234},{233},{232},{231},{230},{229},
{226},{225},{224},{223},{222},{221},{220},{219},{218},
{217},{216},{215},{214},{213},{212},{211},{210},{209},
{207},{206},{205},{204},{203},{202},{201},{200},{199},{198},{197},{196},
{195},{194},{193},{192},{191},{190},{189},{185},{184},{183},
{182},{181},{180},{179},{178},{176},{172},{170},{168},{167},{162},
{161},{160},{159},{158},{157},{156},{155},{154},{153},{152},{151},
{146},{145},{144},{143},{142},{141},{140},{139},{138},{137},{136},{135},
{134},{133},{132},{131},{130},{129},{128},{254},{99},{97},{96},{95},{94},
{92},{90},{89},{88},{87},{85},{84},{83},{82},{81},{80},{79},{78},{77},{76},
{75},{73},{72},{69},{68},{67},{66},{64},{63},{62},{58},{57},{56},{55},
{54},{53},{52},{51},{50},{49},{45},{44},{43},{41},{39},{38},{37},{36},{35},
{34},{33},{32},{31},{30},{29},{28},{27},{26},{25},{24},{23},{22},{21},{20},
{19},{18},{17},{16},{15},{14},{13},{12},{11},{10},
{290},//ROSE
{291},//PAUL
{293},//OGLOC
{187},
{296},//JIZZY
{297},//MADDOGG
{298},//CAT
{299}
below line 107 is this, o really i need to delete it?
Reply
#4

Looks like LA-RP post in that topic.
Reply
#5

Quote:
Originally Posted by » RyDeR «
Delete line 107.

{299}
Or jus do this {299}};
Reply
#6

My GM is created from File>New
Just copied some things from that
Reply
#7

you started an array with an opening bracket { but forgot to place the closing one }.
Код:
new Peds[200] = { // the [1] is not needed, its a 1-dimensional array with 1 cellsize, but it wont hurt.
{7},
/*{288},//TEAM_ADMIN
{286},{287},{228},{113},{120},{147},{294},{227},{61},{171},*/
{247},//CIVILIANS DOWN HERE
{248},{100},{256},{263},{262},{261},{260},{259},{258},{257},{256},{255},
{253},{252},{251},{246},{245},{244},{243},{242},{241},{239},
{238},{237},{236},{235},{234},{233},{232},{231},{230},{229},
{226},{225},{224},{223},{222},{221},{220},{219},{218},
{217},{216},{215},{214},{213},{212},{211},{210},{209},
{207},{206},{205},{204},{203},{202},{201},{200},{199},{198},{197},{196},
{195},{194},{193},{192},{191},{190},{189},{185},{184},{183},
{182},{181},{180},{179},{178},{176},{172},{170},{168},{167},{162},
{161},{160},{159},{158},{157},{156},{155},{154},{153},{152},{151},
{146},{145},{144},{143},{142},{141},{140},{139},{138},{137},{136},{135},
{134},{133},{132},{131},{130},{129},{128},{254},{99},{97},{96},{95},{94},
{92},{90},{89},{88},{87},{85},{84},{83},{82},{81},{80},{79},{78},{77},{76},
{75},{73},{72},{69},{68},{67},{66},{64},{63},{62},{58},{57},{56},{55},
{54},{53},{52},{51},{50},{49},{45},{44},{43},{41},{39},{38},{37},{36},{35},
{34},{33},{32},{31},{30},{29},{28},{27},{26},{25},{24},{23},{22},{21},{20},
{19},{18},{17},{16},{15},{14},{13},{12},{11},{10},
{290},//ROSE
{291},//PAUL
{293},//OGLOC
{187},
{296},//JIZZY
{297},//MADDOGG
{298},//CAT
{299}
}
Reply
#8

And the ';'
Reply
#9

I already tried that things
When i put '';'' it says me
Код:
(107) : error 001: expected token: "}", but found ";"
And when ir put ''}'' at end it says me;
Код:
(108) : error 052: multi-dimensional arrays must be fully initialized
(110) : error 001: expected token: ";", but found "forward"
Reply
#10

indeed. use Killa_'s solution. Small, efficient... no bugs ^^
for the multi-dimenaionsl array:
Код:
new Peds[]
is a variable way, it will become sized as large it is needed for all your peds.
we all assumed that there are 200 IDs stored and we were all to lazy to count 'em lol
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)