CreateProperty
#1

Hi,

I have a question about creating properties. The SA-MP wiki page says just paste
CreateProperty("my house", 100.0, 200.0, 10.0, 100000, 20000); //(with your own parameters)
in Script_OnGameModeInit. That results in a couple of problems:
1. Pawno does not recognize Script_OnGameModeInit;
2. Pawno does not recognize CreateProperty(); at all

Here is the code of my gamemode.pwn
Код:
#include <a_samp>
#include <float>

main()
{
	print("AnteinoServer started.");
}

public OnPlayerConnect(playerid)
{
	GameTextForPlayer(playerid,"Welcome to Los Santos!",5000,5);
	return 1;
}

public OnPlayerSpawn(playerid)
{
 	SetPlayerPos(playerid, 1754.0000, -1893.9800, 14.5000);
	SetPlayerFacingAngle(playerid, 270);
	SetCameraBehindPlayer(playerid);
	return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
   	return 1;
}

SetupPlayerForClassSelection(playerid)
{
	PlayerPlaySound(playerid,1052,0.0,0.0,0.0);
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
	SetupPlayerForClassSelection(playerid);
	return 1;
}

public OnGameModeInit()
{
	ShowPlayerMarkers(1);
	ShowNameTags(1);
	return 1;
}
Reply
#2

What wiki page has a CreateProperty function? There is no native or Create Property. Also I don't think I'm getting what your problem is or what your doing.
Reply
#3

https://sampwiki.blast.hk/wiki/YSI:Adding_Properties is the link.

Want I want to do is to create a car dealership. When one approaches the dealership there should be one of these yellow markers just like when you enter a 24/7. When you walk in this marker, no interiors will be entered, but a few commands will be activated like:
/car buy
/car sell
/car occasion

etcetera
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)