07.03.2014, 15:14
I meant a run time error(my fault for not being clearer), I understand the first things you mention, and the solution to this must be looping through itemnames then, I assume? (If I understood correctly)
Which I did and gave me the following run-time error:
Accessing element at index 15 past array upper bound 14
The thing is also, that MAX_INVENTORY is defined 15, it's not bigger than MAX_ITEMS, actually a lot smaller
Which I did and gave me the following run-time error:
Accessing element at index 15 past array upper bound 14
The thing is also, that MAX_INVENTORY is defined 15, it's not bigger than MAX_ITEMS, actually a lot smaller
Код:
for(new p; p != sizeof (itemname); p++) { format(str, sizeof(str), "itemname %s", invslots[playerid][p]); // feels kinda off doing that xD must be smth wrong