Jump to content
  • 0
Sign in to follow this  
Break San

unknown column 'last_mac'

Question

I have an error in the script takes the table

 

 

 

 

-	script	DualClient	-1,{OnInit:setarray .@map$,"bat_room","guild_vs1","pvp_n_1-5","pvp_room","quiz_01","prtg_cas01","prtg_cas02","prtg_cas03","prtg_cas04","prtg_cas05","gefg_cas01","gefg_cas02","gefg_cas03","gefg_cas04","gefg_cas05";set .@size, getarraysize(.@map$);set .map$, ":";for ( set .@i, 0; .@i < .@size; set .@i, .@i +1 ) {setmapflag .@map$[.@i], mf_loadevent;set .map$, .map$ + .@map$[.@i] + ":";}end;OnPCLoadMapEvent:query_sql "SELECT `name` FROM `char` INNER JOIN `login` ON `login`.`account_id` = `char`.`account_id` WHERE `char`.`online` = '1' AND `login`.`last_ip` IN (SELECT `last_ip` FROM `login` WHERE `login`.`account_id` = '"+getcharid(3)+"')",.@nome$;query_sql "SELECT `name` FROM `char` INNER JOIN `login` ON `login`.`account_id` = `char`.`account_id` WHERE `char`.`online` = '1' AND `login`.`last_mac` IN (SELECT `last_mac` FROM `login` WHERE `login`.`account_id` = '"+getcharid(3)+"')",.@nomemac$;for(set @i,0; @i < getarraysize(.@nome$) && getarraysize(.@nome$) > 1; set @i,@i+1){if(getcharid(0) == getcharid(0,.@nome$[@i])) continue;}for(set @j,0; @j < getarraysize(.@nomemac$) && getarraysize(.@nomemac$) > 1; set @j,@j+1){if(getcharid(0) == getcharid(0,.@nomemac$[@j])) continue;}if (getarraysize(.@nome$) > 1 && getarraysize(.@nomemac$) > 1) {dispbottom "[ATENÇÃO] Você não pode entrar neste mapa enquanto estiver com mais de uma CONTA online.";dispbottom "[Informação] Número de contas online: "+getarraysize(.@nomemac$)+".";warp "SavePoint", 0,0;}end;} 

 

 

 

 

M63weUQ.png

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

 

you have to import the sql of that plugin 

 

 

The problem I do not have the sql.

execute this on your database mate

 

ALTER TABLE `login` ADD COLUMN `last_mac` VARCHAR(18) NOT NULL DEFAULT ''  AFTER `pincode_change` ; 

Share this post


Link to post
Share on other sites
  • 0

 

 

you have to import the sql of that plugin 

 

 

The problem I do not have the sql.

execute this on your database mate

 

ALTER TABLE `login` ADD COLUMN `last_mac` VARCHAR(18) NOT NULL DEFAULT ''  AFTER `pincode_change` ; 

 

 

let me know some script to block dual acc on a map?

Share this post


Link to post
Share on other sites
  • 0

 

 

 

you have to import the sql of that plugin 

 

 

The problem I do not have the sql.

execute this on your database mate

 

ALTER TABLE `login` ADD COLUMN `last_mac` VARCHAR(18) NOT NULL DEFAULT ''  AFTER `pincode_change` ; 

 

 

let me know some script to block dual acc on a map?

 

http://herc.ws/board/topic/6724-about-1-per-mac-ip-except-vending-or-at/?hl=dual

Share this post


Link to post
Share on other sites
  • 0

 





you have to import the sql of that plugin



The problem I do not have the sql.

execute this on your database mate
ALTER TABLE `login` ADD COLUMN `last_mac` VARCHAR(18) NOT NULL DEFAULT '' AFTER `pincode_change` ;



let me know some script to block dual acc on a map?


http://herc.ws/board/topic/6724-about-1-per-mac-ip-except-vending-or-at/?hl=dual



It is possible to put in a certain map?

-	script	Only1perMAC	-1,{OnPCLoginEvent:	if (getgmlevel() >= 99) end;	if (query_sql("SELECT `char`.`name` FROM `char` LEFT JOIN login ON `char`.account_id=login.account_id WHERE login.last_mac=(SELECT last_mac FROM login WHERE account_id="+getcharid(3)+") AND `char`.online=1 AND `char`.char_id!="+getcharid(0), .@name$) >= 1) {		for (set .@i,0; .@i<getarraysize(.@name$); set .@i,.@i+1) {			if (!checkvending(.@name$[.@i]))				set .@samemac, .@samemac +1;		}		if (.@samemac >= 1) {			announce "Sorry, only 1 account per computer can be logged in at a time.", bc_self;			sleep2 1000;			atcommand "@kick "+strcharinfo(0);		}	}	end;}

 

 

 

Edited by Break San

Share this post


Link to post
Share on other sites

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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.