Mahiro Posted June 13, 2022 Share 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 Link to comment Share on other sites More sharing options...
1 sader1992 Posted June 13, 2022 Share Posted June 13, 2022 getcharid works only on online characters Quote Link to comment Share on other sites More sharing options...
0 Mahiro Posted June 13, 2022 Author Share 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 Link to comment Share on other sites More sharing options...
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.
Link to comment
Share on other sites