13.10.2011, 12:09
here is a little function for MySQL
It just make easier than doing mysql_real_escape_string etc. also you will need GetName function !
pawn Код:
stock mysql_get_name(playerid)
{
new mysqlname[MAX_PLAYER_NAME];
mysql_real_escape_string(GetName(playerid), mysqlname);
return mysqlname;
}
pawn Код:
stock GetName(playerid)
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
return pName;
}