- 0
Войдите для возможности подписаться
Подписчики
0
Ошибка Pawno
Вопрос от
Добрый Кот
,
-
Последние посетители 0 пользователей онлайн
Ни одного зарегистрированного пользователя не просматривает данную страницу
-
Похожий контент
-
Опубликовано · Жалоба
Вот Ошибка:
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]);
}
Поделиться сообщением
Ссылка на сообщение