Register for your free account! | Forgot your password?

You last visited: Today at 17:32

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

Advertisement



Project Error

Discussion on Project Error within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2016
Posts: 36
Received Thanks: 6
Project Error

in booth system , need to make booth sell items with Gold and Cps
Cost = just number
Cost_Type = you select Cps or Gold
any way need the The correct formula to write this code please :"D
-
the Image :
-*edit*

Lol , I realized that's was Stupid question i solve it any way but still have something

how i make this code run on " ConquerPoints or Silvers "
_
item.Cost_Type = Game.ConquerStructures.BoothItem.CostType.ConquerP oints;
_
or not work with it or the first one only work
Mostafarizk is offline  
Old 03/21/2017, 17:57   #2
 
JaniQ's Avatar
 
elite*gold: 0
Join Date: Apr 2014
Posts: 117
Received Thanks: 90
I regret looking at that image and would advise everyone not to.

You simply need to cast your parsed value to the enumeration of "CostType".
JaniQ is offline  
Old 03/21/2017, 19:52   #3
 
elite*gold: 0
Join Date: Jul 2014
Posts: 402
Received Thanks: 540
Quote:
Originally Posted by JaniQ View Post
I regret looking at that image and would advise everyone not to.

You simply need to cast your parsed value to the enumeration of "CostType".
And maybe add a pair of curly brackets so that the new code is actually inside the if statement ...

*** ******* damnit, looking at that code makes me want to gauge my eyes out with a spoon. Whoever wrote that deserves to have all of his toenails ripped off slowly.
Best Coder 2014 is offline  
Old 03/21/2017, 21:13   #4
 
elite*gold: 0
Join Date: Feb 2016
Posts: 36
Received Thanks: 6
i will make all member got cancer [[fakssi]] just wait
Mostafarizk is offline  
Old 03/21/2017, 21:55   #5
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,212
Received Thanks: 4,115
Quote:
Originally Posted by Mostafarizk View Post
i will make all member got cancer [[fakssi]] just wait
This either translates to "Just wait until I get good" in which case I'm not willing to wait an eternity, or "I will make all members contract cancer" in which case you've already accomplished that. What's the point of this thread? We're not stackoverflow. If you can't handle simple compiler errors, how the hell are you supposed to handle an entire game server project? Are you crazy? Go support a real server.
Spirited is offline  
Reply


Similar Threads Similar Threads
Project Zero Error!!!
07/16/2013 - Zero - 2 Replies
ineed patchs ihave client but ithing this need patch to work
Error [ Project Aurora ]
03/25/2012 - S4 League - 13 Replies
S4 Project Aurora Error - YouTube HACKING TRIAL DETECDET !!! HELP ME PLEASEEE !!! :( :( :(
Error COServer Project
08/03/2008 - Conquer Online 2 - 3 Replies
First I get this error http://img46.imageshack.us/img46/7348/errorshadow rq9.jpg then when I get press not to send this: http://img111.imageshack.us/img111/2922/despuesse 5.jpg The problem is what?
Help request for c# project error.
07/31/2007 - Conquer Online 2 - 4 Replies
Ok ive recoded the v3n0m proxy, but I still cant compile it... My file tree looks like: v3n0m-- A> A/a.cs B> B/a.cs A.A Resources Assemblyinfo.cs



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


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.