Register for your free account! | Forgot your password?

You last visited: Today at 23:23

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



#C Question!!

Discussion on #C Question!! within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2006
Posts: 114
Received Thanks: 30
#C Question!!

Ok well im dun asking for stuff i want im going to learn #c and stop being a **** lazy nub.... Ok i looked at some guides... and did i do this correct?

Code:
#region TEST NCP
                case 10008://TEST
                    if (LinkBack == 0)
                    {
                        Text("Would you like to buy a DB for 100CPs?", CSocket);
                        Link("Sure, I guess", 1, CSocket);
                        Link("No Thanks", 255, CSocket);
                        End(CSocket);
                    }
                    else if (LinkBack == 1)
                    {
                        if (CSocket.Client.CPs >= 100)
                        {
                                CPs(-100, CSocket);
                                AddItem(1088000, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
                        }
                        else
                        {
                            Text("Im sorry you do not have the required amount of cps", CSocket);
                            Link("Okay", 255, CSocket);
                            End(CSocket);
                        }
                    break;
                    }
            
#endregion
If i did not can u help me correct it? Its a nub NPC.. but it will give me the point how to use link,end,text.. and CSocket.. and Link Back...
imported_spitt_fire911 is offline  
Old 07/14/2009, 11:00   #2
 
xellios's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 310
Received Thanks: 13
It's fine if you want i can teach you some
xellios is offline  
Old 07/14/2009, 15:30   #3
 
n0mansland's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
Didn't you test it before you put it on here? Are you getting errors or something? The code is perfectly fine as xellios said. (It's C# not #C, typo?)
n0mansland is offline  
Old 07/14/2009, 15:35   #4
 
elite*gold: 20
Join Date: Aug 2005
Posts: 1,734
Received Thanks: 1,000
You could change the place of the last } and the break; so it'd look like this or similar:

PHP Code:
    } break; 
tanelipe is offline  
Thanks
1 User
Old 07/14/2009, 17:29   #5
 
elite*gold: 0
Join Date: Dec 2007
Posts: 618
Received Thanks: 213
[QUOTE=imported_spitt_fire911;2555848]
Code:
#region TEST NCP
                case 10008://TEST
                    if (LinkBack == 0)
                    {
                       //
                    }
                    else if (LinkBack == 1)
                    {
                        //
                   
                    }
                   [B] break;[/B]
#endregion
alexbigfoot is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[QUESTION]How do i bypass Xtrap for any private server?[QUESTION]
10/12/2009 - Cabal Online - 3 Replies
Exactly what the title says. I keep on getting an xTrap error when i try and load ANY private server that uses XTrap and it's driving me absolutely insane. I cant figure out why it's showing me the error. If anyone has any bypasser for Helix / PaRaDoX or any other server u know that has xTrap can u either PM me the bypass or post it here pls......this is driving me nuts Bump.
[QUESTION]How do i bypass Xtrap for any private server?[QUESTION]
10/02/2009 - Cabal Private Server - 2 Replies
Exactly what the title says. I keep on getting an xTrap error when i try and load ANY private server that uses XTrap and it's driving me absolutely insane. I cant figure out why it's showing me the error. If anyone has any bypasser for Helix / PaRaDoX or any other server u know that has xTrap can u either PM me the bypass or post it here pls......this is driving me nuts



All times are GMT +2. The time now is 23:23.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.