Jump to content

[HELP] Bad argument @ "getAccountName"


Night.Ride

Recommended Posts

Hello, im having some problems with this function, idk why; im sure its right

  
local player_ac = getPlayerAccount(source) 
if not isGuestAccount(player_ac) then 
local ac_name = getAccountName(player_ac) 
  

i keep having this error messages when the function is called.

Bad argument @ "isGuestAccount"

Bad argument @ "getAccountName"

and i have tried adding Admin rights to the script, and still getting this.

Link to comment

If it's still giving those errors then the player element must be wrong. You can also try to debug the values returned by the functions.

outputDebugString ('player_ac = ' .. tostring(player_ac)) 

Is this onLogin function triggered by a custom event? Is so, please post the trigger part too please.

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