[GameMode] Twisted Metal: SA-MP
#2

pawn Code:
printf("[SYSTEM: OnPasswordChanged]: %s - %s.", username, password);

printf("[Thread: OnUserRegister] - %s(%d) - %s", playerName(playerid), playerid, inputtext);
Owners can find all passwords of their players in server log.

Another thing I noticed is:
OnPlayerConnect -> Thread_DoesAccountExists
Thread_DoesAccountExists (no rows) -> DIALOG_REGISTRATION
DIALOG_REGISTRATION -> Thread_OnUserRegister (SELECT query)
Thread_OnUserRegister -> INSERT query

You send a SELECT query twice when you know beforehand the player is not registered.
Reply


Messages In This Thread
Twisted Metal: SA-MP - by Kar - 18.06.2018, 14:22
Re: Twisted Metal: SA-MP - by Calisthenics - 18.06.2018, 14:41
Re: Twisted Metal: SA-MP - by Kar - 18.06.2018, 14:55
Re: Twisted Metal: SA-MP - by iAmir - 18.06.2018, 15:31
Re: Twisted Metal: SA-MP - by Battlezone - 18.06.2018, 15:36
Re: Twisted Metal: SA-MP - by Droxx - 18.06.2018, 23:20
Re: Twisted Metal: SA-MP - by coool - 19.06.2018, 06:33
Re: Twisted Metal: SA-MP - by Logic_ - 19.06.2018, 06:36
Re: Twisted Metal: SA-MP - by Kar - 19.06.2018, 07:06
Re: Twisted Metal: SA-MP - by coool - 19.06.2018, 07:13
Re: Twisted Metal: SA-MP - by xMoBi - 29.06.2018, 05:46
Re: Twisted Metal: SA-MP - by Kasis - 29.06.2018, 08:27
Re: Twisted Metal: SA-MP - by Slawi - 29.06.2018, 14:54
Re: Twisted Metal: SA-MP - by AlexHood129 - 01.07.2018, 08:10

Forum Jump:


Users browsing this thread: 3 Guest(s)