Array sizes do not match, or destination array is too small
#1

So guys, I'm making a vehicle system and I'm using dini.. I know it's old but i like it for some reason... So does anyone know what's the problem, I'm tryin' to load name from .ini...

Код:
enum vInfoo
{
	vOwner[MAX_PLAYER_NAME],
	vPrice,
	vLocked,
	vModel,
	vX,
	vY,
	vZ,
	vRotation,
	vColor1,
	vColor2,
	vEngine
};
new vehInfo[MAX_VEHICLES][vInfoo];



vehInfo[x][vOwner] = dini_Get(file, "Owner");
Reply
#2

PHP код:
format(vehInfo[x][vOwner], MAX_PLAYER_NAME"%s"dini_Get(file"Owner")); 
It should work like this, not too sure though.
Reply
#3

Omg.. Thank you so much man i've been tryin' to fix this for like 2 hours... Thx!
Reply
#4

You can never set a string using the = sign in PAWN. It must be formatted.
Reply
#5

Ye i didn't know that thx!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)