Save player stats
#3

You don't provide the line of the error though so I will just assume that is:
pawn Код:
if(Logged[playerid] == true)
because "Logged" does not have "bool:" tag on its declaration. Change "true" to "1".

Another issue and probably the most important is that that piece of code will only try to save for the player with ID 0. You declare "playerid" which is by default 0 inside the public function when it should have been a parameter. Calling it with the parameter as well.
Reply


Messages In This Thread
Save player stats - by CSLangdale - 31.05.2016, 15:42
Re: Save player stats - by ilijap - 31.05.2016, 15:47
Re: Save player stats - by Konstantinos - 31.05.2016, 16:05
Re: Save player stats - by CSLangdale - 31.05.2016, 16:09
Re: Save player stats - by Konstantinos - 31.05.2016, 16:21
Re: Save player stats - by Rubey - 31.05.2016, 17:26

Forum Jump:


Users browsing this thread: 2 Guest(s)