/enter and /exit problem
#1

Код:
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
Pls help.I want to enter in V-Rock Hotel and cordinates are right.Pls help.
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;
}
Reply


Messages In This Thread
/enter and /exit problem - by Jimmy1 - 23.06.2009, 12:38
Re: /enter and /exit problem - by Grim_ - 23.06.2009, 12:41
Re: /enter and /exit problem - by Jimmy1 - 23.06.2009, 13:30
Re: /enter and /exit problem - by Correlli - 23.06.2009, 13:32
Re: /enter and /exit problem - by Jimmy1 - 23.06.2009, 13:36
Re: /enter and /exit problem - by Grim_ - 23.06.2009, 13:37
Re: /enter and /exit problem - by Jimmy1 - 23.06.2009, 14:01
Re: /enter and /exit problem - by Jimmy1 - 23.06.2009, 14:32
Re: /enter and /exit problem - by Grim_ - 23.06.2009, 14:33

Forum Jump:


Users browsing this thread: 4 Guest(s)