alexxnder Posted September 7, 2020 Share Posted September 7, 2020 Some images of my code: https://imgur.com/a/NBGSEQK Console error: https://imgur.com/a/YA6uKIL What is wrong with that code? Link to comment
Moderators Patrick Posted September 7, 2020 Moderators Share Posted September 7, 2020 root is not the player's element. You have to use source instead of root, but for this you need to modify triggerServerEvent and set client's element (localPlayer) as event's source instead of getRootElement(). triggerServerEvent("checkPlayerAccount", localPlayer, username, password) 1 Link to comment
alexxnder Posted September 7, 2020 Author Share Posted September 7, 2020 (edited) 24 minutes ago, Patrick said: root is not the player's element. You have to use source instead of root, but for this you need to modify triggerServerEvent and set client's element (localPlayer) as event's source instead of getRootElement(). triggerServerEvent("checkPlayerAccount", localPlayer, username, password) ok thank you, i will watch again at element tree on wiki page. (sorry for my eng) Edited September 7, 2020 by alexxnder Link to comment
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