13.04.2011, 09:37
Firstly dont abuse MySQL, I mean its not kid toy...
in way how you format query you can easly brake down your DB, because I bet you everywhere use this style of format, try to use this:
Also I hope you use mysql_real_escape_string(); everywhere where you save strings, also you make a loop where you insert into DB, so what if someon decides to spam your drop cmd, it will hangup your DB
in way how you format query you can easly brake down your DB, because I bet you everywhere use this style of format, try to use this:
pawn Код:
format(query, sizeof query, "INSERT INTO `pickup_weapons` (`pickupid`, `weapid`, `ammo`, `x`, `y`, `z`) VALUES ('%d', '%d', '%d', '%0.3f', '%0.3f', '%0.3f')",