****
[ Voor 144% gewijzigd door Verwijderd op 28-04-2006 15:50 ]
'E's fighting in there!' he stuttered, grabbing the captain's arm.
'All by himself?' said the captain.
'No, with everyone!' shouted Nobby, hopping from one foot to the other.
8<------------------------------------------------------------------------------------
Als ik zo door ga haal ik m'n dood niet. | ik hou van goeie muziek
1
2
3
4
5
6
7
8
9
| Dim blnHoldWheel As Boolean Private Sub cmdHoldWheel_Click() blnHoldWheel = not blnHoldWheel End Sub Private Sub Start_Click() If Not blnHoldWheel Then slot1.Picture = LoadPicture(App.Path & "\" & Int(Rnd * 5) + 1 & ".bmp") End Sub |
8<------------------------------------------------------------------------------------
Als ik zo door ga haal ik m'n dood niet. | ik hou van goeie muziek
'E's fighting in there!' he stuttered, grabbing the captain's arm.
'All by himself?' said the captain.
'No, with everyone!' shouted Nobby, hopping from one foot to the other.
Verwijderd
1
2
| String appPath = App.Path & "\" String picExt = ".bmp" |
1
2
3
| int Rol1 = Int(Rnd * 5) + 1 int Rol2 = Int(Rnd * 5) + 1 int Rol3 = Int(Rnd * 5) + 1 |
1
2
3
| slot1.Picture = LoadPicture( appPath & Rol1 & picExt) slot2.Picture = LoadPicture( appPath & Rol2 & picExt) slot3.Picture = LoadPicture( appPath & Rol3 & picExt) |
1
2
3
4
5
6
7
8
9
| if ( Rol1 == Rol2 AND Rol1 == Rol3 ) then String prijs = getPrijs ( Rol1, 3 ) // 3 gelijke symbolen. Amount wordt 3 voor getPrijs functie ................overige code end if if ( Rol1 == Rol2 AND Rol1 != Rol3 ) then String prijs = getPrijs ( Rol1, 2 ) // 2 gelijke symbolen. Amount wordt 2 voor getPrijs functie ................overige code end if |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| Function getPrijs (Rol as String, Amount as int) if ( Rol == 1 ) then if (Amount == 2) then return "500" // Prijzen geld voor 2 bars if (Amount == 3) then return "1500" // Prijzen geld voor 3 bars end if if ( Rol == 2 ) then if (Amount == 2) then return "400" // Prijzen geld voor 2 bellen if (Amount == 3) then return "1250" // Prijzen geld voor 3 bellen end if ENZ..... end function |
[ Voor 31% gewijzigd door mrFoce op 06-04-2006 20:38 ]
Lijkt me een beetje onzinnig. Zie mijn vorige post.Verwijderd schreef op donderdag 06 april 2006 @ 20:32:
Tweede variabele aanmaken met daarin true/false of het de eerste of tweede spin is.
dus:
Als 'eerstespin' = waar dan reset alle holdvariabelen naar false...
else de rest van je verhaal
'E's fighting in there!' he stuttered, grabbing the captain's arm.
'All by himself?' said the captain.
'No, with everyone!' shouted Nobby, hopping from one foot to the other.
Just trying to help.. En dat je 5 rollen heb bleek niet uit de voorbeeld code die je gepost heb..Verwijderd schreef op donderdag 06 april 2006 @ 20:39:
Ok ok, ik snap het nu al wat beter.
Maar gideon
Dit was ik al mee bezig
if ( Rol1 == Rol2 AND Rol1 == Rol3 ) then
String prijs = getPrijs ( Rol1, 3 ) // 3 gelijke symbolen. Amount wordt 3 voor getPrijs functie
alleen dan zonder de
String appPath = App.Path & "\"
String picExt = ".bmp"
Alleen heb ik dus 5 plaatjes, 2 voorbeelden hiervan zijn een kers en een klok
En als je 3 kersen heb krijg je 10x je inzet
en met 3 klokken krijg je 20x je inzet
dus dat rol1 ==Rol2 dat is dan toch niet van toepassing?
dito, zie wel dat je in de start post maar een enkele = gebruikt, wat 'SET' is. Jij wilt de 'equilivent' (of hoe je t ook spelt) hebben wat -> == <- ( gelijk aan) betekendLorn schreef op dinsdag 11 april 2006 @ 20:45:
Ik heb gekeken naar je nieuwe code fragment maar het is me niet duidelijk hoe het zou moeten werken. Ik heb ook het idee dat routines er maar voor de helft staan. Als je een wat duidelijker beeld weet te schetsen van de situatie dan help ik graag verder.
[ Voor 8% gewijzigd door mrFoce op 11-04-2006 21:47 ]
1
2
3
4
5
6
7
8
9
10
11
12
13
| Private Sub Form_Load() intRol1 = Int(Rnd * 5) + 1 intRol2 = Int(Rnd * 5) + 1 intRol3 = Int(Rnd * 5) + 1 Private Sub Prijzen() pKers = (App.Path & "\" & "Pictures/" & "3.bmp") [b]'locatie waar de kers zich bevind'[/b] Private Sub CheckWin() If (intRol1 = pKers And intRol2 = pKers And intRol3 = pKers) Then intWin = intBet * 10 End If End Sub |
1
2
3
4
5
| Private Sub CheckWin() If (intRol1 = intRol2 And intRol2 = intRol3) Then intWin = intBet * fruitObjects[intRol1].getMultiplier() End If End Sub |
[ Voor 5% gewijzigd door NetForce1 op 11-04-2006 22:49 ]
De wereld ligt aan je voeten. Je moet alleen diep genoeg willen bukken...
"Wie geen fouten maakt maakt meestal niets!"
in VB6 is het inderdaad maar 1 =.. foutje van mijVerwijderd schreef op woensdag 12 april 2006 @ 00:14:
Hallo
Dit is dus mijn start.command code (vergeten te editten)
code:
1 2 3 4 5 6 7 Private Sub Start_Click() Randomize If Not blnHold1 And Not blnCheat Then slot1.Picture = LoadPicture(App.Path & "\" & "Pictures/" & intRol1 & ".bmp") If Not blnHold2 And Not blnCheat Then slot2.Picture = LoadPicture(App.Path & "\" & "Pictures/" & intRol2 & ".bmp") If Not blnHold3 And Not blnCheat Then slot3.Picture = LoadPicture(App.Path & "\" & "Pictures/" & intRol3 & ".bmp")
en
[...]
als ik If (intRol1 == intRol2) deed gaf hij het rood aan, dus heb ik er 1 = van gemaakt.
Ik ben geen professional in visual basic en dat is volgens mij ook wel te merken, maar ik heb toch al verschillende dingen geprobeerd en kom er gewoon niet uit.
1
2
3
4
| Randomize() If blnHold1 = false And blnCheat = false Then slot1.Picture = LoadPicture(App.Path & "\" & "Pictures/" & intRol1 & ".bmp") If blnHold2 = false And blnCheat = false then slot2.Picture = LoadPicture(App.Path & "\" & "Pictures/" & intRol2 & ".bmp") If blnHold3 = false And blnCheat = false Then slot3.Picture = LoadPicture(App.Path & "\" & "Pictures/" & intRol3 & ".bmp") |
[ Voor 16% gewijzigd door mrFoce op 12-04-2006 00:48 ]
[ Voor 116% gewijzigd door RobIII op 12-04-2006 02:49 ]
There are only two hard problems in distributed systems: 2. Exactly-once delivery 1. Guaranteed order of messages 2. Exactly-once delivery.
Je eigen tweaker.me redirect
Over mij
Apple iPhone 17 LG OLED evo G5 Google Pixel 10 Samsung Galaxy S25 Star Wars: Outlaws Nintendo Switch 2 Apple AirPods Pro (2e generatie) Sony PlayStation 5 Pro
Tweakers is onderdeel van
DPG Media B.V.
Alle rechten voorbehouden - Auteursrecht © 1998 - 2026
•
Hosting door TrueFullstaq