21.12.2010, 00:21
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
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; }