caspa Posted May 14, 2019 Group: Members Topic Count: 194 Topics Per Day: 0.04 Content Count: 499 Reputation: 3 Joined: 03/11/12 Last Seen: September 18, 2023 Share Posted May 14, 2019 can somebody help me with this script? if( getcastledata( "payg_cas03",1 ) ) set .@gotwsize,query_sql( "SELECT `name`, `position` FROM `guild_member` WHERE `guild_id`= '"+ getcastledata( "payg_cas03",1 ) +"' ORDER BY `position` ASC", .@gotwname$, .@position$ ); //-------------------------------------------------------------------------------------------------------------------------------------------- for( set .@i,0; .@i < .@gotwsize; set .@i,.@i + 1 ) mes "^008cef"+(.@i+1)+".^000000 "+( .@position$[.@i] == 19 ? "Member" : "Leader" )+" "+ .@gotwname$[ .@i ] +" "+ ( getcharid( 0,.@gotwname$[ .@i ] ) ? "- ^009900[ON]^000000" : "- ^ff0000[OFF]^000000" )+""; i want to identify the names if its the leader of the members... but i'm having this error.. (refer to image attached) Quote Link to comment Share on other sites More sharing options...
Question
caspa
can somebody help me with this script?
if( getcastledata( "payg_cas03",1 ) )
set .@gotwsize,query_sql( "SELECT `name`, `position` FROM `guild_member` WHERE `guild_id`= '"+ getcastledata( "payg_cas03",1 ) +"' ORDER BY `position` ASC", .@gotwname$, .@position$ );
//--------------------------------------------------------------------------------------------------------------------------------------------
for( set .@i,0; .@i < .@gotwsize; set .@i,.@i + 1 )
mes "^008cef"+(.@i+1)+".^000000 "+( .@position$[.@i] == 19 ? "Member" : "Leader" )+" "+ .@gotwname$[ .@i ] +" "+ ( getcharid( 0,.@gotwname$[ .@i ] ) ? "- ^009900[ON]^000000" : "- ^ff0000[OFF]^000000" )+"";
i want to identify the names if its the leader of the members...
but i'm having this error.. (refer to image attached)
Link to comment
Share on other sites
0 answers 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.