17.02.2013, 14:57
Started it and at this point; I'm stuck
Long Story short, When a player connects, I will get his IP Address, check the table to see if there's more than 1 account associated with his IP Address. Then send the message to the admins saying he has 'another' account (another = the names of the other account/s)
How would I do that? I'm stuck.
pawn Код:
forward checksamename(playerid);
public checksamename(playerid)
{
new playeridIP[20];
new rows = mysql_num_rows();
GetPlayerIp(playerid, playeridIP, sizeof(playeridIP));
namequery[300];
format(namequery, sizeof(namequery), "SELECT `user` FROM `playerinfo` WHERE `IP` = '%s'", playeridIP);
mysql_query(namequery);
mysql_store_result();
if(rows == 1) return 0;
else if(rows > 1)
{
mysql_fetch_row(targetnames, "user");
}
How would I do that? I'm stuck.