Strange errors. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Strange errors. (
/showthread.php?tid=485055)
Strange errors. -
kristo - 02.01.2014
No long story... This is the code:
pawn Код:
enum roduInfo
{
rID,
rMaja,
rKorter,
bool:rLukk,
Float:rExtPos[3],
Float:rIntPos[3],
Text3D:rLabel[2],
}
new RoduInfo[MAX_BALCONIES][roduInfo];
stock LisaRoduSiseLabel(id)
{
new maja = HouseLoopID(RoduInfo[id][rMaja]), korter = ApartmentLoopID(RoduInfo[id][rKorter]);
if (maja != -1) RoduInfo[id][rLabel][1] = CreateDynamic3DTextLabel("Rхdu", COLOR_LIGHTBLUE, RoduInfo[id][mIntPos][0], RoduInfo[id][mIntPos][1], RoduInfo[id][mIntPos][2], 25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, MajaInfo[maja][mVW], MajaInfo[maja][mInterior]); // 3358
elseif (korter != -1) RoduInfo[id][rLabel][1] = CreateDynamic3DTextLabel("Rхdu", COLOR_LIGHTBLUE, RoduInfo[id][mIntPos][0], RoduInfo[id][mIntPos][1], RoduInfo[id][mIntPos][2], 25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, KorteriInfo[korter][kVW], KorteriInfo[korteri][kInterior]);
else Bug(INVALID_PLAYER_ID, BUG_TYPE_RODUINT, id);
return 1;
}
And this is what I get:
Код:
imperial/vara.pwn(3355 -- 3358) : warning 213: tag mismatch
imperial/vara.pwn(3355 -- 3358) : error 001: expected token: ",", but found "["
imperial/vara.pwn(3358) : warning 217: loose indentation
imperial/vara.pwn(3358) : error 029: invalid expression, assumed zero
imperial/vara.pwn(3358) : warning 215: expression has no effect
imperial/vara.pwn(3358) : error 001: expected token: ";", but found "]"
imperial/vara.pwn(3358) : fatal error 107: too many error messages on one line
Re: Strange errors. -
Seif- - 02.01.2014
It's "else if" and not "elseif".
Re: Strange errors. -
kristo - 02.01.2014
Oh, right, I have this:
#define elseif else if
Re: Strange errors. -
Seif- - 02.01.2014
Could you tell us which lines have these errors?
Re: Strange errors. -
kristo - 02.01.2014
I made a comment at 3358. Also, 3359 might be bugged, those lines are similar.
Edit: Added RoduInfo to the first post.
Re: Strange errors. -
Konstantinos - 02.01.2014
Remove the last comma after rLabel in the enum.
Re: Strange errors. -
kristo - 03.01.2014
Nope, still not working. You can have a comma in the end of an enumerator.
Re: Strange errors. -
kristo - 03.01.2014
Yo!
The message you have entered is too short. Please lengthen your message to at least 4 characters.
Edit: Fixed.