Register for your free account! | Forgot your password?

You last visited: Today at 06:41

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

 

5017 coding questions (:

Reply
 
Old   #16
 
elite*gold: 0
Join Date: Mar 2012
Posts: 109
Received Thanks: 127
Quote:
Originally Posted by Dr.unreal View Post
Its a pseudo code . You need to actually use functions from your source .
I don't understand, sorry. I'm new to this..



Wuscheli is offline  
Old   #17
 
elite*gold: 0
Join Date: Aug 2011
Posts: 314
Received Thanks: 88
Quote:
Originally Posted by Dr.unreal View Post
How is it uneccesary if they can have only one of those 3?
the for loop is doing

if(MyChar.Inventory.Contains(722000))
remove....
else if(MyCha......Contains(722001))
remove....
else if(MyChar.....Contains(722002))
remove....

u are doing 2-6 comparations when u need just 1-3


U2_Caparzo is online now  
Old   #18
 
elite*gold: 0
Join Date: Mar 2013
Posts: 118
Received Thanks: 94
You should probably read some programming tutorials if you don't even understand the most basic things of it.
Smaehtin is offline  
Old   #19
 
elite*gold: 0
Join Date: Oct 2006
Posts: 273
Received Thanks: 85
Quote:
Originally Posted by U2_Caparzo View Post
the for loop is doing

if(MyChar.Inventory.Contains(722000))
remove....
else if(MyCha......Contains(722001))
remove....
else if(MyChar.....Contains(722002))
remove....

u are doing 2-6 comparations when u need just 1-3
If(Player has any of the three items)
Iterate throught 722000-722000 (we dont know which of the three he has at this point
If(Player has item od given ID -> remove it and break the loop)
Are you sure you are not just interpreting the code wrong ?

And Wuscheli This is pseudocode . Simply said , since we dont know what source you are using , we dont know whats the name of the required functions thus in the sample code the name i simply used plain english for naming (For example HasItem() is == to the InventoryContains() in your source .


Dr.unreal is offline  
Old   #20
 
elite*gold: 0
Join Date: Mar 2012
Posts: 109
Received Thanks: 127
I use PazeCo Source & still not able to fix it =O
Wuscheli is offline  
Old   #21
 
elite*gold: 0
Join Date: Oct 2006
Posts: 273
Received Thanks: 85
Well then try to get down the basics first then
Dr.unreal is offline  
Old   #22
 
elite*gold: 0
Join Date: Mar 2012
Posts: 109
Received Thanks: 127
ye but HOW to learn CO basics?xD
Wuscheli is offline  
Old   #23
 
elite*gold: 0
Join Date: Oct 2006
Posts: 273
Received Thanks: 85
Its not CO ServerProgramming basics we are talking about here . You need to learn actual basics of programming in c# lol . Just go throught some tutorials online and try to do things yourself afterwards . You ll learn rather fast when you try to experiment on your own .
Dr.unreal is offline  
Old   #24
 
elite*gold: 0
Join Date: Mar 2012
Posts: 109
Received Thanks: 127
Hmm doesn't matter. I just figured it out how to remove all item and silver drops..
I like the way to learn something, sometimes it is hard but.. learning by doing^^


Wuscheli is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
Looking for 5017 Source that working fine, or a way to downgrade the 5520 - to - 5017
Looking for 5017 Source that working fine, or a way to downgrade the 5520 source - to - 5017 source
7 Replies - CO2 PServer - Discussions / Questions
[Help] 5017 Questions.
okay so I'm going oldstyle now. back to my 5017 source I had been working on for almost a year. I'm getting a few problems with the personal shops...
7 Replies - CO2 PServer - Discussions / Questions
[RELEASE]Big Project..5095,5065,5017,5017 (command Server)
Hi, Yes i made a big project with my self by my self i host i edit i control i code. The Project contain 3 Co plvling Servers and 1 Command server...
23 Replies - CO2 PServer Guides & Releases



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


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.