Jump to content

CertER

Members
  • Posts

    2
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

CertER's Achievements

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody.

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody. (2/54)

0

Reputation

  1. Witam Próbuje napisać skrypt na panel logowania lecz mam pewien problem gdyż odpalam serwer i skrypt się ładuje to nie pokazuje żadnego błędu ani nic podobnego ale w chciałbym zrobić że jak gracz wchodzi na serwer pokazuje mu się okno logowania i tu leży problem że gdy wchodzi się na serwer żadne panel się nie pokazuje. Mam zamiar by ładował się obraz dxDrawImage a nie gui na starcie. Dopiero zaczynam z lua i trochę czytałem o tym ale wiem że coś tu robię źle i prosiłbym o nakierowanie mnie co powinienem zrobić. I jeszcze taki mały problem że czat się nie ukrywa. Przyciski nie mają napisanych jeszcze funkcji itp bo chciałbym najpierw się dowiedzieć czemu obraz się nie pokazuje a czat nie chowa. Kod: function start() showchat(false) start = getTicketCount() addEventHandler ( "onResourceStart", getRootElement(), start ) end GUIEditor = { button = {}, edit = {} } addEventHandler("onPlayerJoin", resourceRoot, panel) function panel() local sWidth,sHeight = guiGetScreenSize() zaloguj = guiCreateButton(sWidth*0.1671428571428571, sHeight*0.7411111111111111, sWidth*0.1821428571428571, sHeight*0.06, "Zaloguj", false) guiSetFont(zaloguj, "sa-header") guiSetProperty(zaloguj, "NormalTextColour", "FF20DECF") button2 = guiCreateButton(sWidth*0.0021428571428571, sHeight*0.09, sWidth*0.1728571428571429, sHeight*0.0855555555555556, "", false, zaloguj) rejestruj = guiCreateButton(sWidth*0.1671428571428571, sHeight*0.8444444444444444, sWidth*0.1821428571428571, sHeight*0.06, "Rejestracja", false) guiSetFont(rejestruj, "sa-header") guiSetProperty(rejestruj, "NormalTextColour", "FF20DECF") editbox1 = guiCreateEdit(sWidth*0.1285714285714286, sHeight*0.6, sWidth*0.2578571428571429, sHeight*0.0511111111111111, "", false) guiSetAlpha(editbox1, 0.99) guiSetProperty(editbox1, "MetricsMode", "Absolute") guiEditSetMasked(editbox1, true) guiEditSetMaxLength ( editBox1, 10 ) editbox2 = guiCreateEdit(sWidth*0.1285714285714286, sHeight*0.3444444444444444, sWidth*0.2607142857142857, sHeight*0.0522222222222222, "", false) guiSetAlpha(editbox2, 0.93) guiEditSetMaxLength ( editBox2, 10 ) end addEventHandler("onPlayerJoin", root, login) function login () local sWidth,sHeight = guiGetScreenSize() local fScreenX, fScreenY = guiGetScreenSize() dxDrawImage(0.5 * fScreenX, 0.5 * fScreenY, 0.5 * fScreenX, 0.5 * fScreenY, "login.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawText("CertER", sWidth*0.105, sHeight*0.1777777777777778, sWidth*0.3735714285714286, sHeight*0.24, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText("Założyciele:", sWidth*0.105, sHeight*0.1155555555555556, sWidth*0.3735714285714286, sHeight*0.1777777777777778, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText("JacobBlyat", sWidth*0.105, sHeight*0.2122222222222222, sWidth*0.3735714285714286, sHeight*0.2744444444444444, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, false, false, false) end Z góry dzięki.
  2. CertER

    Chat Problem

    Hi all. So, I have a problem with global chat in game. On my server only members with acl group Admin, Moderator, SModerator and VIP can use global chat. I don't know why but normal players can't use chat. Need Help. Any Ideas? PS. Please of fast answer. Thanks. -CertER
×
×
  • Create New...