-
Posts
642 -
Joined
-
Last visited
Posts posted by Lloyd Logan
-
-
on line 2, try chaning "GUIEditor.window[2]" to "GUIEditor.window[3]"
and in triggerClientEvnet, you should just trigger it for the player, not all of the players.
Thanks for the triggerClientEvent, i'll change that! But, the real problem was addEventHandler, when it should have bee addEvent!
Oh my bad, I didn't see that error.
Such simple things! Thanks again
-
on line 2, try chaning "GUIEditor.window[2]" to "GUIEditor.window[3]"
and in triggerClientEvnet, you should just trigger it for the player, not all of the players.
Thanks for the triggerClientEvent, i'll change that! But, the real problem was addEventHandler, when it should have bee addEvent!
-
Why does this say there is no text in the editbox even if there is?
function checkRegField() inputusernamereg = guiGetText(GUIEditor.edituserreg) inputpasswordreg = guiGetText(GUIEditor.editpassreg) if inputusernamereg or inputpasswordreg == "" then guiSetVisible (GUIEditor.window[2], true ) guiBringToFront ( GUIEditor.window[2] ) else triggerServerEvent("submitRegister", getRootElement(), inputusernamereg, inputpasswordreg) end end
-
Sorry, I should've been more specific, line 9 should be triggered to show, but line 2 should be triggered to hide!
-
Why isn't this closing the GUI?
SERVER
function submitReg() dbExec(server, "CREATE TABLE IF NOT EXISTS accounts (accountname TEXT, password TEXT)") new = dbExec(server, "INSERT INTO accounts VALUES (accountname, password)", inputusernamereg, inputpasswordreg) output = outputChatBox("You have successfully created an account!") if new == true then triggerClientEvent("closedok", getRootElement()) triggerClientEvent("onErrorok", getRootElement()) end end addEvent( "submitRegister", true ) addEventHandler( "submitRegister", root, submitReg )
CLIENT
function onErrorOk() guiSetVisible (GUIEditor.window[2], false) end addEventHandler("onErrorok", true) addEventHandler("onErrorok", getRootElement(), onErrorOk) function closeSuccess() guiSetVisible (GUIEditor.window[3], true ) end addEventHandler("closedok", true) addEventHandler("closedok", getRootElement(), closeSuccess)
Thanks
-
-
-
-
-
-
I can't see the event onClientGUIClick in your code.
Thanks for your time, I've have fixed it!
-
Your code is correct.
Hmm, It is not showing the GUI when the register button is pressed, any ideas?
-
Hey,
So from my experience with Java, if a field is empty it equals to
null
.
So, if I want to check if an edit box has no letters/words in it, how would i go about it? So far i got;
function checkRegField() inputusername = guiGetText(editusername) if inputusername == "" then guiSetVisible (GUIEditor.window[2], not guiGetVisible ( GUIEditor.window[2] ) ) end end
Thanks
Lloyd
-
EXPIRED
-
Updated computers can't be compared to those from six months ago. Technology is changing so fast, before you know we're able to run servers on computers the size of your ID. I'm not trying to be butthurt but wont this affect your internet aswel ?
Nah, my Internet is fine.
-
i am creating my first script and i got a problem i scripted a gui appears when i hit the marker and its appear and scripted the exit button and it hide the gui but when i hit the marker again it doesn't appear again unless i restart the resource .....Help please
Could you either, post your code here, or PM it to me!
-
How to create my own custom MtA SA GUI interface?
You mean edit the .img or using the GUI creator?
-
Are you still offering free hosting?
Yeah
-
You must be definitely mad to host a server platform on a laptop.
Mad I may be, but I have a no complaints about it yet, so all is good for now!
-
Lloyd Logan
Thank you very, Highly appreciate that
Anytime!
-
Hello,
I'm new to this forum and I want some helps from you guys. I want to add some colorful banner line to bottom of screen and view custom messages like " Respect others" "don't insult others". any one have script, resources for this ? Thanks in advance
dxDrawText
If you are a scripter.
or
create it using this https://community.multitheftauto.com/index.php?p= ... ils&id=141
Thanks
-
I would add you but I barely go on skype anymore
Probably when I get myself a computer, then me and you could skype
Sounds good mate!
-
I don't think that the script makes much sens, The stat of the player will allways be 0 on join !!
Yeah, he will have to
getAccountData
then
setAccountData
!
-
The Algerian & Tunisian not arabic language.
But he said who know for SQL
I will go now, but I didn't know that language had numbers in it?
Not really, some words that WE have doesn't exist at the English/latin alphabet, so we use numbers instead.
Aha, you learn something new everyday! Oh, better get out of this section! Before i am حذر
Editbox
in Scripting
Posted · Edited by Guest
It works! But, can you explain