Page 3 of 6 FirstFirst 12345 ... LastLast
Results 31 to 45 of 76
  1. #31
    scimmyboy's Avatar
    Join Date
    Jan 2008
    Gender
    male
    Location
    https://mpgh.net MPGHCash: $442,596,199
    Posts
    5,645
    Reputation
    26
    Thanks
    896
    My Mood
    Happy
    xgelite, ur code doesnt work. :S

  2. #32
    XGelite's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Enter text here
    Posts
    1,344
    Reputation
    12
    Thanks
    276
    Quote Originally Posted by Justin View Post
    xgelite, ur code doesnt work. :S
    works for me.

    Is your timer set to True in the properties menu?
    if not, it wont work.

    just change the code to this :

    Code:
    Public Class Form1
    
        Public scoreCounter As String
    
    
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            scoreCounter += 1
    
        End Sub
    
        Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
            TextBox1.Text = scoreCounter
        End Sub
    
        Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            Timer1.Enabled = True
        End Sub
    End Class
    and it should work just fine

  3. #33
    scimmyboy's Avatar
    Join Date
    Jan 2008
    Gender
    male
    Location
    https://mpgh.net MPGHCash: $442,596,199
    Posts
    5,645
    Reputation
    26
    Thanks
    896
    My Mood
    Happy
    scoreCounter is not declared tho

  4. #34
    XGelite's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Enter text here
    Posts
    1,344
    Reputation
    12
    Thanks
    276
    Quote Originally Posted by Justin View Post
    scoreCounter is not declared tho




    it should be declared. If you copied the code correctly.

    look at the code. It is declared.

  5. #35
    scimmyboy's Avatar
    Join Date
    Jan 2008
    Gender
    male
    Location
    https://mpgh.net MPGHCash: $442,596,199
    Posts
    5,645
    Reputation
    26
    Thanks
    896
    My Mood
    Happy
    NVM. i found out why. im so dumb

  6. #36
    Taylor Swift's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Location
    Spangdahlem, Germany
    Posts
    6,438
    Reputation
    357
    Thanks
    651
    My Mood
    Yeehaw
    [IMG]https://i104.photobucke*****m/albums/m187/ChandlerLover/Untitled.png[/IMG]
    I keep getting this shit no matter how manny times I change the names... also the frikin thing wont even work now x____x I cant play or nuthin it just gives me that shit..

  7. #37
    XGelite's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Enter text here
    Posts
    1,344
    Reputation
    12
    Thanks
    276
    Quote Originally Posted by Chandman View Post
    [IMG]https://i104.photobucke*****m/albums/m187/ChandlerLover/Untitled.png[/IMG]
    I keep getting this shit no matter how manny times I change the names... also the frikin thing wont even work now x____x I cant play or nuthin it just gives me that shit..
    all those errors are self explanatory. Obviously your syntax is not correct.
    post your full code and i can probably fix it.

  8. #38
    Taylor Swift's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Location
    Spangdahlem, Germany
    Posts
    6,438
    Reputation
    357
    Thanks
    651
    My Mood
    Yeehaw
    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)

    End Sub
    Public Class Form1

    Private Sub RadioButton2_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton2.CheckedChanged

    End Sub

    Private Sub RadioButton3_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton3.CheckedChanged

    End Sub

    Private Sub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton1.CheckedChanged
    Randomize()

    Dim number As Integer

    Const ROCK As Integer = 1
    Const PAPER As Integer = 2
    Const SCISSORS As Integer = 3

    number = (3 * Rnd())

    If RadioButton1.Checked And number = ROCK Then
    Label1.Text = "Computer Threw Rock.Draw."
    ElseIf RadioButton1.Checked And number = PAPER Then
    Label1.Text = "Computer threw Paper. You Lose."
    ElseIf RadioButton1.Checked And number = SCISSORS Then
    Label1.Text = "Computer threw Scissors.You Win!!"


    ElseIf RadioButton2.Checked And number = ROCK Then
    Label1.Text = "Computer Threw Rock.You Win!!."
    ElseIf RadioButton2.Checked And number = PAPER Then
    Label1.Text = "Computer threw Paper.Draw."
    ElseIf RadioButton2.Checked And number = SCISSORS Then
    Label1.Text = "Computer threw Scissors.You Lose!"



    ElseIf RadioButton3.Checked And number = ROCK Then
    Label1.Text = "Computer Threw Rock.You Lose."
    ElseIf RadioButton3.Checked And number = PAPER Then
    Label1.Text = "Computer threw Paper.You Win!."
    ElseIf RadioButton3.Checked And number = SCISSORS Then
    Label1.Text = "Computer threw Scissors.Draw!"


    End If

    End Sub

  9. #39
    Taylor Swift's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Location
    Spangdahlem, Germany
    Posts
    6,438
    Reputation
    357
    Thanks
    651
    My Mood
    Yeehaw
    new error Im getting the picture now Idk how to fix this either...



    [IMG]https://i104.photobucke*****m/albums/m187/ChandlerLover/Untitled2.png[/IMG]

  10. #40
    XGelite's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Enter text here
    Posts
    1,344
    Reputation
    12
    Thanks
    276
    Quote Originally Posted by Chandman View Post
    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)

    End Sub
    Public Class Form1

    Private Sub RadioButton2_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton2.CheckedChanged

    End Sub

    Private Sub RadioButton3_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton3.CheckedChanged

    End Sub

    Private Sub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton1.CheckedChanged
    Randomize()

    Dim number As Integer

    Const ROCK As Integer = 1
    Const PAPER As Integer = 2
    Const SCISSORS As Integer = 3

    number = (3 * Rnd())

    If RadioButton1.Checked And number = ROCK Then
    Label1.Text = "Computer Threw Rock.Draw."
    ElseIf RadioButton1.Checked And number = PAPER Then
    Label1.Text = "Computer threw Paper. You Lose."
    ElseIf RadioButton1.Checked And number = SCISSORS Then
    Label1.Text = "Computer threw Scissors.You Win!!"


    ElseIf RadioButton2.Checked And number = ROCK Then
    Label1.Text = "Computer Threw Rock.You Win!!."
    ElseIf RadioButton2.Checked And number = PAPER Then
    Label1.Text = "Computer threw Paper.Draw."
    ElseIf RadioButton2.Checked And number = SCISSORS Then
    Label1.Text = "Computer threw Scissors.You Lose!"



    ElseIf RadioButton3.Checked And number = ROCK Then
    Label1.Text = "Computer Threw Rock.You Lose."
    ElseIf RadioButton3.Checked And number = PAPER Then
    Label1.Text = "Computer threw Paper.You Win!."
    ElseIf RadioButton3.Checked And number = SCISSORS Then
    Label1.Text = "Computer threw Scissors.Draw!"


    End If

    End Sub
    errors should now be gone. i dont get any.

    Code:
    Public Class Form1
        Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
    
        End Sub
    
    
        Private Sub RadioButton2_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton2.CheckedChanged
    
        End Sub
    
        Private Sub RadioButton3_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton3.CheckedChanged
    
        End Sub
    
        Private Sub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton1.CheckedChanged
            Randomize()
    
            Dim number As Integer
    
            Const ROCK As Integer = 1
            Const PAPER As Integer = 2
            Const SCISSORS As Integer = 3
    
            number = (3 * Rnd())
    
            If RadioButton1.Checked And number = ROCK Then
                Label1.Text = "Computer Threw Rock.Draw."
            ElseIf RadioButton1.Checked And number = PAPER Then
                Label1.Text = "Computer threw Paper. You Lose."
            ElseIf RadioButton1.Checked And number = SCISSORS Then
                Label1.Text = "Computer threw Scissors.You Win!!"
    
    
            ElseIf RadioButton2.Checked And number = ROCK Then
                Label1.Text = "Computer Threw Rock.You Win!!."
            ElseIf RadioButton2.Checked And number = PAPER Then
                Label1.Text = "Computer threw Paper.Draw."
            ElseIf RadioButton2.Checked And number = SCISSORS Then
                Label1.Text = "Computer threw Scissors.You Lose!"
    
    
    
            ElseIf RadioButton3.Checked And number = ROCK Then
                Label1.Text = "Computer Threw Rock.You Lose."
            ElseIf RadioButton3.Checked And number = PAPER Then
                Label1.Text = "Computer threw Paper.You Win!."
            ElseIf RadioButton3.Checked And number = SCISSORS Then
                Label1.Text = "Computer threw Scissors.Draw!"
    
    
            End If
    
        End Sub
       
    End Class
    Your class was messed up. you were declaring stuff before you even had declared the class, and you didn't end the class.

  11. #41
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Chand, watch those double posts please


     


     


     



    The Most complete application MPGH will ever offer - 68%




  12. #42
    Taylor Swift's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Location
    Spangdahlem, Germany
    Posts
    6,438
    Reputation
    357
    Thanks
    651
    My Mood
    Yeehaw
    sorry x____x I get a little un cautious when im pissed...

  13. #43
    XGelite's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Enter text here
    Posts
    1,344
    Reputation
    12
    Thanks
    276
    Quote Originally Posted by Chandman View Post
    new error Im getting the picture now Idk how to fix this either...



    [IMG]https://i104.photobucke*****m/albums/m187/ChandlerLover/Untitled2.png[/IMG]

    You need to start thinking about what these errors mean. They are all self explanatory. Rebuild the project. :P

    Also change the output path to Release. Build the code.
    GoTo the debug folder and move everything out to a folder called Debug_Backup. (you have to make this folder)
    Go back to the debug folder and delete its content.
    Change the output path back to Debug
    Now build and run, it should work now. Thats what ive done, and its worked for me.
    Last edited by XGelite; 02-23-2010 at 08:17 PM.

  14. #44
    Taylor Swift's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Location
    Spangdahlem, Germany
    Posts
    6,438
    Reputation
    357
    Thanks
    651
    My Mood
    Yeehaw
    I did X_____X lol thanks Idk wtf I did wrong... everything works now idk wtf is happening lol I am just imagining what is gonna happen when its me, a computer, A job to do, and the bills rely on this one job and I fk it up lol thats gonna suck cause ill have no-one to turn to x____x
    Btw I actually tried fixing it but I even went into the folders and the AppData wasnt even there so I just restarted lol

  15. #45
    XGelite's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Enter text here
    Posts
    1,344
    Reputation
    12
    Thanks
    276
    Quote Originally Posted by Chandman View Post
    I did X_____X lol thanks Idk wtf I did wrong... everything works now idk wtf is happening lol I am just imagining what is gonna happen when its me, a computer, A job to do, and the bills rely on this one job and I fk it up lol thats gonna suck cause ill have no-one to turn to x____x
    Btw I actually tried fixing it but I even went into the folders and the AppData wasnt even there so I just restarted lol
    Ok i see, im glad its working now.

Page 3 of 6 FirstFirst 12345 ... LastLast

Similar Threads

  1. Rock paper scissor lizard spock
    By Woods in forum General
    Replies: 2
    Last Post: 10-27-2011, 07:05 PM
  2. [Video] [Funny]Rock Paper Balls!
    By Fogest in forum General
    Replies: 8
    Last Post: 10-21-2011, 08:10 PM
  3. [Release]Scissors, rock, paper
    By /b/oss in forum Visual Basic Programming
    Replies: 21
    Last Post: 05-19-2010, 06:19 PM
  4. rock, paper, scissors
    By ace76543 in forum General
    Replies: 5
    Last Post: 12-01-2007, 04:31 PM
  5. In-Depth Tut. to hacking in War Rock (Conc. to Dave)
    By fl0 in forum WarRock - International Hacks
    Replies: 15
    Last Post: 01-18-2006, 02:49 PM