best way to save kills per weapontype in mysql
#1

well,, as the titel says; how can i save kills per weaponid of a user the most efficient?

i have no idea so thats why i am coming here
Reply
#2

What exactly do you mean by weaponid? Do you mean the ID that signifies what weapon was used to kill a player?
Reply
#3

What database system are you using, SQL or Files ?
Reply
#4

Table: userid - weaponid - killed, with userid and weaponid as the composite primary key.

Query to add kills:
PHP код:
INSERT INTO table (useridweaponidkilledVALUES (%d, %d, %dON DUPLICATE KEY UPDATE killed killed + %
Reply
#5

Thank you a lot,
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)