Jump to content

Wtf? Bad argument?


Timic

Recommended Posts

Hello, I saw in debug, it was bad argument. Why O_O?

function checkPlayerOnJoin(player) 
    if not (string.find(getPlayerName(source),"[TAG]")) then 
        redirectPlayer(playerSource, "some ip", tonumber(some port)) --redirect the player 
    end 
end 
addEventHandler("onPlayerJoin", getRootElement(), checkPlayerOnJoin) 

P.S: I put IP and port but anyway, it won't work

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