Jump to content

papam77

Members
  • Posts

    517
  • Joined

  • Last visited

Everything posted by papam77

  1. As you told me in PM: Write to thread. So okay. I need with string.find, find gamemode race for lobby. How can do that ?
  2. Wrong, it doesn't return true if it found a match. lua.org quote: I really don't know now How can add it for any gamemode or script ?
  3. so i can use it for finding gamemode, script and something like this ?
  4. Hey guys, i was reading lua.org with function string.find I was reading it again, again and again but i still don't know how to use it...
  5. And string.find is server side or client ?
  6. ok, Thank you Btw: You can make lobby and how long you are learning to script ? Only ask
  7. It's not easy ? No it's not easy to make something like a "FFS Gaming" or "TG Gaming" ..etc You must be a good scripter. And how can teach it good and fast ? Some tips ? How you started with lua ?
  8. string.find ("gamemode", "race" ) This ?
  9. And what i must do now for move to gamemode DM from gamemode lobby ?
  10. but Why i am not in gamemode DM ?
  11. yes, output i see in chat *Data True
  12. GUIEditor = { button = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.button[1] = setElementData, guiCreateButton ("onClientGUIClick", 0.44, 0.31, 0.15, 0.24, "", true, player,"gamemode","deathmatch",true) end ) And now i can't see button
  13. Now GUIEditor = { button = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.button[1] = setElementData, guiCreateButton (0.44, 0.31, 0.15, 0.24, "",true, player,"gamemode","deathmatch",true) end ) I added but still nothing
  14. Hey, i have gamemode called [lobby] and i made functions for move to next gamemode called [race] GUIEditor = { button = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.button[1] = guiCreateButton(0.44, 0.31, 0.15, 0.24, "", true, player,"gamemode","race",true) end ) Why it can't join to race ?
  15. Hello why i don't see my image in center ? Here is code ------------------------------------------------- -- Buttons ------------------------------------------------- addEventHandler("onClientResourceStart", resourceRoot, function() end ) function RelativeToAbsolute( X, Y ) rX, rY = guiGetScreenSize() local x = X*rX local y = Y*rY return x, y end addEventHandler("onClientRender",getRootElement(), function( ) local x,y = RelativeToAbsolute(0.00, -0.00) dxDrawImage(rX, rY,300,300,"img/dm.png", 0, 0, 0, tocolor(255, 255, 255, 255), "center", "center", true) end )
  16. Error: ')' expected near ';' ------------------------------------------------- -- Texts ------------------------------------------------- addEventHandler("onClientResourceStart", resourceRoot, function() end ) function RelativeToAbsolute( X, Y ) rX, rY = guiGetScreenSize() local x = X*rX local y = Y*rY return x, y end addEventHandler("onClientRender",getRootElement(), function( ) local x,y = RelativeToAbsolute(0.00, -0.90) dxDrawText("Choose an arena",x,y,rX, rY, tocolor(255, 255, 255, 255), 2.50, "bankgothic", "center", "center", false, false, true, false, false) dxDrawText( "No. of players online: " .. tostring( #getElementsByType( "player" ) , 10, 300 ); end ) I wanna add this text to Choose an arena but on down monitor side
  17. Hello, how can make getPlayerCount in dx ?
  18. Still looks with big differents http://www.upload.ee/image/3271555/1024x768.png
  19. Error '<eof>' expected near 'end' line 27 Full LUA code ------------------------------------------------- -- Bind Key ------------------------------------------------- bindKey("F1", "down", toggleLobbyWindow) ------------------------------------------------- -- Components ------------------------------------------------- showCursor ( true ) showChat ( true ) showPlayerHudComponent ( source, "ammo", false ) showPlayerHudComponent ( source, "weapon", false ) ------------------------------------------------- -- Background and Images ------------------------------------------------- addEventHandler("onClientResourceStart", resourceRoot, function() end ) local x,y = RelativeToAbsolute(x,y) rX, rY = guiGetScreenSize() local x = X*rX local y = Y*rY return x, y end addEventHandler("onClientRender",getRootElement(), function( ) local x,y = RelativeToAbsolute(0.00, -0.90) dxDrawImage(0, 0, 1920, 1080, "img/lobby-bg.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) end ) ------------------------------------------------- addEventHandler("onClientResourceStart", resourceRoot, function() end ) function RelativeToAbsolute( X, Y ) rX, rY = guiGetScreenSize() local x = X*rX local y = Y*rY return x, y end addEventHandler("onClientRender",getRootElement(), function( ) local x,y = RelativeToAbsolute(0.00, -0.90) dxDrawText("Choose an arena",x,y,rX, rY, tocolor(255, 255, 255, 255), 2.50, "bankgothic", "center", "center", false, false, true, false, false) end ) ------------------------------------------------- -- Buttons ------------------------------------------------- addEventHandler("onClientResourceStart", resourceRoot, function() end ) addEventHandler("onClientRender",getRootElement(), function( ) dxDrawImage(100, 100, 300, 300, "img/dm.png", 0, 0, 0, tocolor(255, 255, 255, 200), true) end )
  20. Background isn't relative because i can't make relative in dx
  21. http://www.upload.ee/image/3270718/gta_sa_2013-04-28_16-26-05-19.png 1024x768 http://www.upload.ee/image/3270726/LikeApro.png 1920x1080
×
×
  • Create New...