Jump to content

Bad "Client" Pointer Problem


ArmedGuy

Recommended Posts

Yeah, so when someone logs in to their account i want to retrive their name/account name, but if i use this code:

function onPlayerJoin ( source )
if ( saveFile ) then
local sourcename = getClientName( source )
 
addEventHandler("onClientLogin", getRootElement(), onPlayerJoin)

i get this error:

ERROR: Line Blabla: Bad "Client" Pointer @ getClientName

anyone know why?

Link to comment
There are two ends missing there...

I guess he just posted a piece of his code. If he has error:

ERROR: Line Blabla: Bad "Client" Pointer @ getClientName

That means the script has ran but failed when calling getClientName. When you forget about ends you get unexpected symbol near ''.

Link to comment

Sorry for bumping, but, does the skin and money of a player get reset if you use the command spawnPlayer? as the script(which is a playerstats script loads the data sucessfully, also when the screens faded out, but then when i use a inbuilt command, /spawn, it goes back to regular CJ and no money

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