Question

D:\GHEKA\Ìîäû\AVRP\gamemodes\stel.pwn(67086) : error 017: undefined symbol "SetPlayerToFacePlayer"
D:\GHEKA\Ìîäû\AVRP\gamemodes\stel.pwn(67105) : error 017: undefined symbol "SetPlayerToFacePlayer"



SetPlayerToFacePlayer(playerid, FollowBy[playerid]);

SetPlayerToFacePlayer(playerid, FollowBy[playerid]);

 

Share this post


Link to post
Share on other sites

4 answers to this question

  • 0

В конец мода: 
 

Спойлер

stock SetPlayerToFacePlayer(playerid, targetid)
{
 
        new Float:pX, Float:pY, Float:pZ, Float:ang;
        if(!IsPlayerConnected(playerid) || !IsPlayerConnected(targetid)) return 0;
        GetPlayerPos(targetid, X, Y, Z);
        GetPlayerPos(playerid, pX, pY, pZ);
        if( Y > pY ) ang = (-acos((X - pX) / floatsqroot((X - pX)*(X - pX) + (Y - pY)*(Y - pY))) - 90.0);
        else if( Y < pY && X < pX ) ang = (acos((X - pX) / floatsqroot((X - pX)*(X - pX) + (Y - pY)*(Y - pY))) - 450.0);
        else if( Y < pY ) ang = (acos((X - pX) / floatsqroot((X - pX)*(X - pX) + (Y - pY)*(Y - pY))) - 90.0);
        if(X > pX) ang = (floatabs(floatabs(ang) + 180.0));
        else ang = (floatabs(ang) - 180.0);
        SetPlayerFacingAngle(playerid, ang);
        return 0;
 
}

 

 

Share this post


Link to post
Share on other sites
  • 0

@archiboy6 откуда вырезали систему, оттуда возьмите сток SetPlayerToFacePlayer

Share this post


Link to post
Share on other sites
  • 0

@DEST я ее тут взял, в разделе CMD

Share this post


Link to post
Share on other sites
  • 0

@archiboy6 обычно любой код надо где то, что то подгонять под свой мод.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • Nik_Rofid
      By Nik_Rofid
          if(IsPlayerInRangeOfPoint(playerid, 5.0, -433.155, 782.72, 12.5547)) Dialog(playerid, DIALOG_WSP_ELOMS, DIALOG_STYLE_MSGBOX, "{ffffff}Разработчик","{ffffff}Взломаем сервер?","Да", "Нет");
          }
          else //Еррор здесь
          {
          SCM(playerid, 0xCECECEFF, "2331");
          }
      Проблема: Здравсвуйте, При компиляции вылезла 1 ошибка C:\Users\User\Desktop\Мод 7.1 с гс чат\gamemodes\new.pwn(20655) : error 010: invalid function or declaration
      Буду рад если поможете!