Jump to content
  • 0

How to fix this kind of warning


simplemhan

Question


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  308
  • Reputation:   3
  • Joined:  12/18/11
  • Last Seen:  

Please see the picture, unexpected argument for 2

post-884-0-90783200-1326461548_thumb.jpg

post-884-0-25471300-1326461531_thumb.jpg

how to fix this, thanks for helping

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  01/13/12
  • Last Seen:  

strcharinfo is no number

u must use getcharid

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

If the function expects an integer, use atoi to convert it:

$@blax[atoi(strnpcinfo(2))]

If the function expects a string, use +"" to conver it:

set .@i, 1;
set .@string$, .@i + "";

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