Father0625 Posted August 13, 2023 Posted August 13, 2023 Hello guys.. Uuhm yeah, so my english is not the best, but i hope u will understand what i want to.. So im making a register / login script to my server. I want to do, when a player pressed in the user, password and emal, click to 'Register' button, a Server Event start and check the sql the username is free nad other things, then register the player etc u know.. The problem is, my server says "The event is not added to server side". https://prnt.sc/meNm5mQqnBSd What is the problem? Thanks for your help! Client side: function regClick() local checkC = isMouseWithinRangeOf(screenWidth/2 - 145, screenWidth/15, 780, 40) -- start x, width, start y, height if checkC then triggerServerEvent("player_regin", root, user, pass, mail) end end Server side (the event): addEvent("player_regin", true) addEventHandler("player_regin", root, function(user, pass, mail) outputChatBox ( user" "..pass.." "..mail, player, 255, 0, 0,) end) meta.xml: <meta> <script src = "Join/Checkplayer.lua" type = "server"/> <script src = "Join/Connect.lua" type = "server"/> <script src = "Join/Register.lua" type = "client"/> <script src = "Join/Login.lua" type = "client"/> <file src="Join/images/snev.png" /> <file src="Join/images/icon_fhnev.png" /> <file src="Join/images/icon_jelszo.png" /> <file src="Join/images/icon_email.png" /> </meta> I found it sorry, can delet or something Im idiot.
Moderators IIYAMA Posted August 13, 2023 Moderators Posted August 13, 2023 24 minutes ago, Father0625 said: outputChatBox ( user" "..pass.." "..mail, player, 255, 0, 0,) Not sure if it is related, but there are missing some .. after the variable user: outputChatBox ( user .. " " .. pass .. " " .. mail, player, 255, 0, 0,) 24 minutes ago, Father0625 said: Server side (the event): This code is located in Checkplayer.lua or Connect.lua? Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now