Help getting something of DB.
#1

How i get the register IP from database? I use a_mysql.

pawn Код:
case 3:
{
if(response) {
new name[MAX_PLAYER_NAME], solicitud[254];
GetPlayerName(playerid, name, sizeof(name));
format(solicitud, sizeof(solicitud), "SELECT IP FROM usuarios WHERE usuario = '%s'",name);
mysql_query(mysql, solicitud);
new int_dest = cache_get_data();
new string[254];
format(string, sizeof(string), "Tъ IP de registro fue: %s", int_dest);
SendClientMessage(playerid, -1, string);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)