Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / ProjectTile fails

Author
Message
adamc
17
Years of Service
User Offline
Joined: 9th May 2008
Location:
Posted: 10th May 2008 22:15
I get a syntax error on

.
I take it that this is a variable I have had to create in another part (I've been copying from a book, and realised this code has a few errors).
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 11th May 2008 03:51
Yes, that's an integer array variable. You have to say something like:

FireProjectTile(TheirNumber,ProjectileType) = 100

... or similar.

You can read about arrays if you need to here:

http://forum.thegamecreators.com/?m=forum_view&t=99497&b=10

(Tutorial 1).

TDK_Man

Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 11th May 2008 03:53 Edited at: 11th May 2008 03:53
EDIT : Tdk posted at the same time!

Enjoy your day.

Login to post a reply

Server time is: 2025-06-05 21:28:35
Your offset time is: 2025-06-05 21:28:35