Virtual World problem
#1

Please, explain me how to make HOUSES with the same interior, but every house with different virtual world.

I tried this:

Код:
enum hInfo
{
............
hWorld,
};
Код:
if(SpawnChange[playerid])
		    {
...............
SetPlayerVirtualWorld(playerid,HouseInfo[house][hWorld]);
Код:
if(strcmp(cmd, "/buyhouse", true) == 0)
.....................................
SetPlayerVirtualWorld(playerid,HouseInfo[h][hWorld]);
For /enter , /exit and /rentroom too.

But if I make a house in property.cfg, the virtual world value is deleted when the server turn on.


Код:
public LoadProperty()
{
	new arrCoords[30][64];
	new strFromFile2[256];
	new File: file = fopen("property.cfg", io_read);
.........................................
HouseInfo[idx][hWorld] = strval(arrCoords[29]);
Reply


Messages In This Thread
Virtual World problem - by MrBlake - 04.11.2012, 06:49
Re: Virtual World problem - by MrBlake - 04.11.2012, 07:50
Re: Virtual World problem - by PrawkC - 04.11.2012, 08:27
Re: Virtual World problem - by MrBlake - 04.11.2012, 12:01

Forum Jump:


Users browsing this thread: 1 Guest(s)