29.09.2016, 17:19
Код:
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."); }
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);