Halo leute,
ich habe ein problem mit meinem speedo.
Ich bekomme immer diese errors ich weis einfach nicht warum
FEHLER: ( Unten CODE)
C:\Users\Adnan\Desktop\samp\speedoTEST.pwn(64) : error 010: invalid function or declaration
C:\Users\Adnan\Desktop\samp\speedoTEST.pwn(65) : error 001: expected token: "-identifier-", but found "3"
C:\Users\Adnan\Desktop\samp\speedoTEST.pwn(67) : error 010: invalid function or declaration
C:\Users\Adnan\Desktop\samp\speedoTEST.pwn(69) : error 010: invalid function or declaration
C:\Users\Adnan\Desktop\samp\speedoTEST.pwn(80) : error 010: invalid function or declaration
C:\Users\Adnan\Desktop\samp\speedoTEST.pwn(86) : error 021: symbol already defined: "TextDrawSetString"
C:\Users\Adnan\Desktop\samp\speedoTEST.pwn(89) : error 010: invalid function or declaration
C:\Users\Adnan\Desktop\samp\speedoTEST.pwn(92) : warning 203: symbol is never used: "PTP"
C:\Users\Adnan\Desktop\samp\speedoTEST.pwn(92) : warning 203: symbol is never used: "VehicleNames"
C:\Users\Adnan\Desktop\samp\speedoTEST.pwn(92) : warning 203: symbol is never used: "X"
C:\Users\Adnan\Desktop\samp\speedoTEST.pwn(92) : warning 203: symbol is never used: "Y"
C:\Users\Adnan\Desktop\samp\speedoTEST.pwn(92) : warning 203: symbol is never used: "string"
C:\Users\Adnan\Desktop\samp\speedoTEST.pwn(92) : warning 203: symbol is never used: "vID"
C:\Users\Adnan\Desktop\samp\speedoTEST.pwn(92) : warning 203: symbol is never used: "vhealth"
C:\Users\Adnan\Desktop\samp\speedoTEST.pwn(92) : warning 203: symbol is never used: "z"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
7 Errors.
CODE:
forward 3dupdate(); // Zeile 64
public 3dupdate() // Teile 65
{
for(new p=0;p<GetMaxPlayers();p++) // Zeile 67
{
if(IsPlayerConnected(p) && IsPlayerInAnyVehicle(p) && !IsPlayerNPC(p)) // Zeile 69
{
new Float:vhealth;
new Float:X;
new Float:Y;
new Float:z;
new Float:PTP;
new vID;
new string[128];
vID = GetPlayerVehicleID(p); // ZEILE 80
GetVehicleVelocity(p,X,Y,Z);
GetVehicleHealth(vID,vhealth);
PTP = (floatsqroot(floatpower(X, 2) + floatpower(Y, 2) + floatpower(Z, 2)))*100;
format(string,sizeof(string),"Fahrzeug: %s Speed: %i Stand: %.2f",VehicleNames[GetVehicleModel(GetPlayerVehicleID(i))-400],vhealth,floatround(PTP, floatround_floor));
TextDrawShowPlayer(playerid,sDraw[i]); // ZEILE 86
TextDrawSetString(sDraw[i],string);
}
}
return 1; // ZEILE 89
}
ZEILE 92 gibt es nicht.