28.07.2012, 10:57
pawn Код:
new Query[256],pName[MAX_PLAYER_NAME],MyIP[16];
GetPlayerIp(playerid,IP[playerid],16);
GetPlayerName(playerid,pName,24);
format(Query,sizeof(Query),"SELECT * FROM `users` WHERE username = '%s' LIMIT 1",pName);
mysql_query(Query);
mysql_store_result();
mysql_affected_rows();
mysql_get_field("IP",MyIP);
printf("%s = %s", MyIP , IP[playerid]);