Ruda Posted December 6, 2020 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 13 Reputation: 0 Joined: 02/18/20 Last Seen: January 10, 2021 Share Posted December 6, 2020 (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 December 6, 2020 by Mael Quote Link to comment Share on other sites More sharing options...
0 hikashin-rae Posted December 6, 2020 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 213 Reputation: 24 Joined: 01/14/13 Last Seen: Wednesday at 03:42 AM Share Posted December 6, 2020 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? 1 Quote Link to comment Share on other sites More sharing options...
Question
Ruda
hi,
i bouhgt greed horader NPC and i have got error in console, can you help me?
it is something here:
this is error message(its working fine, but i realy dont want errors in console)
Edited by Mael[Error]: buildin_countitem: Invalid item '0'.
Link to comment
Share on other sites
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.