- 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;}
I have an error in the script takes the table
Share this post
Link to post
Share on other sites