ยินดีต้อนรับเข้าสู่ jokergameth.com
jokergame
jokergame shop webboard Article Social


Colocation, VPS


joker123


เว็บไซต์เราจะอยู่ไม่ได้หากขาดเขาเหล่านี้ รวมช่วยกันสนับสนุนสปอนเซอร์ของพวกเรา

colocation,โคโลเคชั่น,ฝากเซิร์ฟเวอร์ game pc โหลดเกม pc slotxo Gameserver-Thai.com Bitcoin โหลดเกมส์ pc
ให้เช่า Colocation
รวมเซิฟเวอร์ Ragnarok
Bitcoin

กำลังแสดงผล 1 ถึง 2 จากทั้งหมด 2
  1. #1
    ชอบดูไม่ชอบโพสต์
    วันที่สมัคร
    Nov 2011
    กระทู้
    30
    กล่าวขอบคุณ
    0
    ได้รับคำขอบคุณ: 31

    เกมส์เป่ายิ้งชุบ (ฉบับง่าย)

    สวัสดีครับผมเพิ่งมาบอร์ดนี้เป็นครั้งแรก ขอฝากตัวด้วย เกมส์ง่ายๆๆก่อนแล้วกันนะครับ

    http://www.mediafire.com/?iyy053wxl7ap1p7

    Code *-*
    Autoit3
    โค้ด:
    #include <ButtonConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <WindowsConstants.au3>
    #Region ### START Koda GUI section ### Form=
    Global $a,$b,$mss
    $Form1 = GUICreate("เป่ายิงชุบ", 180, 169, 192, 124)
    $Button1 = GUICtrlCreateButton("ค้อน", 40, 24, 97, 25)
    $Button2 = GUICtrlCreateButton("กระดาษ", 40, 64, 97, 25)
    $Button3 = GUICtrlCreateButton("กรรไกร", 40, 104, 97, 25)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###
    
    While 1
    	$nMsg = GUIGetMsg()
    	Switch $nMsg
    		Case $GUI_EVENT_CLOSE
    			Exit
    		Case $Button1
    			$b=0
    			_prowinlose()
    			MsgBox(64,"ผลลัพธ์",$mss)
    			Case $Button2
    			$b=1
    			_prowinlose()
    			MsgBox(64,"ผลลัพธ์",$mss)
    			Case $Button3
    			$b=2
    			_prowinlose()
    			MsgBox(64,"ผลลัพธ์",$mss)
    	EndSwitch
    WEnd
    
    Func _prowinlose()
    	$mss=""
    	$a=10
    	While $a>2
    	$a=Round(Random(0,3))
    	WEnd
    		if $a=0  Then
            $mss&="คอมพิวเตอร์ใช้ค้อน "
    		ElseIf $a=1  Then
            $mss&="คอมพิวเตอร์ใช้กระดาษ "
    		ElseIf $a=2 Then
            $mss&="คอมพิวเตอร์ใช้กรรไกร "
    		EndIf
    
       if	$a=$b Then
    		$mss&=@CRLF
    		$mss&="ซึ่งคุณเสมอ"
        elseif	$b=1 And $a=0 Then
    		$mss&=@CRLF
    		$mss&="ซึ่งคุณเชนะ"
        elseif $b=2 And $a=1 Then
    	$mss&=@CRLF
    		$mss&="ซึ่งคุณเชนะ"
        elseif $b=0  and $a=2  Then
        $mss&=@CRLF
    		$mss&="ซึ่งคุณเชนะ"
         elseif $a=1 And $b=0  Then
        $mss&=@CRLF
    		$mss&="ซึ่งคุณแพ้"
        elseif $a=2 And $b=1 Then
    		$mss&=@CRLF
    		$mss&="ซึ่งคุณแพ้"
        elseif $a=0 And $b=2 Then
        $mss&=@CRLF
    		$mss&="ซึ่งคุณแพ้"
    		EndIf
    	EndFunc

  2. สมาชิกที่กล่าวขอบคุณ:


  3. #2
    สมาชิกเต็มตัว
    วันที่สมัคร
    Sep 2011
    กระทู้
    22
    กล่าวขอบคุณ
    8
    ได้รับคำขอบคุณ: 8
    นำไปใช้กับ RPG maker ได้มั้ยครับ โค้ดนี้


 

กฎการส่งข้อความ

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Back to top