ID:148058
 
I used the code :

mob
verb
Make_a_guild(msg as text)
if(usr.zenni<= 20000)
usr.move = 0
alert("This cost 20,000 zenni!")
alert("Are you sure you want to do this, money is NOT refundable!")
switch(input("Are you sure you want to make a Guild?","Create Guild",text) in list ("Yes","No"))
if("Yes")
usr<<"Ok!"
usr.zenni -= 20000
usr.Guild = "[msg]"
usr<<"Your Guild is created!"
usr.verbs+=typesof(/mob/Guild_Basic_Member/verb)
usr.verbs+=typesof(/mob/Guild_Leader/verb)
world<<"[msg] Guild has been created by [usr]!"
else
usr<<"Sorry you do not have enough Zenni! You need 20,000!"
usr.move = 1

//----------------------------

And I got the problems:

Guilds.dm:17:error:/mob/Guild_Basic_Member/verb: compile failed (possible infinite cross-reference loop)
Guilds.dm:18:error:/mob/Guild_Leader/verb: compile failed (possible infinite cross-reference loop)

Why am I getting these problems?

~GokuSS4Neo~
Well One Thing Thats Wrong Is Your < sign Should Be A > Sign

And Maybe If You Put An:
else
return

Code Before The :
else
usr<<"Sorry you do not have enough Zenni! You need 20,000!"
usr.move = 1


Code It Might Cancel Out The Never Ending LoopHole


In response to DarkCampainger
Nope! That didn't fix it! I think the problem is with the line :

usr.verbs+=typesof(/mob/Guild_Basic_Member/verb)

and

usr.verbs+=typesof(/mob/Guild_Leader/verb)

but I can't work out how!

~GokuSS4Neo~
In response to Gokuss4neo
Please Help!!
This is a really important part of my game!
Help would be REALLY appreciated!

~GokuSS4Neo~