Hello guys, i'm having a problem of Conv_str in a NPC. Could you guys help me fix it?
Here's the code:
- script GerenciadorVip -1,{ OnPCLoginEvent: query_sql "UPDATE `login` SET `group_id`= 0 WHERE `group_id` = "+$nivelVip+" AND (`dt_vip` IS NULL OR `dt_vip` < CURDATE())"; query_sql "SELECT (`dt_vip` IS NULL OR `dt_vip` < CURDATE()) FROM `login` WHERE `account_id` = "+getcharid(3), @verificaVip; if (@verificaVip) { dispbottom "Torne-se um(a) jogador(a) ViP e tenha benefícios exclusivos!"; dispbottom "Acesse site e saiba mais!"; end;} query_sql "SELECT DATE_FORMAT(`dt_vip`, '%d/%m/%Y') FROM `login` WHERE `account_id` = "+getcharid(3), @dataVencimento$; dispbottom "Sua conta ViP é válida até o dia "+@dataVencimento$+"."; end;}
And this is the error when I log in:
[Error]: script:conv_str: cannot convert to string, defaulting to ""
Hello guys, i'm having a problem of Conv_str in a NPC. Could you guys help me fix it?
Here's the code:
And this is the error when I log in:
Thanks!
Share this post
Link to post
Share on other sites