SA-MP Forums Archive
House system plz help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: House system plz help (/showthread.php?tid=126012)



House system plz help - OutlawAK - 06.02.2010

i m trying to setup a new house sys, plz help me to get it working

Код:
enum hInfo
{
	houseid,
	hentx,
	henty,
	hentz,
	hinter,
	hintx,
	hinty,
	hintz,
	hlock,
	hvirtualworld
};
//------------------------------------------------------------------------------
new Houses[2][hInfo] = {
(0,2029.6045,1342.1985,10.8203,3,207.054992,-138.804992,1003.507812,0,1),
(1,2029.6045,1342.1985,10.8203,3,207.054992,-138.804992,1003.507812,0,2)
};
//------------------------------------------------------------------------------
public OnGameModeInit()
{
	SetGameModeText("Project");
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	//
	for(new h = 0; h < sizeof(Houses); h++)
	CreatePickup(1273,2,Houses[h][hentx],Houses[h][henty],Houses[h][hentz]);
	return 1;
}
the pickups dont even appear, not with AddStatic , nor with CreatePickup
i dont want to use any folder from scriptfiles
thanks