Jump to content
  • 0

SQL Question


nasagnilac

Question


  • Group:  Members
  • Topic Count:  89
  • Topics Per Day:  0.02
  • Content Count:  232
  • Reputation:   15
  • Joined:  11/02/13
  • Last Seen:  

Hi guys I'm using a guild pack with sql.... here is the code.

					for(set .@i,0; .@i<25; set .@i,.@i+1)
						query_sql("SELECT account_id,char_id FROM `guild_member` WHERE guild_id = '"+.@guild+"'", .@acc, .@char);
						for(set .@j,0; .@j<getarraysize(.@acc); set .@j,.@j+1){
							query_sql("SELECT `last_ip` FROM `login` WHERE account_id = '"+.@acc[.@j]+"'",.@ip1$);
						if (isloggedin(.@acc[.@j],.@char[.@j])) {
							query_sql("SELECT `last_ip` FROM `guild_package` WHERE `account_id` = '"+.@acc[.@j]+"' AND `last_ip` = '"+.@ip1$+"'",.@ip2$);
					
						if(.@ip2$ == .@ip1$){
							message rid2name(.@acc[.@j]),"Sorry but your IP Address is already registered.";
						}else{               
							query_sql "INSERT INTO `guild_package` (`account_id` , `last_ip`) VALUES ('"+.@acc[.@j]+"','"+.@ip1$+"')"; 
							set $@members,$@members+1;  
							}
						}
					}

I just want to ask if players can bypass this by changing IP Address? and how about mac address?

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

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

Guest
Answer this question...

×   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...