what i have to do to fix my demote verb,i coded right my demote verb but when i premote player and after that i demote him he still stay as gm what i have to do to fix it plzzz answear me.
here is my msn and my Email : [email protected]
ID:141780
![]() Nov 13 2008, 3:53 pm
|
|
![]() Nov 13 2008, 4:33 pm
|
|
It helps to post your code and type in english.
|
Demote_Admin(mob/M in world) |
Put it inside the tags <"dm">(to start) - <"/dm">(to end).
//this is how a code would look inside of those tags
|
NEVER use goto. This is a fairly simple code and goto has NO place here. "Yes" appears very many times in this code. You are confusing the compiler by using goto. Instead of using goto you could just continue your code inside of the if statement.
|
I've found the goto() proc to be quite useful when I can't find a way to do a loop using spawn(), for(), or while().
|
[link] and others. You should almost always be able to get by without using goto.
|
Jon88 wrote:
ID:66034 Is that so? >.> But yeah, goto should be avoided in favor of the much cleaner looping constructs that don't create spaghetti code that keeps jumping all over the place, is fugly and hard to get around in. |
Mizukouken Ketsu wrote:
Error - "Unable to find message." Sorry. My copy & paste missed the last digit off of the post ID number. It's fixed now. There's lots of posts in the forums on the subject, some explain the idea better than others too. |