House system help
#5

pawn Код:
// global:
// after declaring "HouseInfo" array..

new Text3D: Kuca3D[sizeof (HouseInfo)];

// OnGameModeInit (resetting all variables: in a loop):
Kuca3D[iterator_variable_here] = Text3D: INVALID_3DTEXT_ID;

// rest:
format(...);
Kuca3D[ID] = Create3DTextLabel(poruka,-1,HouseInfo[ID][hUlazX], ...);

format(...);
Kuca3D[houseid] = Create3DTextLabel(poruka,-1,HouseInfo[houseid][hUlazX], ...);
// etc..

// when destroying a 3D label:
Delete3DTextLabel(Kuca3D[index_here]);
Kuca3D[index_here] = Text3D: INVALID_3DTEXT_ID;
Reply


Messages In This Thread
House system help - by NoDi522 - 16.05.2015, 12:55
Re: House system help - by NoDi522 - 16.05.2015, 12:57
Re: House system help - by Konstantinos - 16.05.2015, 13:15
Re: House system help - by NoDi522 - 16.05.2015, 13:23
Re: House system help - by Konstantinos - 16.05.2015, 13:36
Re: House system help - by NoDi522 - 16.05.2015, 15:07
Re: House system help - by NoDi522 - 17.05.2015, 06:40
Re: House system help - by Konstantinos - 17.05.2015, 08:48
Re: House system help - by NoDi522 - 17.05.2015, 08:57
Re: House system help - by Konstantinos - 17.05.2015, 09:00

Forum Jump:


Users browsing this thread: 1 Guest(s)