Jump to content
  • 0

greed horader - invalid item "0"


Ruda

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  02/18/20
  • Last Seen:  

hi,

i bouhgt greed horader NPC and i have got error in console, can you help me?

it is something here:

    .@c = 1;
    do{
        for(.@i = 0; .@i < getarraysize(getd(".@item_list"+.@c+"$"));.@i++){
            if(countitem(atoi(getd(".@item_list"+.@c+"$["+.@i+"]"))) >= 1){
                if(.@c == 2 && .double_points == 1){
                    mes "^0000ff"+getitemname(atoi(getd(".@item_list"+.@c+"$["+.@i+"]")))+"^000000 x"+countitem(atoi(getd(".@item_list"+.@c+"$["+.@i+"]")))+" - ^0000ff"+getd(".@point_list"+.@c+"$["+.@i+"]")*2+" point(s)^000000";
                }
                else if(.@c == 2 && !.double_points){
                    mes "^0000ff"+getitemname(atoi(getd(".@item_list"+.@c+"$["+.@i+"]")))+"^000000 x"+countitem(atoi(getd(".@item_list"+.@c+"$["+.@i+"]")))+" - ^0000ff"+getd(".@point_list"+.@c+"$["+.@i+"]")+" point(s)^000000";
                }
                else
                    mes "^ff0000"+getitemname(atoi(getd(".@item_list"+.@c+"$["+.@i+"]")))+"^000000 x"+countitem(atoi(getd(".@item_list"+.@c+"$["+.@i+"]")))+" - ^ff0000"+getd(".@point_list"+.@c+"$["+.@i+"]")+" point(s)^000000";
            }
        }
        .@c++;
    }
    while(.@c < getarg(0));

this is error message(its working fine, but i realy dont want errors in console)
[Error]: buildin_countitem: Invalid item '0'.

Edited by Mael
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  208
  • Reputation:   22
  • Joined:  01/14/13
  • Last Seen:  

it seems that base on your error feed from console it is clear that you has a invalid item or the array start's on -1? maybe? 

  • Upvote 1
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...