Hello I tried to do to show how many on has the guild that broke the Castle, however the show is the ID of the guild what's wrong.
OnAgitBreak:
set .@GID,getcharid(2);
set .@GI, getcharid(2,StrCharInfo(0));
query_sql "SELECT `connect_member` FROM `guild` WHERE `guild_id` = "+@GI, @MBO; // Counts how many Players of the Guild are Online