I've downloaded the demo of DB Pro, and I must say it IS way faster than DB v1. Anyway now too my question. I loaded up my DBv1 source code of my FPS, and made a project, configured how I wanted it etc. And when I ran it, I got this error.
#100013: Command out of place at line 1353
Here is the code surrounding that line. The line in italics and bold is line 1353
`If it is greater than the delay of the selected weapon...
if timepassed>delay(weapon)
`...check if the player fires and if he does...
if mouseclick()=1 and reloadingnow=0
`...first reset the timer...
lasttime=timer()
firing=1
`check if there is any ammo left in the clip...
if wammo(weapon)>0
`if there are bullets left in the clip then fire a bullet!
play sound firesound
`decrease the ammo number in the clip, if the cheats aren't on of course, hehehe =)
wammo(weapon)=wammo(weapon)-1
`and play the firring animation.---------------------------------------------------------------------
`play object swobj+weapon,startframe,endframe
[b][i]if weapon=1 then play object 51,51,58[/i][/b]
if weapon=2 then play object 52,41,46
`Not 100% sure it will work as you like it cause I don't have an animated wepon here so you'll have--
`to try it out for yourself.-------------------------------------------------------------------------
`For some reason you got that RECOIL# variable in the other functions.-------------------------------
`I guess you need it so I have put it here too.------------------------------------------------------
`Even thought i think it is useless...i guess you know better----------------------------------------
endif
`If there are no bullets left in the clip...
if wammo(weapon)=0
`...check first if the autoload options is on or off...
if autoload(weapon)=1
`and if it is on check if there are any clips left...
if wclips(weapon)>0
`automatically reload the weapon.
wclips(weapon)=wclips(weapon)-1
wammo(weapon)=wammo(weapon)+wmaxammo(weapon)
play sound reloadingsound
if weapon=1 then play object 51,58,82
if weapon=2 then play object 52,47,64
reloadingnow=1
reltime=timer()
else
`if autoload is on but there are no more bullets...
play sound emptysound
endif
`...but if autoload is off...
else
`*click* ooops...no ammo left:)
play sound emptysound
endif
endif
endif
I hope this post isn't screwed up!
Any help would be greatly appreciated!
l8ter
Rpg Cyco