savage Posted February 1, 2009 Posted February 1, 2009 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].'); } Quote
Lithium Posted February 2, 2009 Posted February 2, 2009 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) Quote
savage Posted February 2, 2009 Author Posted February 2, 2009 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 Quote
savage Posted February 2, 2009 Author Posted February 2, 2009 Re: Ip check Whats the problem? i was getting a parse error but im going to try putting it on the loggedin.php page now and see if it will work Quote
John99 Posted February 2, 2009 Posted February 2, 2009 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. Quote
AlabamaHit Posted February 6, 2009 Posted February 6, 2009 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].'); } Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.