Project Error

03/21/2017 13:35 Mostafarizk#1
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 : [Only registered and activated users can see links. Click Here To Register...]
-*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
03/21/2017 17:57 JaniQ#2
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".
03/21/2017 19:52 Best Coder 2014#3
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 ...

God fucking 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.
03/21/2017 21:13 Mostafarizk#4
i will make all member got cancer [[fakssi]] just wait
03/21/2017 21:55 Spirited#5
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.