Jump to content
  • 0

Getcharid isnt working right


Zell

Question


  • Group:  Members
  • Topic Count:  53
  • Topics Per Day:  0.01
  • Content Count:  411
  • Reputation:   261
  • Joined:  04/25/12
  • Last Seen:  

Hi, i'm using the last version.

 

I have problem to get a id by the charname, the values is always 0.

prontera,150,149,5 Script charname 90,{
 
mes "Player Name";
input .@name$;
mes ""+getcharid(0,.@name$)+"";
close;

Only if i change the .@name$ to strcharinfo(0) or the char name direct its return the char_id


I discovered that if I put like this:

 

mes "Digite o nome do jogador";
input @nome$;
set @nome$,@n$;
mes ""+getcharid(0,.@n$)+"";
close;
 
works...
 
So, its a problem on input emulator or on getcharid?
 
@edit
 
I tested here, the problem is with the getcharid by the name
Edited by Zell
Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

ensure the character is online ... 

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