Mahiro Posted June 13, 2022 Posted June 13, 2022 - script test#1 FAKE_NPC,{ OnTest: .@name$ = "Mahiro"; callfunc ("carnage_winner", .@name$); end; OnInit: bindatcmd "test",strnpcinfo(3)+"::OnTest",0; end; } function script carnage_winner { if(isloggedin(getcharid(3, getarg(0)))){ announce "Online",8; } else { announce "Offline",8; } return; } The error is similar to this topic( ). I've redone it several times but I keep getting the error. It should show an offline ad and no error. [Error]: buildin_getcharid: Player with nick 'Kappacitado' is not found. Quote
1 sader1992 Posted June 13, 2022 Posted June 13, 2022 getcharid works only on online characters Quote
0 Mahiro Posted June 13, 2022 Author Posted June 13, 2022 10 minutes ago, sader1992 said: getcharid works only on online characters Thanks, I took a long time on this. It worked here. Quote
Question
Mahiro
The error is similar to this topic(
). I've redone it several times but I keep getting the error.
It should show an offline ad and no error.
[Error]: buildin_getcharid: Player with nick 'Kappacitado' is not found.
2 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.