ID:173651
 
Hey all...I was able to fix my previous problem...as it turned out I had somehow banned myself. So I deleted the Bans.sav file and it was fixed! Anywho, new problem...its with this tournament coding that I have been trying to perfect for my game....lemme post what I have and again I shall mark the lines that the errors refer to with asterisks...

Police.dm:1127:error:M.verbs:undefined var
Police.dm:1127:error:/verb/Tourney_signup:undefined type path
Police.dm:1130:error:M.verbs:undefined var
Police.dm:1130:error:/verb/Tourney_signup:undefined type path
Police.dm:1136:error:usr.loc:undefined var

Tournament()
set category = "GM"
set name = "Tournament"
set desc = ""
if (tournament==1)
world << "
[usr]
\blue is hosting a tournament!!

"
M.verbs += /verb/Tourney_signup** //2 errors here
sleep(600)
tournament=0
M.verbs -= /verb/Tourney_signup** //and 2 errors here...
world << "Tournament sign up has ended!"


verb
Tourney_Signup
usr.loc=locate (39,25,9)* //only one error here...

Let me know if this can help anyone help me...I hope this is all of the information that you gurus need. ^_^ Well, I'm going to post this now and sit here and wait... Talk to you all later! ~Rashka Kiernan~
For the problems with the verb thing is it has to be mob/verb/Tourney_Signup and for the location thing put src.loc = locate(39,25,9)

P.S. Get rid of your zeta rip!
M.verbs:undefined var

undefined var means "No such variable." There are two variables in that line: M, and verbs. In this case, the problem is there is no such thing as M.

Yeah, you see M all over the place, in all kinds of "code snippets." Guess what? It means -NOTHING-. The only reason the people who use M don't get the same error is because they define M, usually as mob/M, so the compiler knows it's a mob and knows it therefore has (for instance) a .verbs var.

If you really wanna use M, you need to declare it, either as an argument for the Tournament verb/proc...
Tournament(mob/M as mob)
which means, if this is a verb, the person who uses it picks someone else (usually, you'd put in oview() as part of the definition to make it someone they can see) to be M... or in the code itself, as
var/mob/M,
but then you'd have to have some way of finding the mob you the coder actually want to use and setting M = them

What you're probably going for is to have these verbs and so on get added to the person who used the Tournament command.

Tournament is a command, right? As in a verb? So the mob who uses it, is the user... usr. So why are we talking about this crazy M person? What does M have to do with it? Forget about M. If this code is a verb and everything in it is supposed to happen to the person who used it, just say
usr.verbs

and check the path on /verb/Tourney_signup. Is it actually defined under mob or another path? In that case, it would be /mob/verb/Tourney_signup

Finally, in closing, never use a piece of code you do not understand, because even if it seems like it works, it actually doesn't. It might do everything you want it to do, but that doesn't mean it's not doing other things you don't know about. If you're not sure what something (like "M") means, ask. Keep asking until it makes sense.
In response to Dession
I used the Help file to code that and when i got these files they were advertised as not being a zeta rip, the icons look like they were based off of RM2k3 or another RPG making program like that. When i firs discovered byond, i was at a friends house and he asked me if i wanted to play a game that had a RM2k3 basis..when i first saw the icons and whatnot, i swore to my friend that RM programs must have been the inspiration for it. So, even if this is a Zeta rip, and believe me when i say i have gotten a zeta rip before, i wouldnt know it because this says nothing about Dracon. Usually when i got zeta rips before in the past there was this sign that Dracon made and that was how i could tell it was Dracon's original creation...or at least a stolen version of it. But in these files, there was no sign, it just looked like a bunch of the icons were ripped from other db games. And besides, I'm just using this to learn how to code because i have tried the tutorials. *trys to remember something* Oh, how did that chinese proverb go? "I see and i know, I hear and i remember, I do and i understand." i guess thats how it goes..i dunno, i havent seen it or heard it since i was a freshman in hs..
In response to Rashka
Didnt know what zeta was? Then why is it named Dragonball Z:Ninjitsu {Zeta Version}?
In response to Dession
lol, because, as of right now, i really have no home, i was kicked out and was living with a friend when i found a zeta rip, that allowed me to learn coding for a short while, but then i had to move in with a family member and i couldnt find those files again. So i just downloaded another set of system files but they were different than the ones i had originally used for the zeta version. The first ones i downloaded were zeta because that is what the page said when i downloaded them. I have gotten rid of that link to the zeta game because that was stolen from RaeKwon who (aww hell, everyone knows the story behind RaeKwon and Dracon...) so the zeta version was stoled from Raekwon, and I have too much respect for Dracon to use his coding. (note: if this game is nothing but a zeta rip, then i am going to get rid of it...but with the help file in DM, alot of it looks like zeta. i just downloaded another zeta rip and im beginning to think that all coding looks like this...i just found Dracon's sign for the beta testers ^_^)
In response to Rashka
Rashka wrote:
and I have too much respect for Dracon to use his coding.

Too much respect for dracon? I'm sorry, but you crack me up. Dracon is a drain on the community! He was banned for various things, (so I hear) but the last draw was when he exploited the hub. Respect for dracon...ha...
In response to Rashka
Rashka wrote:
note: if this game is nothing but a zeta rip, then i am going to get rid of it...

I think your missing the point of why people don't like Zeta. True, they hate it because Zeta rips flood the HUB, but they mainly dislike it because it's a rip.
Ripped games are like are like poison to the BYOND community. They stop a lot of potentially good programmers from learning anything useful, and they only seem to encourage bad behavour.
So to sum up, you shouldn't be getting rid of it if it's a zeta rip, you should be getting rid of it if it's a rip of anything.