Page 1 of 1

Please, help me with sbarinfo little problems!

Posted: Thu Jan 02, 2014 11:14 am
by BarneyTheDinosaur
Hey guys! I'm new here, and i am currently working on a christmas wad for the next one, this will be my first wad to be released ever. Initially i started testing it on GzDoom for no reason, but when i tried to open it on Zandronum at the first time, i got some problems, and i already fixed part of them (like A_SetScale, some decorate flags and etc..) But now i am having trouble on Sbarinfo lump, i already tried things like inverting "}" or removing some of them on the code.. But i just don't know what to do.. Could someone help me? There are two things that may help you to help me:

here is the code of the Sbarinfo lump:

http://pastebin.com/qcswwYxE

here is a little wad with the same Sbarinfo, if you want to test it:

http://www.mediafire.com/download/enegr ... arinfo.wad



The message error:
Execution could not continue.

Script error, "Christmas.wad:SBARINFO" line 34:
Expected '}' but got 'for' instead.



As i said, i tried to invert "}" and even removing it sometimes, but the error just keep appearing in other lines, i just don't know what to do. So i hope you guys could help me!


PS: Sorry my english. I am currently learning it and i don't know when i will finish my lessons. So i entered on the forum to the letter. Would be awesome if you pm me my gramatical erros sometimes!

RE: Please, help me with sbarinfo little problems!

Posted: Thu Jan 02, 2014 1:32 pm
by -Jes-
Else was only added to SBARINFO code in ZDoom 2.7.1.
Zandronum is currently only 2.3.1 - to see its functionality, check the matching history of SBARINFO on ZDoom wiki.


Anyway, here there was a fixed file, no hosted by Best Ever.
The following changed:
line 34 else -> usessecondaryammo not
line 40 new line, } added
line 41 else -> usesammo not
line 48 removed
line 50 gamemode deathmatch -> gamemode deathmatch, teamgame
line 54 else -> gamemode cooperative, singleplayer

line 75 to 78 ammo(*), -> ammo *,
line 80 to 83 ammocapacity(*), -> ammocapacity *,
line 102 111 117 removed

RE: Please, help me with sbarinfo little problems!

Posted: Thu Jan 02, 2014 2:01 pm
by BarneyTheDinosaur
Thank you very much!