Mysql saving problem
#8

I want load my username in my game for /stats and anymore, and i test with save my username in "OnPlayerDisconect" but my username is not saved. even my username is empty in my database.
And finally I know why can not save, because in the game my username does not load.

this is evidence for username in the game does not load.
I use cmd /stats like this:
Код:
CMD:stats(playerid, params[])
{
    if(IsPlayerConnected(playerid))
    {
		new string[200];
		format(string, sizeof(string), "Name: %s | Money: %d | Username: %s ", GetName(playerid), GetPlayerMoney(playerid), PlayerInfo[playerid][pUname]);
		SendClientMessage(playerid ,0xFFFFFFAA, string);
	}
	return 1;
}
and in the game username is nothing.

I'm confused, please help
Reply


Messages In This Thread
Mysql saving problem - by Opeal - 13.11.2015, 19:30
Re: Mysql saving problem - by Ritzy2K - 13.11.2015, 20:19
Re: Mysql saving problem - by Opeal - 13.11.2015, 20:36
Re: Mysql saving problem - by Opeal - 13.11.2015, 20:51
Re: Mysql saving problem - by Ritzy2K - 14.11.2015, 05:31
Re: Mysql saving problem - by Opeal - 14.11.2015, 09:25
Re: Mysql saving problem - by Lczy - 14.11.2015, 09:32
Re: Mysql saving problem - by Opeal - 14.11.2015, 09:48
Re: Mysql saving problem - by Opeal - 14.11.2015, 12:26
Re: Mysql saving problem - by SKAzini - 14.11.2015, 12:34

Forum Jump:


Users browsing this thread: 3 Guest(s)