slapz0r

Members
  • Content Count

    31
  • Joined

  • Last visited

Community Reputation

1 Neutral

About slapz0r

  • Rank
    Rat

Recent Profile Visitors

42 profile views
  1. slapz0r

    REG. New field

    I use standard internal.db When a player registers, how to add a new field to the database? a new field there with the name TEST and have the properties of true and false
  2. slapz0r

    setTimer

    У меня есть два окна, после того как на первом окне нажимаешь кнопку отрисовывается второе окно, на котором изначально кнопка имеет свойство SetEnabled(false) , я сделал функцию спустя 2 секунды кнопка имеет свойство SetEnabled(true) , НО это только с момента старта скрипта, а мне нужно сделать так что бы этот таймер срабатывал после нажатия на кнопку на первом окне, как это сделать? setTimer( function() DGS:dgsSetEnabled ( buttAC2, true ) end, 2000, 1, root, source )
  3. slapz0r

    setTimer

    I have two windows, after the button is pressed on the first window , a second window starts to appear which has a button with the property (SetEnabled(false)) I made a function that after 2 seconds makes this property true BUT it works only after the start of the script How can I make this timer work after pressing the button on the first window? setTimer( function() DGS:dgsSetEnabled ( buttAC2, true ) end, 2000, 1, root, source )
  4. slapz0r

    checkBoxGetSelected

    Вопрос решен.
  5. slapz0r

    checkBoxGetSelected

    I solved this question, thanks for the answers.
  6. slapz0r

    checkBoxGetSelected

    If you just select (v11) open window6 - it's fine if you just select (v12) nothing happens ( need open window6) if you just select (v13) open window6 - it's fine if you just select (v14) nothing happens (need open window6) if you just select (v11 and v12) nothing happens(need open window6) if you just select (v11 and v13) open window6 - it's fine if you just select (v11 and v14) nothing happens(need open window6) if you select (v11 and v12 and v14) open window5 - and it is necessary that only when selected only (v12 and v14) Maybe I did not put it exactly what I want, but can you help me with this? and if none of the checkboxes are selected - open windows6 how to do it?
  7. if source == bv2 then if DGS:dgsCheckBoxGetSelected(v12,true) then if DGS:dgsCheckBoxGetSelected(v14,true) then window5 = DGS:dgsCreateWindow((sw-424)/2,(sh-363)/2,400,200,"+",false) else if DGS:dgsCheckBoxGetSelected(v12,false) then else if DGS:dgsCheckBoxGetSelected(v14,false) then window6 = DGS:dgsCreateWindow((sw-424)/2,(sh-363)/2,400,200,"-",false) bv2 - кнопкаУ меня есть 4 чекбокса (v11,v12,v13,v14) Когда игрок нажимает на чекбоксы (v12 и v14) открывается окно5(это я сделал), но мне еще нужно когда чекбоксы не выбраны вообще тогда открывается окно6. Я имею ввиду еще такие примеры (когда выбран чекбокс v11 и v14 - открывается окно6, или выбран v12 и v13 также открывается окно6, и так далее) , но когда выбраны чекбосы (v12 и v14) открывается окно5.Как мне правильно сделать? Что то я не шарю. Первая часть кое как работает, а вторая нет. Я использую DGS(https://wiki.multitheftauto.com/wiki/Resource:Dgs) , но можно и пример на обычном CEGUI. Помогите.Я использовал еще код таким образом, вторая часть (elseif) все равно не работает должным образом if source == bv2 then if DGS:dgsCheckBoxGetSelected(v12,true) and DGS:dgsCheckBoxGetSelected(v14,true) then window5 = DGS:dgsCreateWindow((sw-424)/2,(sh-363)/2,400,200,"+",false) elseif DGS:dgsCheckBoxGetSelected(v12,false) and DGS:dgsCheckBoxGetSelected(v14,false) then window6 = DGS:dgsCreateWindow((sw-424)/2,(sh-363)/2,400,200,"-",false) end end
  8. slapz0r

    checkBoxGetSelected

    for v12 and v14 - true it's work fine but for elseif DGS:dgsCheckBoxGetSelected(v12,false) and DGS:dgsCheckBoxGetSelected(v14,false) then window6 = DGS:dgsCreateWindow((sw-424)/2,(sh-363)/2,400,200,"-",false) didn't work
  9. slapz0r

    checkBoxGetSelected

    if source == bv2 then if DGS:dgsCheckBoxGetSelected(v12,true) then if DGS:dgsCheckBoxGetSelected(v14,true) then window5 = DGS:dgsCreateWindow((sw-424)/2,(sh-363)/2,400,200,"+",false) else if DGS:dgsCheckBoxGetSelected(v12,false) then else if DGS:dgsCheckBoxGetSelected(v14,false) then window6 = DGS:dgsCreateWindow((sw-424)/2,(sh-363)/2,400,200,"-",false) bv2 - button There are 4 checkboxes .(v11,v12,v13,v14) When a player chooses checkboxes(v12 and v14) window5 open(it's fine) but i need when this checkboxes not selected then windows6 show. I mean (example you select v11 and v14 - window6 will be show or select v12 and v13 also window6 will be show or noone checkbox selected - windows6 will be show and etc) but when select v12 and v14 window5 will be open. How it's work? The first part works fine but second didn't work. I use dgs. https://wiki.multitheftauto.com/wiki/Resource:Dgs You can explain the example of CEGUI if can't on dgs.
  10. slapz0r

    checkbox

    Yes, I know how to call a message, I mean how to write the correct code, with checkboxes How to correctly implement in code so that the correct answers of checkboxes from two windows?
  11. slapz0r

    checkbox

    hello! example: i have 2 windows with checkbox On each window 4 checkboxes. Only 1 checkbox with the correct answer for each window(a total of 2 correct checkboxes for two windows together). Total checkboxes 8 for two windows. So.. On the first window, the correct answer will be checkbox number 3. In the second window, the correct answer will be checkbox number 1. How do I make it so that if a player chooses the wrong checkboxes, a message would appear "You answered wrong" , If the player answered correctly "Congratulations you answered correctly"
  12. slapz0r

    GUI MEMO. HELP

    I use your code (0.5,0.5,0.2,0.2). How to get the center point for 1920/1080 resolution. The window is not centered with that coordinates done.
  13. slapz0r

    GUI MEMO. HELP

    How can I use this to, for example, optimize resolutions? Here are some strange numbers of coordinates Example: ruless = DGS:dgsCreateWindow(0.31,0.38,0.382,0.40,"Правила",true) There are small numbers of coordinates and I do not quite understand how it works. If in a normal window I had coordinates, for example (300,300,300,300) but here (0.31, 0.38, 0.382, 0.40) For normal windows I used optimization like that: local sW, sH = guiGetScreenSize() ((sW/2)-(300/2),(sH/2)-(300/2),300,300) I tried to do the same with the new coordinates like this (0.31,0.38,0.382,0.40) but the window disappeared or gone beyond screen radius. How it works ? Because I ran into problems at different screen resolutions.
  14. slapz0r

    GUI MEMO. HELP

    memos = guiCreateMemo(15, 20, 370, 130,"Hello How are you?Hello How are you?Hello How are you?Hello How are you?Hello How are you?",false,ruless) See the end of the line - Hello How are you? He(and the rest of the word has gone beyond the region). How to fix it?
  15. slapz0r

    pickup on key

    up