@Smoke
I want to create a command called @hidebgmsg to hide announces from BG I did this modifications:
On line 90 I add this:
bindatcmd "esconderbc","BG_Queue_Handler::OnDoHideMsg",0,99;
On line 165 I add this:
OnDoHideMsg:
if(hideBcMsg == 1){
set hideBcMsg,0;
dispbottom "[As mensagens da batalha campal foram ativadas!]";
}
else{
set hideBcMsg,1;
dispbottom "[As mensagens da batalha campal foram desativadas!]";
}
end;
And on line 274 I put a if like this:
if(hideBcMsg != 1){
announce .@msg$,0,.BG_Color$[$BG_Index],0x190,12,100,100;
}
When I start the server and check the logs i get this msg:
[Warning]: script_get_val: cannot access player variable 'hideBcMsg', defaulting to 0
What am I missing here? could you help me? =)
I want to create a command called @hidebgmsg to hide announces from BG I did this modifications:
On line 90 I add this:
bindatcmd "esconderbc","BG_Queue_Handler::OnDoHideMsg",0,99;
On line 165 I add this:
OnDoHideMsg:
if(hideBcMsg == 1){
set hideBcMsg,0;
dispbottom "[As mensagens da batalha campal foram ativadas!]";
}
else{
set hideBcMsg,1;
dispbottom "[As mensagens da batalha campal foram desativadas!]";
}
end;
And on line 274 I put a if like this:
if(hideBcMsg != 1){
announce .@msg$,0,.BG_Color$[$BG_Index],0x190,12,100,100;
}
When I start the server and check the logs i get this msg:
[Warning]: script_get_val: cannot access player variable 'hideBcMsg', defaulting to 0
What am I missing here? could you help me? =)

