Run time error array index out of bounds[+rep]
#3

After reviewing your code I'd like to point this out:
Код:
	new weapons[256];
	FormatHouseWeapons(houseid, weapons);
What are you trying to do here?

I believe you need to change
Код:
stock FormatHouseWeapons(house, string[])
to:
Код:
stock FormatHouseWeapons(house)
Add: new string[256]; under the stock. (Choose a approperiate array size, I dont know how far your loop will go so I'll stick here with 256)

Change:
Код:
FormatHouseWeapons(houseid, weapons);
to:
Код:
FormatHouseWeapons(houseid);
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)