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 / will this work?

Author
Message
dj BlackDragon
21
Years of Service
User Offline
Joined: 23rd Sep 2003
Location: who knows
Posted: 21st Apr 2004 01:44 Edited at: 21st Apr 2004 02:09
I have a little bit of code that i havent been able to try out yet. Can you tell me if it will work?


[edit] click the source button


current project:Quest for the five staffs of Draconia
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 21st Apr 2004 02:22
No ENDFUNCTION, 2 open IF statements, one misdeclared variable and an incomplete statement.

You intended to take the p**s, right?

BatVink
http://facepaint.me.uk/catalog/default.php
AMD 3000+ Barton, 512K Ram, 120 Gig Drive space, GeForce 5200 FX 128 Mb, Asus A7N8X Mobo.
dj BlackDragon
21
Years of Service
User Offline
Joined: 23rd Sep 2003
Location: who knows
Posted: 21st Apr 2004 02:43 Edited at: 21st Apr 2004 02:49
no sry that isnt all of the source. i might not have selected it all. let me update that


NOW try it

[edit]no dont im just going to type it all out here

here:FUNCTION Areaclick(x,xx,y,yy)
mx#=mouseclick()
my#=mouseclick()
if mouseclick()=1
if mx#=>x and mx#=<xx and my#=>y and my#=<yy
true=1
else
true=0
endif
endif
ENDFUNCTION true

current project:Quest for the five staffs of Draconia
dj BlackDragon
21
Years of Service
User Offline
Joined: 23rd Sep 2003
Location: who knows
Posted: 13th May 2004 05:19
does nobody answer these things?
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 13th May 2004 13:20
I can tell it wont run by just looking at it.
Change mouseclick() to mouseX() and mouseY().
mouseclick(), unless you have an uber mouse, will only return a number from 0 to 3.

"eureka" - Archimedes
BadMonkey91
21
Years of Service
User Offline
Joined: 13th Jan 2004
Location:
Posted: 13th May 2004 16:51
you can put it all on one line
exp from a program Im currently working on;



Login to post a reply

Server time is: 2025-05-23 19:16:12
Your offset time is: 2025-05-23 19:16:12