Must be assigned to an array
#2

If all those FacInfo's are correctly setup (which I doubt but anyways), you cannot assign strings to char arrays like that in pawn, you need to use format, just like you did for str1-7.

Example:
Код:
format(FacInfo[i][VehX][veh], 50, "VehX%d", veh);
Although why do you want them to store "VehX%d" and not just the %d itself? :'x It doesn't make a lot of sense to me, but whatever.

Lastly, make sure your enum is correctly setup:
Код:
enum something{
	VehX[MAX_VEHICLES][50],
	VehY[MAX_VEHICLES][20],
	...
};
But again, not sure why you want to save down strings, but hey it's up to you!
Reply


Messages In This Thread
Must be assigned to an array - by NealPeteros - 04.11.2016, 05:22
Re: Must be assigned to an array - by Hansrutger - 04.11.2016, 05:30
Re: Must be assigned to an array - by NealPeteros - 04.11.2016, 06:21
Re: Must be assigned to an array - by VVWVV - 04.11.2016, 06:26
Re: Must be assigned to an array - by NealPeteros - 04.11.2016, 06:28
Re: Must be assigned to an array - by NealPeteros - 04.11.2016, 06:43

Forum Jump:


Users browsing this thread: 2 Guest(s)