Jump to content

event problem


Recommended Posts

Hi everyone
I have a problem with my own created event
if i let the server send a number everything works fine but if it is a string it will not work properly hope someone can help with that


        public void OnPlayerLoginAttempt(Client player, string username)

            Client gesuchterspieler = NAPI.Player.GetPlayerFromName(username);
            if (gesuchterspieler != null)
                String SNAME = gesuchterspieler.SocialClubName;


mp.events.add('LoginResult', (name) => {
mp.gui.chat.push("Server hat den namen: "+name+" zurück geschickt");
speedo.execute(`update(${test});`); //  <-- only work with numbers


function update(name)
	function sendinfotoserver(name)
		document.getElementById("spielername").innerHTML = "name: "+name;



Edited by underground475
Link to comment
Share on other sites

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...