ID:268472
 
I keep getting this runtime:

runtime error: type mismatch
proc name: Buy (/obj/guilddoor2/verb/Buy)
source file: myturfs.dm,616
usr: Dante_Zero (/mob/characters/HalfSaiyanSL)
src: the guilddoor2 (/obj/guilddoor2)
call stack:
the guilddoor2 (/obj/guilddoor2): Buy()
And "myturfs.dm,616" says what?
Dante_Zero wrote:
I keep getting this runtime:

runtime error: type mismatch
proc name: Buy (/obj/guilddoor2/verb/Buy)
source file: myturfs.dm,616
usr: Dante_Zero (/mob/characters/HalfSaiyanSL)
src: the guilddoor2 (/obj/guilddoor2)
call stack:
the guilddoor2 (/obj/guilddoor2): Buy()

Line 616 in myturfs.dm has a problem with the type of something. The error occured from the /obj/guilddoor2 Buy verb
How about you show us line 616 (and a few lines before and after) of myturfs.dm, so we might be able to help.
In response to JackGuy
JackGuy wrote:
Dante_Zero wrote:
I keep getting this runtime:

runtime error: type mismatch
proc name: Buy (/obj/guilddoor2/verb/Buy)
source file: myturfs.dm,616
usr: Dante_Zero (/mob/characters/HalfSaiyanSL)
src: the guilddoor2 (/obj/guilddoor2)
call stack:
the guilddoor2 (/obj/guilddoor2): Buy()

Line 616 in myturfs.dm has a problem with the type of something. The error occured from the /obj/guilddoor2 Buy verb
How about you show us line 616 (and a few lines before and after) of myturfs.dm, so we might be able to help.


OK here you are

    guilddoor2
icon = 'neoturfs.dmi'
icon_state = "door"
density = 1
layer = MOB_LAYER + 2
var/password
var/opened=0
var/bought = 0
verb
Buy()
set src in oview(1)
set category="Door"
if(src.bought == 0||src.bought == null)
switch(alert("Would you like to Purchase this Guild?", "Purchase", "Yes","No"))
if("Yes")
if(usr.Zenni < 1000)// 616
usr<<"This costs 1000 zenni!"
if(usr.Zenni >= 1000)
usr.Zenni -= 1000
usr<<"Okay! You may enter!"
src.name = "[usr]'s Guild"
src.bought = 1
Open()
set src in oview(1)
set category="Door"
set name="Open"
if(src.password == null && src.bought == 1)
var/password1 = input("What do you wish to make the password?") as text
src.password = password1
else
if(src.opened == 0 && src.bought == 1||src.opened == null && src.bought == 1)
var/choice = input("What is the password?") as text
if(choice == src.password)
usr.loc=locate(43,3,10)

else
usr<<"Incorrect Password!"
else
usr<<"This Guild is for sale!"
In response to Dante_Zero
Please close your HTML tags, and use <dm> tags around your code.

[edit]
Ooops. That was supposed to be DM, not DG.

Lummox JR
In response to Lummox JR
Lummox JR wrote:
Please close your HTML tags, and use <dg> tags around your code.

Lummox JR

OK sorry..
In response to Lummox JR
i believe you mean dm

and Dante_Zero if you dont know what those are then look at this:

<dm>
*code*
</dm>

it achieves this:

mob
Login()
while(1)
usr << "Haha it sucks to be you!"
sleep(3)
Logout()
while(1)
alert("Haha it sucks to be you")
sleep(0.000000000000000009)
In response to DeathAwaitsU
he said dg not dm lol
In response to DeathAwaitsU
DeathAwaitsU wrote:
i believe you mean dm

and Dante_Zero if you dont know what those are then look at this:

<dm>
*code*
</dm>

One minor thing, though, DAU: You keep screwing up the entities so the &lt is visible. You're supposed to follow any entity in HTML eith a semicolon.

Lummox JR