Mahiro Posted June 13, 2022 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 66 Reputation: 10 Joined: 08/02/18 Last Seen: January 20 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 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: 1 hour ago 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 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 66 Reputation: 10 Joined: 08/02/18 Last Seen: January 20 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...
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.
Link to comment
Share on other sites
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.