papam77
Members-
Posts
517 -
Joined
-
Last visited
Everything posted by papam77
-
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 ?
-
Thank you ^^
-
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 ?
-
so i can use it for finding gamemode, script and something like this ?
-
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...
-
And string.find is server side or client ?
-
ok, Thank you Btw: You can make lobby and how long you are learning to script ? Only ask
-
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 ?
-
string.find ("gamemode", "race" ) This ?
-
And what i must do now for move to gamemode DM from gamemode lobby ?
-
but Why i am not in gamemode DM ?
-
yes, output i see in chat *Data True
-
I never made buttons
-
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
-
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
-
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 ?
-
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 )
-
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
-
Hello, how can make getPlayerCount in dx ?
-
Still looks with big differents http://www.upload.ee/image/3271555/1024x768.png
-
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 )
-
Background isn't relative because i can't make relative in dx
-
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
