23.06.2009, 12:38
Код:
C:\DOCUME~1\Jimmy\Desktop\SAMP02~1.WIN\GAMEMO~1\MODERN~1.PWN(737) : error 004: function "PlayerToPoint" is not implemented C:\DOCUME~1\Jimmy\Desktop\SAMP02~1.WIN\GAMEMO~1\MODERN~1.PWN(753) : error 004: function "PlayerToPoint" is not implemented
i have this on top
new Float:X[MAX_PLAYERS],Float:Y[MAX_PLAYERS],Float:Z[MAX_PLAYERS];
forward PlayerToPoint(Float:radi, playerid, Float, Float:y, Float:z);
script:
Код:
if(strcmp(cmdtext, "/enter", true) == 0) { if(PlayerToPoint(3.0, playerid,2628.6082,2348.7056,10.8203)) { SetPlayerInterior(playerid,1); GetPlayerPos(playerid,X[playerid],Y[playerid],Z[playerid]); SetPlayerPos(playerid,234.2759,1064.9447,1084.2104); } else { SendClientMessage(playerid, 0xA10000AA, " You are not next to a Door."); } return 1; } // EXIT COMMAND if(strcmp(cmdtext, "/exit", true) == 0) { if(PlayerToPoint(/*exit coords*/)) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,X[playerid],Y[playerid],Z[playerid]); } else { SendClientMessage(playerid, 0xA10000AA, " You are not next to a Door."); } return 1; }