-
Posts
845 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Events
Everything posted by tcsoccerman
-
Yes, thank you D1, when it asks if you would like to continue recording a game, that doesn't work. I'm still working on recgonizing the Yes and No button clicks. I am already farther, but won't realease yet.
-
No that's c#, btw root, this isn't the mod for soccer in my zone. I don't want to be owner anymore lol, i'm to caught up in c# programming.
-
I'm really sorry, but i don't get most of that. i learn best though with examples, so if you could have: MainForm() AddTeam() //this is the child form and there is a variable in AddTeam() (child form) called "teamnametxtbox.Text" that i want to p!@#$%^&* to the mainform(MainForm) and make it = "lblteamname.Text". That would be pimpin. Sampapico rocks. Oh, btw, i attached the program in topic "Team Tracker Program, version 1.0". I learned how to save .
-
Here is my "Team Tracker" Version 1.0 . It supporsts: *Team name, city, coach, !@#$%^&*istant coach. *Home Record, Away Record, And Home Record. I realize there is a glitch inthe homewins/overall wins. For some reason it can turn out 1 too many overall wins for what homewins+awaywins equals. Any suggestions are great, especially design Edit: also, only the toolbar buttons work, (save, open, new). Clicking on the player will give a window, but nothing is implemented yet. Team_Tracker_Version_1.0.zip
-
I know how to write to text files, but i need to write "int" 's as well.(numbers). I'll look at it anyways though
-
New Problem/Question: Ok, this question is related to passing variables through multiple forms. Right now i do that by putting parameters in "public MainForm(...)" and then calling the function in another form..etc. Is there another way to do that so i don't have like 30 parameters in "public Mainform(). Not only will it look better, it will be easier to have a function for each other form that relates to MainForm. Ty!
-
YYYyalk;sdj;faksdjldskjflsdkjf;lsdjfa;dslkjYYYYYYYYYYYyAAAAA AAAAAAAAAYYYYYYYYYYYYYYYYYYY I'm stupid but idc!!!!!!! the problem was that i never made the "lblhw.Text", "lblht.Text", etc. i never made those text = "0", so then it wasn't even a string and such. Now it works perfectly though!!!!!!!!!!!!. OMGGGGGGGGGGG ROFL I"M STUPID!!!! W.E. THANKY YOU MUCH THOUGH FOR THE HELP. I'LL SHOW THE WORKING CODE HERE FOR ANY C# DEV. C# ROCKS AND EVERYONE HERE SHOULD CODE IT!!!. First declare what each label's text is, making sure it is not blank, nor a word(obviously) lblow.Text = "0"; lblol.Text = "0"; lblot.Text = "0"; etc..... Then manage the button click event. to make it work, i made sure that the label !@#$%^&*ignment went in the "if" statement, which could have made it work. either that or !@#$%^&*igning a # to each label.I still feel stupid. void ButtoncreatenewgameClick(object sender, EventArgs e) { int INThw=Int32.Parse(lblhw.Text); int INTht=Int32.Parse(lblht.Text); int INThl=Int32.Parse(lblhl.Text); int INTaw=Int32.Parse(lblaw.Text); int INTat=Int32.Parse(lblat.Text); int INTal=Int32.Parse(lblal.Text); int INTow=Int32.Parse(lblow.Text); int INTol=Int32.Parse(lblol.Text); int INTot=Int32.Parse(lblot.Text); int INTgoals; int INTpts=(INTow*2)+INTot; MessageBox.Show("Would you like to continue?","Continue?",MessageBoxButtons.YesNo,MessageBoxIcon.Information); if (radiobuttonhome.Checked) { if (teamyouscore.Value > teamopponetscore.Value) { ++INThw; ++INTow; lblhw.Text=INTow.ToString(); } else if(teamyouscore.Value == teamopponetscore.Value) { ++INTht; ++INTot; lblht.Text=INTht.ToString(); } else { ++INThl;//:( sad; ++INTol; lblhl.Text=INThl.ToString(); } } else { if (teamyouscore.Value > teamopponetscore.Value) { ++INTaw; ++INTow; lblaw.Text=INTaw.ToString(); } else if(teamyouscore.Value == teamopponetscore.Value) { ++INTat; ++INTot; lblat.Text=INTat.ToString(); } else { ++INTal;//:( sad; ++INTol; lblal.Text=INTal.ToString(); } } //INTgoals=+teamyouscore.Value; lblow.Text=INTow.ToString(); lblol.Text=INTol.ToString(); lblot.Text=INTot.ToString(); lbloverallrecord.Text = "Overall Record:"; lblawayrecord.Text = "Away Record:"; lblhomerecord.Text = "Home Record:"; } Hope this helps everyone Edit: Now to read sil's post and learn how to save all this .
-
I got this error: ALL labels/references exist. The program compiles correctly and creates the program, but while USING(not compiling) it gives the above error. Exception System.FormatException was thrown in debuggee: Input string was not in a correct format. StringToNumber() ParseInt32() Parse() ButtoncreatenewgameClick() - c:\Do!@#$%^&*ents and Settings\Scott\My Do!@#$%^&*ents\SharpDevelop Projects\Team Tracker\MainForm.cs:98,4 OnClick() OnClick() OnMouseUp() WmMouseUp() WndProc() WndProc() WndProc() OnMessage() WndProc() DebuggableCallback() System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManage r.FPushMessageLoop() RunMessageLoopInner() RunMessageLoop() Run() Main() - c:\Do!@#$%^&*ents and Settings\Scott\My Do!@#$%^&*ents\SharpDevelop Projects\Team Tracker\MainForm.cs:28,4 Under this code: EDIT:btw, "teamyouscore" and "teamopponetscore" are the little txtboxes with a up/down arrow that resemble #'s. I guess there called "numericupdown"'s. also, the two radio buttons are to choose if it's a home or away game. hw means homewins ht means hometie etc.... ALL labels/references exist. The program compiles correctly and creates the program, but while USING(not compiling) it gives the above error. void ButtoncreatenewgameClick(object sender, EventArgs e) { int INThw=Int32.Parse(lblhw.Text); int INTht=Int32.Parse(lblht.Text); int INThl=Int32.Parse(lblhl.Text); int INTaw=Int32.Parse(lblaw.Text); int INTat=Int32.Parse(lblat.Text); int INTal=Int32.Parse(lblal.Text); int INTow=INThw+INTaw; int INTol=INThl+INTal; int INTot=INTht+INTat; int INTgoals; int INTpts=(INTow*2)+INTot; MessageBox.Show("Would you like to continue?","Continue?",MessageBoxButtons.YesNo,MessageBoxIcon.Information); if (radiobuttonhome.Checked) { if (teamyouscore.Value > teamopponetscore.Value) { ++INThw; } else if(teamyouscore.Value == teamopponetscore.Value) { ++INTht; } else { ++INThl; } } else { if (teamyouscore.Value > teamopponetscore.Value) { ++INTaw; } else if(teamyouscore.Value == teamopponetscore.Value) { ++INTat; } else { ++INTal; } } //INTgoals=+teamyouscore.Value; lblow.Text=INTow.ToString(); lblol.Text=INTol.ToString(); lblot.Text=INTot.ToString(); lblhw.Text=INThw.ToString(); lblht.Text=INTht.ToString(); lblhl.Text=INThl.ToString(); lblaw.Text=INTaw.ToString(); lblat.Text=INTat.ToString(); lblal.Text=INTal.ToString(); lbloverallrecord.Text = "Overall Record:"; lblawayrecord.Text = "Away Record:"; lblhomerecord.Text = "Home Record:"; }
-
I'd love to not refer back to it, but it's the only way to keep track, i think...i'll try not referring to the label, but just a "behind the scenes in".
-
Do mathmatical operations. And the file needs to be able to handle integers as well as strings.
-
Ok, ty much for replying!!. The thing is that i need to do these for the lable/integer thing.(list of things): first i need to retrieve what the value of the label is in int style. second i need to take that #, and add 1 to it. third i need to output the updated #. a little different then what you suggested. i tried this and it turned into a mess of unnasigned variables, and unknown variables. ty very much!
-
I already have a topic in mgb, but not many people reply there or just not many people go there often. I'll start a new one here. First question: How would i go about having a label which represents integers, not strings? I want to post statistics, not text. Second: How do you save a non .txt file, (in fact a custom made .tm file). that leads to the question how do you make new extensions? I hope more will reply here Btw, i am using the SharpDevelop compiler/debugger.
-
I'm from Michigan, so i'm really pissed on the past years when they rock the season and suck the playoffs. I think they will pull it together though, this season they had many comebacks.
-
Would it be possible to have a way to talk to eachother over Discretion? Sorda like in halo/xboxlive. That would be cool.
-
i think "real picard" should know that the ships items that you buy for it stay w/ the ship through login/logout. this is the only zone that does that....i think. this zone is flaggin as well. if you do "?buy" it gives you a list of categories, such as guns, ships. if you do "?buy it shows the items in the category. a "?buy ships" would give you warbird, javelin, spider, etc.
-
you all could get a life
-
this is the greatest post i've ever seen in my life. SOS, please move it to PSS CTF Fury, and rename it "the greatest post ever".
-
continuum is so addictive that it will never be proper. just thought i might say that, even though that probalbly wasn'twhat you were trying to say.
-
My birthday is on the 20th. . and don't be mean to chambahs, he's cool.
-
nope, never heard one.
-
I also agree that midi files should be used along with others. Midi files, if i recall correctly, have a much less size as a .wav/.wa2. Why not supposrt them all? also, when you make more progress on discretion, where do you put the updates?
-
you should know what you're talking about in the first place b4 making such aggressive comments. bad coding=program not running=anything inside the program is not possible. there fore, you can't hack or anything really until ASSS starts back up.
-
more info: i was just flagging, flag game was just starting, in a base, said i was about to leave, was disconnected....nvm i logged my self out... jk, lol, i was in a base with 2 flags and 3 of my teammates had at least 1 each, flag game just started and it is disconnected for me.