(1979) : warning 219: local variable "x1" shadows a variable at a preceding level
(1979) : warning 219: local variable "y1" shadows a variable at a preceding level
(1979) : warning 219: local variable "x2" shadows a variable at a preceding level
(1979) : warning 219: local variable "y2" shadows a variable at a preceding level
(1984) : error 035: argument type mismatch (argument 2)
(1985) : error 035: argument type mismatch (argument 2)
(1986) : warning 213: tag mismatch
(1986) : warning 213: tag mismatch
(1986) : warning 213: tag mismatch
(1986) : warning 213: tag mismatch
(1979) : warning 203: symbol is never used: "y2"
(1979) : warning 203: symbol is never used: "x2"
(1979) : warning 203: symbol is never used: "y1"
(1979) : warning 203: symbol is never used: "x1"
Ich habe schon mehr als die Hälfte aller Errors und Warnings entfernt
Doch diese sind die letzen die mich sehr verwirren
Besonders Zeile 1979
public Float:GetDistanceBetweenPlayers(p1,p2)
{
new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2;//1979
if(!IsPlayerConnected(p1) || !IsPlayerConnected(p2))
{
return -1.00;
}
GetPlayerPos(p1,x1,y1,z1);//1984
GetPlayerPos(p2,x2,y2,z2);//1985
return //1986
floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
}