Weapon saving
#5

So it would be like:

PHP код:
mysql_format(mysqlquerysizeof(query), "INSERT INTO weapons VALUES (%d, %d, %d) ON DUPLICATE KEY UPDATE Slot=%d"PlayerInfo[playerid][pID], weaponidammo,  i); 
Then to the select part like that:

PHP код:
mysql_format(mysqlquerysizeof(query), "SELECT Weaponid, Ammo, Slot FROM weapons WHERE Userid=%d"PlayerInfo[playerid][pID]);
    
mysql_tquery(mysqlquery"OnPlayerLoadWeapons""i"playerid); 
OR

that :

PHP код:
mysql_format(mysqlquerysizeof(query), "SELECT Ammo, Slot FROM weapons WHERE Userid=%d"PlayerInfo[playerid][pID]);
    
mysql_tquery(mysqlquery"OnPlayerLoadWeapons""i"playerid); 
Reply


Messages In This Thread
Weapon saving - by vernz - 08.05.2016, 06:53
Re: Weapon saving - by PrO.GameR - 08.05.2016, 10:07
Re: Weapon saving - by vernz - 08.05.2016, 14:37
Re: Weapon saving - by PrO.GameR - 08.05.2016, 14:43
Re: Weapon saving - by vernz - 08.05.2016, 14:48
Re: Weapon saving - by vernz - 08.05.2016, 14:52
Re: Weapon saving - by PrO.GameR - 08.05.2016, 19:48
Re: Weapon saving - by vernz - 08.05.2016, 20:40

Forum Jump:


Users browsing this thread: 1 Guest(s)