Jump to content
SSForum.net is back!

Samapico

🜲 Administrator
  • Posts

    7973
  • Joined

  • Last visited

Everything posted by Samapico

  1. It's just the same words that are repeated over and over... random noun + random verb... 'fish' appears like 25 times... so does 'mounting'... so with like 25 nouns and 25 verbs, it just throws 25*25 different combinations
  2. uh ok... first thing I noticed you might want to check... when you write: int INTow=INThw+INTaw; You assign it a value... when you increment INThw later, it won't change the value of INTow... I'm not sure if that's what you want... and the error you get is probably because there are non numeric characters in the textboxes... According to MSDN, when this occurs, it throws a FormatException So you'd have to use a try catch block to handle invalid values. Either one block for each .Parse() method and handle each value individually, or one single block for every values that would give an error like 'One or more invalid values' //One block for each int INThw, INTht, INThl, INTaw,INTat, INTal; //You must declare your variables outside the block, or they would only be defined for that block try { INThw=Int32.Parse(lblhw.Text); } catch (FormatException) { INThw = 0; //Or whatever value you want it to have in case of an invalid value } //Repeat for each //With a single try/catch block int INThw, INTht, INThl, INTaw,INTat, INTal; //You must declare your variables outside the block, or they would only be defined for that block try { INThw=Int32.Parse(lblhw.Text); INTht=Int32.Parse(lblht.Text); INThl=Int32.Parse(lblhl.Text); INTaw=Int32.Parse(lblaw.Text); INTat=Int32.Parse(lblat.Text); INTal=Int32.Parse(lblal.Text); } catch (FormatException e) { //handle error, could be a messagebox followed by "return;" for example, to simply get out of the method //you can use e.Message to get the actual error message, if you want to put it in your messagebox } In addition, you could also control what the user can type in the textbox directly, using the Textbox_change event... Everytime the content of the textbox would be changed, you'd remove all characters from it, except "0123456789" and maybe '-' if you might need negative numbers There are many ways to do that... Not sure if the string class has a built-in function for that
  3. You can have a private global variable that keeps track of the value: class myClass { private int myValue = 0; //int initialized to 0, can be seen from the whole class //[... other code... ] private void IncrementValue() { myValue++; myLabel.Text = myValue.ToString(); } }
  4. oh... to read an int from a string, you can do something like... string mystring = "2"; int myvalue = int.parse(mystring); However, it would be better to store your value in an integer, and THEN update the label with that value, instead of always referring back to the label when you need to read the value. A label is meant to display an information, not store it. (But yes it would work)
  5. Megadeth's Hangar 18 is full of crazy solos...but that's 1990... Latest Megadeth albums still have some good riffs and solos though.
  6. int result = 4; string mystring = result.ToString(); You have to open a new file as 'write binary', so you'll be saving bytes in there, instead of characters. I don't know the exact methods to use, but it should look pretty much the same as for text, and you can find this easily on any C# help site like MSDN.So you could directly write an array of integers, for example. As for new extensions... it just depends on how you name your new file. However, you have to be careful of how you put your data there, so it must always be readable the same way it was written. For example, if the quan!@#$%^&*y of data is not fixed, you should write an integer specifying how many items there are to read. But basically you can put whatever you want.
  7. lol... probably... until he posts some crap like that in one of my forums I can't do anything to him though
  8. LMAO
  9. wtf... both posts of that guy are completly useless, unrelated to the topic (or even to the forum section itself)... And I can say that even if I don't understand dutch much... check his profile to see another post like that he made in Game Dev forum... someone stick him a warning or two I removed his post, no need for a warn imo -Maverick
  10. Cool, I'm abusive didn't know that
  11. He did edit his post...
  12. what he said -I stopped playing Arcade because I still hold Asteroids record... and because it is a bit buggy (Lots of my scores were lost (partially?), and I know some other people's scores got trashed too) -chat would be fun, indeed -ssRPG... After the 1st round I realized it was too much of a waste of time, so I'm staying away from it Not because it's not fun, but it just makes you log on the forums every hour I don't know if the new sets are fun... but it sure keeps some people in these forums, so it's a good thing -How to improve... I dunno, really... If I ever have an idea for that, u'll be the first to hear it
  13. ok... maybe not filename, but atleast when installing it, you'd have to know which version u're installing (maybe warn if an older version (or newer?!) is already installed... or is it doing it already? didn't play much with it)
  14. he was banned
  15. Could be some virus or spyware... Do you have anything to prevent these? What kind of connection you have?
  16. get off your xbox, get some studies
  17. lmao.... that's like... non stop... I hope she takes the time to clean her mouth between each
  18. I see them fine... try a few F5... sometimes they just don't want to load
  19. Since mine are all split in small files, I just use windows 'search in files' and it works fine... I was thinking of making myself a small program to do it and return the result lines though... windows only returns the files, then you have to open it, and search again in file
  20. whenever I see 10+ people in there, I'll jump in for a while keep 'em coming
  21. way to !@#$%^&* up frames
  22. i was gonna say Larry too when I saw the !@#$%^&*le of this thread... he made mine
  23. True... would be good to fix that attachment, or edit the first post to link directly to ssdownloads
  24. from 2002-2003: 20.2 MB 2004: 8.31 MB 2005: 17.9 MB 2006: 11.8 MB 2007: 2.07 MB Starting from January 2004, each day has a different log file (using logmaker.exe) I remember having to split my old 2002-2003 logs because it took a few minutes to load in notepad (or wordpad)... And It was hard to know at which date I split it, had to search through the log to find some kind of reference point... like someone saying the date or something So emm.. my logs folder is 60.4 MB large
×
×
  • Create New...