Jump to content

[HELP] What is wrong with that part of code?


alexxnder

Recommended Posts

  • Moderators

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)

 

  • Like 1
Link to comment
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. :D  (sorry for my eng)

Edited by alexxnder
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...