SA-MP Forums Archive
Statistics... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Statistics... (/showthread.php?tid=327602)



Statistics... - Edvin - 21.03.2012

Hi all

I putted my all gamemode on SQLite and i have a problem. If i joins on server with another name, what is registred, etc ... my owner statistics are transfered on that player what i joined. What can be the problem?


Re: Statistics... - Bogdan1992 - 21.03.2012

You need to set the players info variables to 0 when he connects on server.

Ex
PlayerInfo[playerid][admin] = 0; //Add this at OnPlayerConnect
etc.


Re: Statistics... - Edvin - 21.03.2012

Yes, i know ... i have all variables to 0 when a player connects.


Re: Statistics... - Bogdan1992 - 21.03.2012

Hmm, change your IP and then register another account.


Re: Statistics... - Edvin - 22.03.2012

Is not that ... if i login with my account, and after i join the server with another name, that name which i joined have all my owner statistics ...

PS. - Sorry for my bad english.


Re: Statistics... - DBan - 22.03.2012

So, then it must recognize your IP address and automatically log you in.

Did you register a new account when you re-joined with another name?


Re: Statistics... - Bogdan1992 - 22.03.2012

Did you changed your IP? From where do you have the login system?


AW: Statistics... - Tigerkiller - 22.03.2012

post OnPlayerConnect and OnPlayerDisconnec so we can help you