Night.Ride Posted January 24, 2011 Share Posted January 24, 2011 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
DakiLLa Posted January 24, 2011 Share Posted January 24, 2011 Show us a full code please, probably the 'source' is the issue. Link to comment
Night.Ride Posted January 24, 2011 Author Share Posted January 24, 2011 function onLogin ( player, user, pass ) local player_ac = getPlayerAccount(source) if not isGuestAccount(player_ac) then local ac_name = getAccountName(player_ac) ... i dont think you need more, do you ? Link to comment
Night.Ride Posted January 24, 2011 Author Share Posted January 24, 2011 oh, thx for pointing at that its now local player_ac = getPlayerAccount(player) but it still telling me the same error's Link to comment
SDK Posted January 24, 2011 Share Posted January 24, 2011 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
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