[HELP]VIP Command Fix

04/06/2011 17:26 F i n c h i#1
Could anyone help me fix this command for Hellmouth Source
The red words are errors.

Code:
case "/vip":
                            {
                                [B][COLOR="Red"]Game[/COLOR][/B].Character C = [B][COLOR="#ff0000"]Game[/COLOR][/B].World.CharacterFromName(Cmd[1]);
                                if (C != null)
                                    C.VipLevel = byte.Parse(Cmd[2]);
                                GC.[B][COLOR="#ff0000"]AddSend[/COLOR][/B](Packets.[B][COLOR="#ff0000"]ChatMessage[/COLOR][/B](0, "SYSTEM", GC.[B][COLOR="#ff0000"]MyChar[/COLOR][/B].Name, "Congratulations! " + C.Name + "Is VIP Level " + C.VipLevel + "!", 2001, 0));
                            }
04/06/2011 21:49 iStefan#2
HAAAAAAAAAAAAAAAAHAHAHAHA!
You are such a big fool.
1. Hellmouth has different variables.
2. Hellmouth has different Methods.
3. Hellmouth has different classifications.

Learn a bit, then we'll talk.
04/06/2011 23:13 Notpop#3
be a bit nicer stefan...

@ontopic, ask Pro4Never, he made the source if im right.
04/06/2011 23:27 AndreaCo#4
i can help you. talk to me on the elementco chatbox
04/06/2011 23:28 Syst3m_W1z4rd#5
All you do is converting the variables. Not really anything else. The error you're getting is probably "Does not exist in current context" Am I right?
04/07/2011 00:06 Notpop#6
Quote:
Originally Posted by Syst3m_W1z4rd View Post
All you do is converting the variables. Not really anything else. The error you're getting is probably "Does not exist in current context" Am I right?
i think you're right, because it's looking for something what isn't there.
so if you change it to the right ones, look them up in other files, it should be working.
04/07/2011 03:48 _tao4229_#7
if (C != null) {
C.VipLevel = ...
C.SendPacket(....)

}
enclose both parts in the if statement
04/07/2011 13:05 iStefan#8
I can't see a conversion here.