caspa Posted May 14, 2019 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
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)
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.