Рекомендованные сообщения



Не найдено.

4 posts in this topic

Вот Ошибка:

 

Спойлер

C:\Users\Ðîìàí\Desktop\NVE\gamemodes\NVE-GM.pwn(3498) : warning 217: loose indentation
C:\Users\Ðîìàí\Desktop\NVE\gamemodes\NVE-GM.pwn(8979) : warning 217: loose indentation
C:\Users\Ðîìàí\Desktop\NVE\gamemodes\NVE-GM.pwn(8986) : error 017: undefined symbol "speedo5"
C:\Users\Ðîìàí\Desktop\NVE\gamemodes\NVE-GM.pwn(8986) : warning 215: expression has no effect
C:\Users\Ðîìàí\Desktop\NVE\gamemodes\NVE-GM.pwn(8986) : error 001: expected token: ";", but found "]"
C:\Users\Ðîìàí\Desktop\NVE\gamemodes\NVE-GM.pwn(8986) : error 029: invalid expression, assumed zero
C:\Users\Ðîìàí\Desktop\NVE\gamemodes\NVE-GM.pwn(8986) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
 

 

Вот сам код:

 

Спойлер

        for (new i; i < 1000; i++) if (IsVehicleStreamedIn(i, playerid))
        {
            new Float:x, Float:y, Float:z;
            new Float:vX, Float:vY, Float:vZ;

            GetVehiclePos(i, x, y, z);
            GetVehicleVelocity(i, vX, vY, vZ);

           if (IsPlayerInRangeOfPoint(playerid, 30.0, x, y, z))
            {
                new str[32];
                new Float:speed = floatmul(floatsqroot((vX * vX) + (vY * vY) + (vZ * vZ)), 100.0);
                new Float: Distance = GetPlayerDistanceFromPoint(playerid, x, y, z);
                new model = GetVehicleModel(i);
                format(str, sizeof(str), "% 0.1f k¯/¤", speed);
                PlayerTextDrawSetString(playerid, speedo5[playerid], str);
                format(str, sizeof(str), "%0.1f ¯", Distance));
                PlayerTextDrawSetString(playerid, speedo4[playerid], str);
                format(str, sizeof(str), "%s", GetCarMarkText(model));
                PlayerTextDrawSetString(playerid, speedo3[playerid], str);
                break;
            }
        }
        PlayerTextDrawShow(playerid, speedo0[playerid]);
        PlayerTextDrawShow(playerid, speedo1[playerid]);
        PlayerTextDrawShow(playerid, speedo2[playerid]);
        PlayerTextDrawShow(playerid, speedo3[playerid]);
        PlayerTextDrawShow(playerid, speedo4[playerid]);
        PlayerTextDrawShow(playerid, speedo5[playerid]);
    }
    else
    {
        PlayerTextDrawHide(playerid, speedo0[playerid]);
        PlayerTextDrawHide(playerid, speedo1[playerid]);
        PlayerTextDrawHide(playerid, speedo2[playerid]);
        PlayerTextDrawHide(playerid, speedo3[playerid]);
        PlayerTextDrawHide(playerid, speedo4[playerid]);
        PlayerTextDrawHide(playerid, speedo5[playerid]);
    }

 

Share this post


Link to post
Share on other sites
C:\Users\Ðîìàí\Desktop\NVE\gamemodes\NVE-GM.pwn(3498) : warning 217: loose indentation
C:\Users\Ðîìàí\Desktop\NVE\gamemodes\NVE-GM.pwn(8979) : warning 217: loose indentation

код лесенкой

PlayerTextDrawShow(playerid, speedo5[playerid]);
PlayerTextDrawHide(playerid, speedo5[playerid]);

удали их 

Share this post


Link to post
Share on other sites

Не получилось:

 

Спойлер

C:\Users\Ðîìàí\Desktop\NVE\gamemodes\NVE-GM.pwn(3498) : warning 217: loose indentation
C:\Users\Ðîìàí\Desktop\NVE\gamemodes\NVE-GM.pwn(8986) : error 017: undefined symbol "speedo5"
C:\Users\Ðîìàí\Desktop\NVE\gamemodes\NVE-GM.pwn(8986) : warning 215: expression has no effect
C:\Users\Ðîìàí\Desktop\NVE\gamemodes\NVE-GM.pwn(8986) : error 001: expected token: ";", but found "]"
C:\Users\Ðîìàí\Desktop\NVE\gamemodes\NVE-GM.pwn(8986) : error 029: invalid expression, assumed zero
C:\Users\Ðîìàí\Desktop\NVE\gamemodes\NVE-GM.pwn(8986) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
 

 

Share this post


Link to post
Share on other sites
8 часов назад, Добрый Кот сказал:

                format(str, sizeof(str), "% 0.1f k¯/¤", speed);
                PlayerTextDrawSetString(playerid, speedo5[playerid], str);

вот это еще удали. 

И выровняй код, или в начало мода: 

#pragma tabsize 0

 

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

    • _bogdan_
      By _bogdan_
      Доброго времени суток, такой вопрос, кто сталкивался с такой же проблемой?
       
      Error reporting going to be applied. GTA_ERROR_ATTEMPT_TO_LOAD_OBJECT_INSTANCE_WITH_UNDEFINED_ID enabled. GTA_ERROR_MODEL_DOES_NOT_HAVE_COLLISION_LOADED enabled. GTA_ERROR_IMG_ARCHIVE_NEEDS_REBUILDING enabled. Error reporting is applied now. Я так понимаю нету каких то обьектов.
      Подскажите пожалуйста. За ранее огромное спасибо.