MySQL
#2

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:
PHP код:
mysql_format(handle_querysizeof(_query), "INSERT INTO `achievements` (`AchID`,`AccountID`,`Username`) VALUES (%d,%d,%s)"ipInfo[playerid][pDBID], pInfo[playerid][pUsername]);
            
mysql_tquery(handle_query); 
Reply


Messages In This Thread
MySQL - by DarkMythHunter - 30.08.2018, 13:15
Re: MySQL - by Shinja - 30.08.2018, 15:04
Re: MySQL - by Eoussama - 30.08.2018, 15:21
Re: MySQL - by Calisthenics - 30.08.2018, 15:26
Re: MySQL - by DarkMythHunter - 01.09.2018, 09:20

Forum Jump:


Users browsing this thread: 1 Guest(s)