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.
|
In response to Mizukouken Ketsu
|
|
Demote_Admin(mob/M in world) |
In response to Shayvguy1222
|
|
Put it inside the tags <"dm">(to start) - <"/dm">(to end).
//this is how a code would look inside of those tags
|
In response to Shayvguy1222
|
|
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.
|
In response to Bobomaster
|
|
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().
|
In response to Mizukouken Ketsu
|
|
[link] and others. You should almost always be able to get by without using goto.
|
In response to Jon88
|
|
Error - "Unable to find message."
|
In response to Jon88
|
|
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. |
In response to Mizukouken Ketsu
|
|
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. |
In response to Jon88
|
|
Someone plzzz tell me the right code so i can fix my game.
i want to run my game and cuz the demote dont work i cant run my game. plzz tell me the code so i can start to run my game. |