code problem
On my gravity machine code there is an error not when i compile but when i play it.
---------------------code--------------------
mob
gravity_machine
icon = 'gravity.dmi'
density = 1
verb
gravity()
set src in oview(1)
usr.amount = input("What Gravity?","Gravity") as num
if(usr.amount == 0)
if(usr.gravity<=0)
usr << "You aren't in gravity right now."
else
amount=1
usr.gravity-=1
usr << "You feel the gravity turn off"
if(usr.amount == 1)
usr << "1 times gravity won't do anything"
if(usr.amount>=2)
usr.maxpower_up()
usr.power_down()
mob
proc
maxpower_up()
,amount>=2,maxpowerlevel+=(amount-1)*5/(round(powerlevel/ 1000))+1)
sleep(30)
power_down()
ount>=2,powerlevel-=round((amount-1)*5/(round(powerlevel/ 1000))+1)/2.5)
sleep(50)
ID:261482
Apr 27 2002, 7:20 am
|
|
Apr 27 2002, 8:36 am
|
|
can anyone try to help me with this problem
|
Ok I don't feel like reading your code so.... Add this in one of your dm files not in the code.
#define DEBUG//this should be green when done correctly Click the verb and in the error now it should tell you what line the error is produced from. DarkTitan |
mob Does that work? -Kappa the Imp |