Mysql problem
#1

Код:
if(playertextid == GreenButton) {
		if(strlen(InputtText[playerid]) < 4) return 1;
		if(strlen(PlayerInfo[playerid][pPin]) == 1) {
			format(PlayerInfo[playerid][pPin], 5, InputtText[playerid]);
			format(szQuery, sizeof(szQuery), "UPDATE `users` SET `Pin`='%s' WHERE `Name`='%s'", PlayerInfo[playerid][pPin], PlayerInfo[playerid][pNormalName]);
			mysql_query(SQL, szQuery);
			SendClientMessage(playerid, -1, "{FFFF45}Ai setat codul de securitate al contului.");
		}
Why is this not working? The Pin is not saving.

The table is not made by me, I searched 'Pin' in the users mysql table and there is no field for that, how can I add one for all new users that register.. didn't really work with mysql until today.

I also found this and I am not sure what is it
Код:
PlayerInfo[playerid][pPin] = cache_get_field_content(0, "Pin", string);
Reply


Messages In This Thread
Mysql problem - by AndreiWow - 29.09.2016, 17:19
Re: Mysql problem - by Vince - 29.09.2016, 17:23
Re: Mysql problem - by AndreiWow - 29.09.2016, 17:33
Re: Mysql problem - by AndreiWow - 29.09.2016, 17:38
Re: Mysql problem - by AndreiWow - 30.09.2016, 12:40

Forum Jump:


Users browsing this thread: 2 Guest(s)