30.08.2018, 15:04
Add a variable where you store the database ID when the player connects, for example pInfo[playerid][pDBID]
Then you can use it like this:
Then you can use it like this:
PHP код:
mysql_format(handle, _query, sizeof(_query), "INSERT INTO `achievements` (`AchID`,`AccountID`,`Username`) VALUES (%d,%d,%s)", i, pInfo[playerid][pDBID], pInfo[playerid][pUsername]);
mysql_tquery(handle, _query);

