Register for your free account! | Forgot your password?

You last visited: Today at 15:02

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

Advertisement



Coding

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

Reply
 
Old   #1
 
Moataz2023's Avatar
 
elite*gold: 0
Join Date: Apr 2014
Posts: 32
Received Thanks: 0
Coding

i get a weird error i don't understand any help plz?
Moataz2023 is offline  
Old 12/03/2014, 01:29   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
Every opening tag/bracket/etc in programming should be paired with a closing one.

In this case you're starting a new block with { and never closing it with a }

You can think of this like a paragraph that has no punctuation. Computers are dumb and only know when to stop 'reading' when you tell them to. That being said it looks like you tried to paste someone's NPC into your source and messed up some of the formatting in the process.

You should really read some BASIC programming books to get a firm understanding of how to code. It will be valuable life knowledge (being able to think logically is a very, VERY valuable skill) and will make any work you do with pservers infinitely more enjoyable/less frustrating.
pro4never is offline  
Thanks
1 User
Old 12/03/2014, 02:05   #3
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 946
Quote:
Originally Posted by pro4never View Post
Every opening tag/bracket/etc in programming should be paired with a closing one.

In this case you're starting a new block with { and never closing it with a }

You can think of this like a paragraph that has no punctuation. Computers are dumb and only know when to stop 'reading' when you tell them to. That being said it looks like you tried to paste someone's NPC into your source and messed up some of the formatting in the process.

You should really read some BASIC programming books to get a firm understanding of how to code. It will be valuable life knowledge (being able to think logically is a very, VERY valuable skill) and will make any work you do with pservers infinitely more enjoyable/less frustrating.
The bracket issue has nothing to do with computers being dumb, since it all comes down to the compiler and it really is for your own safety and the way the compiler scopes data. It could be possible to make a compiler that didn't care about scopes and brackets; now that would be a "dumb" compiler. Not a compiler that ensures safety of your code.

I get what you mean though.
Super Aids is offline  
Old 12/03/2014, 02:34   #4
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
Quote:
Originally Posted by Super Aids View Post
The bracket issue has nothing to do with computers being dumb, since it all comes down to the compiler and it really is for your own safety and the way the compiler scopes data. It could be possible to make a compiler that didn't care about scopes and brackets; now that would be a "dumb" compiler. Not a compiler that ensures safety of your code.

I get what you mean though.
It's the easiest way to make him understand what his problem is. Blocks are C#'s way of grouping instructions together and so I used an analogy to get that across based on something he might have understanding of.

I get that you want to be 'right' but seriously, **** off. Nothing I said was 'incorrect' it was simply dumbed down to try to help someone out.
pro4never is offline  
Old 12/03/2014, 09:04   #5
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,882
Quote:
Originally Posted by pro4never View Post
Every opening tag/bracket/etc in programming should be paired with a closing one.

In this case you're starting a new block with { and never closing it with a }

You can think of this like a paragraph that has no punctuation. Computers are dumb and only know when to stop 'reading' when you tell them to. That being said it looks like you tried to paste someone's NPC into your source and messed up some of the formatting in the process.

You should really read some BASIC programming books to get a firm understanding of how to code. It will be valuable life knowledge (being able to think logically is a very, VERY valuable skill) and will make any work you do with pservers infinitely more enjoyable/less frustrating.
inb4 reads a book on the language BASIC
InfamousNoone is offline  
Thanks
3 Users
Old 12/03/2014, 11:14   #6
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 946
Quote:
Originally Posted by pro4never View Post
It's the easiest way to make him understand what his problem is. Blocks are C#'s way of grouping instructions together and so I used an analogy to get that across based on something he might have understanding of.

I get that you want to be 'right' but seriously, **** off. Nothing I said was 'incorrect' it was simply dumbed down to try to help someone out.
Super Aids is offline  
Thanks
3 Users
Old 12/04/2014, 16:15   #7
 
Moataz2023's Avatar
 
elite*gold: 0
Join Date: Apr 2014
Posts: 32
Received Thanks: 0
Thanks all and about pro4never saying i copied pasted ... no i did it by my own but i was kind of can't find the mistake :S

I have this issue in my private server (conquer online) i am trying to remove JiangHu system but instead i get the progress removed any help plz?
Moataz2023 is offline  
Old 12/04/2014, 20:15   #8
 
InsomniacPro's Avatar
 
elite*gold: 0
Join Date: Feb 2014
Posts: 397
Received Thanks: 205
Quote:
Originally Posted by Moataz2023 View Post
Thanks all and about pro4never saying i copied pasted ... no i did it by my own but i was kind of can't find the mistake :S

I have this issue in my private server (conquer online) i am trying to remove JiangHu system but instead i get the progress removed any help plz?
LOL what the ****. How do you try to remove one system, and completely remove another? Like, what?
InsomniacPro is offline  
Thanks
1 User
Reply




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


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.