to get a value from a var
#1

I have this variable:
Код:
Houses[0][houseid]
The houseid is unknown.
how can i get the value of "houseid"?
ty.
Reply
#2

Your question doesn't make any sense, what about looking into your enum for the houses?
Reply
#3

Код:
	for(new houseid = 0; houseid < MAX_HOUSES; houseid++)
	{
	  format(housefile, 200, "%d.txt", houseid);
	  if(dini_Exists(housefile))
			Houses[0][houseid] = CreatePickup(dini_Int(housefile, "Sold") == 0? NOT_SOLD : SOLD, 1, dini_Float(housefile, "X"), dini_Float(housefile, "Y"), dini_Float(housefile, "Z")),
			Houses[1][houseid] = CreatePickup(dini_Int(housefile, "Sold") == 0? NOT_SOLD : SOLD, 1, dini_Float(housefile, "InteriorX"), dini_Float(housefile, "InteriorY"), dini_Float(housefile, "InteriorZ"));
	}
Reply
#4

chea you're totally out of your mind if you ask that. are you.. high?
(the first one)
Reply
#5

Create your "housesystem" using enum's.
Reply
#6

Quote:
Originally Posted by Izanagi
chea you're totally out of your mind if you ask that. are you.. high?
(the first one)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)