Code:
mob
verb
Start_BudoKai(var/mob/M)
set category="Gm"
for(M as mob in world)
M.verbs+=/obj/verbstoragestuff/verb/Join_Budo()
Stop_BudoKai(var/mob/M)
set category="Gm"
for(M as mob in world)
M.verbs-=/obj/verbstoragestuff/verb/Join_Budo()
Invite_BudoKai(var/mob/M in world)
set category="Gm"
M<<alert("","Join BudoKai?","Yes","No")
if("Yes")
M.loc=locate(164,46,2)
usr<<"[M] accepted!"
if ("No")
usr<<"[M] declined."
obj
verbstoragestuff/verb/Join_Budo()
set category="BudoKi"
usr<<alert("Are you sure?","Join BudoKai?","Yes","No")
if ("Yes")
usr.loc=locate(164,46,2)
Problem description:
loading DragonBall No Return.dme
budu.dm:6:/obj/verbstoragestuff/verb/Join_Budo:warning: use call() to call a proc by reference
budu.dm:11:/obj/verbstoragestuff/verb/Join_Budo:warning: use call() to call a proc by reference
budu.dm:16:if :warning: if statement has no effect
budu.dm:19:if :warning: if statement has no effect
budu.dm:26:if :warning: if statement has no effect
loading Map.dmp
saving DragonBall No Return.dmb (DEBUG mode)
DragonBall No Return.dmb - 0 errors, 5 warnings (double-click on an error to jump to it)
if some 1 fixes those for me they can be gm on my game DB No Return
</<alert></<alert>
ID:262554
Aug 14 2005, 12:22 am
|
|
In response to Tinari
|
|
now theres errors
|
In response to JRR-Zero
|
|
mob
verb Start_BudoKai(var/mob/M) set category="Gm" for(M as mob in world) M.verbs+=/obj/verbstoragestuff/verb/Join_Budo() Stop_BudoKai(var/mob/M) set category="Gm" for(M as mob in world) M.verbs-=/obj/verbstoragestuff/verb/Join_Budo() Invite_BudoKai(var/mob/M in world) set category="Gm" M<<alert("","Join BudoKai?","Yes","No") if("Yes") M.loc=locate(164,46,2) usr<<"[M] accepted!" if ("No") usr<<"[M] declined." obj verbstoragestuff/verb/Join_Budo() set category="BudoKi" usr<<alert("Are you sure?","Join BudoKai?","Yes","No") if ("Yes") usr.loc=locate(164,46,2) budu.dm:6:/obj/verbstoragestuff/verb/Join_Budo:warning: use call() to call a proc by reference budu.dm:11:/obj/verbstoragestuff/verb/Join_Budo:warning: use call() to call a proc by reference budu.dm:16:if :warning: if statement has no effect budu.dm:19:if :warning: if statement has no effect loading Map.dmp saving DragonBall No Return.dmb (DEBUG mode) DragonBall No Return.dmb - 0 errors, 4 warnings (double-click on an error to jump to it) now what do i do with those warnings |
In response to JRR-Zero
|
|
mob Theres also no capitol "K" in Budokai. It would also be a good idea to make your GM verbs... mob Then adding them on login with a proc... As such mob Is it just me or is the BYOND site lagging? |
In response to Holy Retribution
|
|
holy retribution with the code u gave me there r no errors but 2 warning
budu.dm:6:/obj/verbstoragestuff/verb/Join_Budo:warning: use call() to call a proc by reference budu.dm:11:/obj/verbstoragestuff/verb/Join_Budo:warning: use call() to call a proc by reference loading Map.dmp saving DragonBall No Return.dmb (DEBUG mode) DragonBall No Return.dmb - 0 errors, 2 warnings (double-click on an error to jump to it) |
In response to JRR-Zero
|
|
Which is line 6 and 11?
|
In response to Holy Retribution
|
|
what 6 and 11 ?
|
In response to JRR-Zero
|
|
Never mind, just take the () off the end of where your adding the verbs to the players verb list
M.verbs += /the/verb/whatever |
In response to Holy Retribution
|
|
yeah look dude u seem 2 no what ur doing with coding ok i got some 1 2 writew up the coding but its not right can u write it up for me plz this is what i want it 2 do
gm verbs "start_budo" world + catergory *(Budo)* verb "Join Budo" Click() loc.locate (164,46,2 gm verbs "stop budo invite" world - catergory *(budo)* if u dont understand that ok i guess uve helped me more then every 1 else so u and the guy that rote that old 1 up can both be GM on my game http://games.byond.com/hub/NoReturnProductions/ DragonBallNoReturn but if u do understand and u do make it u can be co-owner of my game |
In response to JRR-Zero
|
|
But it would be better if you learnt to code it your self, then you wouldn't need to be asking for help every 5 minutes in the future, I'll be happy to help you code it via the pager, or I will code it for you to learn from, but I won't code everything for you, nor do I wish for anything in return, if I wanted GM or co-owner, I'lld just make my own game.
Here is your code, it should work 100% now, but of course, I'm not going to test it #define GMCAT "Game Moderator Commands" |
In response to Holy Retribution
|
|
budu.dm:5:error:insertGMvariablehere:undefined var
DragonBall No Return.dmb - 1 error, 0 warnings (double-click on an error to jump to it) 1 ERROR soz for caps and ok do u have msn and then u b my teacher in coding |
In response to JRR-Zero
|
|
What does undefined mean, JRR-Zero. Think real hard.
|
In response to Thief Jack
|
|
Don't copy and paste code from the forums unless you understand it. Doing this without an understandment of the code is doing you no good, it's just making them do your game for you, and not helping you learn the DM language.
|
In response to Mega fart cannon
|
|
mob
Login() ..() if(insertGMvariablehere) AddGMCommands(src) if(insertgmvariablehere) (is the problem) |
And I don't think offering GM's is gonna help you here. It's not the epitome of online BYOND currency, and I am sure most people here realize that in order to be a real GM, then it becomes a responsibility, not a little token they can show off and act suprerior with. As for using call() I can't help you.
*edit*
I didn't even catch the for statement indention failure, heh. Whoops.