Jump to content
MakeWebGames

Recommended Posts

Posted

can someone help me please. im trying to get it to send an event to id 1 if someone signs up with the same ip as another player even if they didnt use a referal code. this is the bit that im having trouble with

print "You have signed up, enjoy the game.

> Login

}

$db->query("SELECT * FROM users WHERE lastip='$ip'");

if(mysql_num_rows($a) > 0)

{

event_add(1,'<font color="red">' IP match found for '.['$IP].');

}

Posted

Re: Ip check

 

you're making a wrong approach. you should check matching ip addresses upon login (on loggedin.php or whatever file you redirect users upon login)

thanks. i will try that

Posted

Re: Ip check

Iv'e created somethink simular to this so if someone all ready has there acount on there and someone else signs up with same ip and log's in it will auto send both users into an or fedjail.

Posted

Re: Ip check

print "You have signed up, enjoy the game.

> Login"; <---You just missed that "; thats why you got error

}

$db->query("SELECT * FROM users WHERE lastip='$ip'");

if(mysql_num_rows($a) > 0)

{

event_add(1,'<font color="red">' IP match found for '.['$IP].');

}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...