Is this possible?
#1

For my house script i am wondering if it would be possible to store a string in the way that i am about to post?
Код:
enum HOUSE_DATA
{
	OWNER[MAX_PLAYER_NAME],
	Float:LOCX,
	Float:LOCY,
	Float:LOCZ,
	VW,
	INT,
	Float:INTX,
	Float:INTY,
	Float:INTZ,
	LOCKED,
	FORSALE,
	SALEPRICE
}
new gHouseData[MAX_HOUSES][HOUSE_DATA];
Reply
#2

Yes, you can do that.

You should note that Pawn allows you to create arrays with three dimensions, your 'MAX_PLAYERS' part enclosed in the square brackets is your first dimension, then where you declare your enum would be your second dimension, and your 'owner name' string would be your third and final dimension. You can create more strings inside your enum, but you can't add an array inside your enum, for example you can't do 'WEAPONS[6][6]', but you can do 'WEAPONS[6]'.
Reply
#3

Thanks Calg00ne, I was under the impression that an Array was just another name for Matrix which i had learned about in my math class as only having 2 dimensions.

Also: What happened your moss pic or was that just for when you were in NG-RP?
Reply
#4

It's summer in the UK and I'm letting him take a short holiday break from my avatar.
Reply
#5

XD
now that deserves rep lol
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)