fú veď toto už sa s tým trápim odkedy som to napísal a nejak to neviem vôbec vyriešiť preto som chcel napísať sem pre celý program
EDIT: : Popravde mám toto hotové a musím sa toho drzať... plus mám spravený prikaz pre button "Hra" a ten je :
Kód: Vybrať všetko
var vylosovane:integer;
procedure TForm1.Button3Click(Sender: TObject);
begin
image1.Canvas.Brush.color:= clwhite;
image1.canvas.fillrect(image1.clientrect);
vylosovane := random(15)+1;
if vylosovane = 1 then begin image1.canvas.textout(10,350,'1');
image1.canvas.textout(10,370,'čierna');
end;
if vylosovane = 2 then begin image1.canvas.textout(10,350,'2');
image1.canvas.textout(10,370,'červená');
end;
if vylosovane = 3 then begin image1.canvas.textout(10,350,'3');
image1.canvas.textout(10,370,'čierna');
end;
if vylosovane = 4 then begin image1.canvas.textout(10,350,'4');
image1.canvas.textout(10,370,'červená');
end;
if vylosovane = 5 then begin image1.canvas.textout(10,350,'5');
image1.canvas.textout(10,370,'čierná');
end;
if vylosovane = 6 then begin image1.canvas.textout(10,350,'6');
image1.canvas.textout(10,370,'červená');
end;
if vylosovane = 7 then begin image1.canvas.textout(10,350,'7');
image1.canvas.textout(10,370,'čierna');
end;
if vylosovane = 8 then begin image1.canvas.textout(10,350,'8');
image1.canvas.textout(10,370,'červená');
end;
if vylosovane = 9 then begin image1.canvas.textout(10,350,'9');
image1.canvas.textout(10,370,'čierna');
end;
if vylosovane = 10 then begin image1.canvas.textout(10,350,'10');
image1.canvas.textout(10,370,'červená');
end;
if vylosovane = 11 then begin image1.canvas.textout(10,350,'11');
image1.canvas.textout(10,370,'čierna');
end;
if vylosovane = 12 then begin image1.canvas.textout(10,350,'12');
image1.canvas.textout(10,370,'červená');
end;
if vylosovane = 13 then begin image1.canvas.textout(10,350,'13');
image1.canvas.textout(10,370,'čierna');
end;
if vylosovane = 14 then begin image1.canvas.textout(10,350,'14');
image1.canvas.textout(10,370,'červená');
end;
if vylosovane = 15 then begin image1.canvas.textout(10,350,'15');
image1.canvas.textout(10,370,'čierna');
end;
end;
ešte to musím načítať na farby, na číslo a na vklad ale nejak mi to furt nejde
