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.

Newcomers DBPro Corner / WTF... MATHNESS

Author
Message
Puffy
21
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United States
Posted: 3rd Nov 2002 10:29
function window(ttop#,tleft#,tbottom#,tright#,ttheme#)

if ttheme#=1
load bitmap "theme1.bmp",1
get image 2,0,0,60,60
get image 3,0,60,60,120
get image 4,0,120,60,180
get image 5,0,180,60,240
get image 6,60,0,120,60
get image 7,60,60,120,120
get image 8,60,120,120,180
get image 9,60,180,120,240
get image 10,120,0,180,60
sprite 1,0,0,2
sprite 2,0,0,3
sprite 3,0,0,4
sprite 4,0,0,5
hide sprite 1
hide sprite 2
hide sprite 3
hide sprite 4
delete bitmap 1
endif

twidth#=tright#-tleft#
theight#=tbottom#-ttop#

width#=tright#-tleft#
height#=tbottom#-ttop#

while twidth#>=60
twidth#=twidth#-60
endwhile

while theight#>=60
theight#=theight#-60
endwhile

remw#=60-twidth#
remh#=60-theight#

width#=width#+remw#
height#=height#+remh#

if tright#-tleft#
AMD Athlon XP 2100+ OC to 3Ghz/1.5gigs ram/128mb ti4200/120gigs hd/19" monitor/Sound Blaster Audigy Platinum EX/2.5mbs Sat Con... I joined in!
Puffy
21
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United States
Posted: 3rd Nov 2002 10:29
ummm wtf

AMD Athlon XP 2100+ OC to 3Ghz/1.5gigs ram/128mb ti4200/120gigs hd/19" monitor/Sound Blaster Audigy Platinum EX/2.5mbs Sat Con... I joined in!
Puffy
21
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United States
Posted: 3rd Nov 2002 10:31


ok... tleft#=122 ttop#=122 tright#=130 tbottom#=130... it messes up... i want it to make sure that if the numbers are below 120 then it makes em 120 =\ you could get that from the code?

AMD Athlon XP 2100+ OC to 3Ghz/1.5gigs ram/128mb ti4200/120gigs hd/19" monitor/Sound Blaster Audigy Platinum EX/2.5mbs Sat Con... I joined in!
Puffy
21
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United States
Posted: 3rd Nov 2002 19:32
ok this is odd... noone can ever help me... =\ what is this???

AMD Athlon XP 2100+ OC to 3Ghz/1.5gigs ram/128mb ti4200/120gigs hd/19" monitor/Sound Blaster Audigy Platinum EX/2.5mbs Sat Con... I joined in!
Shock
AGK Developer
21
Years of Service
User Offline
Joined: 24th Oct 2002
Location: United Kingdom
Posted: 3rd Nov 2002 21:20
***
it messes up... i want it to make sure that if the numbers are below 120 then it makes em 120 =\ you could get that from the code?
***

I never read any other part of the thread (i need sleep), but i'll help you out with this with some very simple code.



www.shockforge.com ShockForge Software
www.havochost.com Unlim bandwdith, unlim space, you.havochost.com, you.s8i.com, visit site for more details.
...::::ShockForge::::...
Puffy
21
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United States
Posted: 3rd Nov 2002 23:41
OMG YOUR DEVINE WISDOM ENSPIRES ME... well you didnt look at it... if tright#-tleft#<120 then width#=120 : twidth#=120
if tbottom#-ttop#<120 then height#=120 : theight#=120
familiar???.... sigh... its a problem with the order i think

AMD Athlon XP 2100+ OC to 3Ghz/1.5gigs ram/128mb ti4200/120gigs hd/19" monitor/Sound Blaster Audigy Platinum EX/2.5mbs Sat Con... I joined in!

Login to post a reply

Server time is: 2024-03-03 01:46:09
Your offset time is: 2024-03-03 01:46:09