Getting name of array
#3

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
Код:
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
Reply


Messages In This Thread
Getting name of array - by RollingFlow - 07.03.2014, 14:48
Re: Getting name of array - by Konstantinos - 07.03.2014, 14:54
Re: Getting name of array - by RollingFlow - 07.03.2014, 15:14
Re: Getting name of array - by Konstantinos - 07.03.2014, 15:22
Re: Getting name of array - by RollingFlow - 07.03.2014, 15:24
Re: Getting name of array - by Konstantinos - 07.03.2014, 15:33
Re: Getting name of array - by RollingFlow - 07.03.2014, 15:56

Forum Jump:


Users browsing this thread: 1 Guest(s)