Jump to content
  • 0

greed horader - invalid item "0"


Question

Posted (edited)

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

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...