MySQL weapon shop system (question about massive columned table)
#6

use a table for weapons:

PHP код:
CREATE TABLE player_weapons (
  
id INT NOT NULL AUTO_INCREMENT,
  
player INT,
  
weapon TINYINT,
  
ammo INT,
  
PRIMARY KEY (playerweapon),
  
CONSTRAINT FOREIGN KEY (playerREFERENCES my_playerid_table(idON DELETE CASCADE
); 
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)