D:\Programme\Server\gamemodes\Script.pwn(80) : error 017: undefined symbol "SavePlayerPosEnum"
D:\Programme\Server\gamemodes\Script.pwn(80) : error 009: invalid array size (negative, zero or out of bounds)
D:\Programme\Server\gamemodes\Script.pwn(942) : warning 213: tag mismatch
D:\Programme\Server\gamemodes\Script.pwn(942) : warning 213: tag mismatch
D:\Programme\Server\gamemodes\Script.pwn(942) : warning 213: tag mismatch
D:\Programme\Server\gamemodes\Script.pwn(956) : warning 213: tag mismatch
D:\Programme\Server\gamemodes\Script.pwn(957) : warning 213: tag mismatch
D:\Programme\Server\gamemodes\Script.pwn(958) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
80 Zeile:
new SavePlayerPos[SLOTS][SavePlayerPosEnum];
923-960 Zeile:
public UpdateSpeed()
{
new Float:x,Float:y,Float:z;
new Float:distance,value,string[256];
new Float:health;
for(new i=0; i<SLOTS; i++)
{
if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i))
{
TextDrawDestroy(Speedo[i]);
}
}
for(new i=0; i<SLOTS; i++)
{
if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i))
{
GetPlayerPos(i, x, y, z);
GetVehicleHealth(GetPlayerVehicleID(i), health);
distance = floatsqroot(floatpower(floatabs(floatsub(x,SavePlayerPos[i][LastX])),2)+floatpower(floatabs(floatsub(y,SavePlayerPos[i][LastY])),2)+floatpower(floatabs(floatsub(z,SavePlayerPos[i][LastZ])),2));
value = floatround(distance * 5000);
if(UpdateSeconds > 1)
{
value = floatround(value / UpdateSeconds);
}
format(string,sizeof(string),"~g~Vehicle : ~w~%s ~n~~b~MPH : ~w~%d / ~b~KM/H : ~w~%d~n~~r~Vehicle Health:~w~ %.2f",CarName[GetVehicleModel(GetPlayerVehicleID(i))-400],floatround(value/1600),floatround(value/1000),health);
Speedo[i] = TextDrawCreate(320.00, 380.00, string);
TextDrawSetOutline(Speedo[i], 0);
TextDrawFont(Speedo[i], 3);
TextDrawSetProportional(Speedo[i], 2);
TextDrawAlignment(Speedo[i], 2);
TextDrawShowForPlayer (i, Speedo[i]);
}
SavePlayerPos[i][LastX] = x;
SavePlayerPos[i][LastY] = y;
SavePlayerPos[i][LastZ] = z;
}
}
Zeile: 942
distance = floatsqroot(floatpower(floatabs(floatsub(x,SavePlayerPos[i][LastX])),2)+floatpower(floatabs(floatsub(y,SavePlayerPos[i][LastY])),2)+floatpower(floatabs(floatsub(z,SavePlayerPos[i][LastZ])),2));
Zeile 956
SavePlayerPos[i][LastX] = x;
Zeile 967
SavePlayerPos[i][LastY] = y;
Zeile 978
SavePlayerPos[i][LastZ] = z;