Jump to content
  • 0

[Error]: buildin_getcharid: Player with nick '' is not found.


Mahiro

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   10
  • Joined:  08/02/18
  • Last Seen:  

-	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.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

getcharid works only on online characters

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   10
  • Joined:  08/02/18
  • Last Seen:  

10 minutes ago, sader1992 said:

getcharid works only on online characters

Thanks, I took a long time on this.
It worked here.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...