ermac Posted September 14, 2019 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 26 Reputation: 0 Joined: 02/15/12 Last Seen: July 28, 2022 Share Posted September 14, 2019 help me [Error]: script:run_script_main: infinity loop ! [Debug]: Source (NPC): dualclientkicker (invisible/not on a map) - script dualclientkicker -1,{ end; OnPCLoadMapEvent: //debugmes "map loaded"; query_sql "SELECT `char`.`name` FROM `char` LEFT JOIN login ON `char`.account_id = login.account_id WHERE last_ip = ( SELECT last_ip FROM login WHERE account_id = " + playerattached() + " ) AND online AND `char`.account_id != " + playerattached() , .@name$; for ( .@i = 0; .@i < getarraysize ( .@name$ ); .@i = .@i++ ) { getmapxy .@map$, .@x, .@y, 0, .@name$[.@i]; if ( .@map$ == .current_maps$ ) { dispbottom "doble cuentas no permitidas en este mapa."; warp "SavePoint" , 0 , 0; end; } } end; OnInit: setarray .current_maps$[0] ,"payg_cas04", .size_maps = getarraysize ( .current_maps$ ); for ( .i = 0; .i < .size_maps; .i++) setmapflag .current_maps$[.i], mf_loadevent ; end; } Quote Link to comment Share on other sites More sharing options...
0 crazyarashi Posted September 14, 2019 Group: Developer Topic Count: 50 Topics Per Day: 0.02 Content Count: 763 Reputation: 227 Joined: 02/11/17 Last Seen: September 21, 2023 Share Posted September 14, 2019 setarray .current_maps$[0] ,"payg_cas04", to setarray .current_maps$[0] ,"payg_cas04"; Quote Link to comment Share on other sites More sharing options...
Question
ermac
help me
[Error]: script:run_script_main: infinity loop !
[Debug]: Source (NPC): dualclientkicker (invisible/not on a map)
- script dualclientkicker -1,{
end;
OnPCLoadMapEvent:
//debugmes "map loaded";
query_sql "SELECT `char`.`name` FROM `char` LEFT JOIN login ON `char`.account_id = login.account_id WHERE last_ip = ( SELECT last_ip FROM login WHERE account_id = " + playerattached() + " ) AND online AND `char`.account_id != " + playerattached() , .@name$;
for ( .@i = 0; .@i < getarraysize ( .@name$ ); .@i = .@i++ ) {
getmapxy .@map$, .@x, .@y, 0, .@name$[.@i];
if ( .@map$ == .current_maps$ ) {
dispbottom "doble cuentas no permitidas en este mapa.";
warp "SavePoint" , 0 , 0;
end;
}
}
end;
OnInit:
setarray .current_maps$[0] ,"payg_cas04",
.size_maps = getarraysize ( .current_maps$ );
for ( .i = 0; .i < .size_maps; .i++)
setmapflag .current_maps$[.i], mf_loadevent ;
end;
}
Link to comment
Share on other sites
1 answer to this question
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.