Quote:
Originally Posted by System64
here is a little function for MySQL
pawn Код:
stock mysql_get_name(playerid) { new mysqlname[MAX_PLAYER_NAME]; mysql_real_escape_string(GetName(playerid), mysqlname); return mysqlname; }
It just make easier than doing mysql_real_escape_string etc. also you will need GetName function !
pawn Код:
stock GetName(playerid) { new pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName, MAX_PLAYER_NAME); return pName; }
|
I can't say it's not useful, but there's no point in escaping characters from the player's name.
On the other hand, if you're using BlueG's MySQL plugin, mysql_format can be used.