hi,
habe diese fehler
E:\pawno\include\blitzer.inc(79) : error 017: undefined symbol "eRadius"
E:\pawno\include\Obj_Streamer.inc(59) : error 021: symbol already defined: "ID"
E:\pawno\include\Obj_Streamer.inc(99) : error 032: array index out of bounds (variable "modelid2")
E:\pawno\include\Obj_Streamer.inc(100) : error 032: array index out of bounds (variable "x2")
E:\pawno\include\Obj_Streamer.inc(100) : warning 213: tag mismatch
E:\pawno\include\Obj_Streamer.inc(101) : error 032: array index out of bounds (variable "y2")
E:\pawno\include\Obj_Streamer.inc(101) : warning 213: tag mismatch
E:\pawno\include\Obj_Streamer.inc(102) : error 032: array index out of bounds (variable "z2")
E:\pawno\include\Obj_Streamer.inc(102) : warning 213: tag mismatch
E:\pawno\include\Obj_Streamer.inc(103) : error 032: array index out of bounds (variable "rX2")
E:\pawno\include\Obj_Streamer.inc(103) : warning 213: tag mismatch
E:\pawno\include\Obj_Streamer.inc(104) : error 032: array index out of bounds (variable "rY2")
E:\pawno\include\Obj_Streamer.inc(104) : warning 213: tag mismatch
E:\pawno\include\Obj_Streamer.inc(105) : error 032: array index out of bounds (variable "rZ2")
E:\pawno\include\Obj_Streamer.inc(105) : warning 213: tag mismatch
E:\pawno\include\Obj_Streamer.inc(106) : error 032: array index out of bounds (variable "ViewDistance2")
E:\pawno\include\Obj_Streamer.inc(107) : error 022: must be lvalue (non-constant)
E:\pawno\include\Obj_Streamer.inc(107) : warning 215: expression has no effect
E:\pawno\include\Obj_Streamer.inc(108) : warning 213: tag mismatch
E:\pawno\include\Obj_Streamer.inc(325) : warning 213: tag mismatch
E:\pawno\include\Obj_Streamer.inc(339) : warning 213: tag mismatch
C:\Users\Nils Schäfer\Desktop\reallife.pwn(950) : warning 219: local variable "x2" shadows a variable at a preceding level
C:\Users\Nils Schäfer\Desktop\reallife.pwn(950) : warning 219: local variable "y2" shadows a variable at a preceding level
C:\Users\Nils Schäfer\Desktop\reallife.pwn(950) : warning 219: local variable "z2" shadows a variable at a preceding level
C:\Users\Nils Schäfer\Desktop\reallife.pwn(5829) : warning 203: symbol is never used: "wlevel"
C:\Users\Nils Schäfer\Desktop\reallife.pwn(31588) : error 017: undefined symbol "COLOR_LIGHTYELLOW2"
C:\Users\Nils Schäfer\Desktop\reallife.pwn(31626) : error 017: undefined symbol "SendFormattedText"
C:\Users\Nils Schäfer\Desktop\reallife.pwn(31631) : error 017: undefined symbol "COLOR_LIGHTYELLOW2"
if(strcmp(cmd, "/blitzer", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[BENUTZUNG:] /blitzer [Funktion]");
SendClientMessage(playerid, COLOR_WHITE, "Verfügbare Funktionen: add, remove, removeall, count");
return 1;
}
if (!IsACop(playerid)) return SendClientMessage(playerid, COLOR_LIGHTRED, "[ERROR:] Du bist kein Polizist!");
if(strcmp(tmp,"add",true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "[BENUTZUNG:] /blitzer [add] [Geschwindigkeit] [Radius]");
new b_speed;
b_speed = strval(tmp);
if(b_speed < 20 || b_speed > 180) return SendClientMessage(playerid, COLOR_LIGHTRED, "[ERROR:] Die Geschwindigkeit muss zwischen 20 und 180 km/h liegen!");
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "[BENUTZUNG:] /blitzer [add] [Geschwindigkeit] [Radius]");
new b_radius;
b_radius = strval(tmp);
if(b_radius < 5 || b_radius > 50) return SendClientMessage(playerid, COLOR_LIGHTRED, "[ERROR:] Der Radius muss zwischen 5 und 50 Meter liegen!");
AddBlitzer(playerid,b_speed,b_radius);
SendClientMessage(playerid, COLOR_LSPD, "[ZENTRALE:] Ein Blitzer wurde erfolgreich aufgestellt und registriert!");
return 1;
}
else if(strcmp(tmp,"remove",true) == 0)
{
RemoveBlitzer(playerid);
SendClientMessage(playerid, COLOR_LSPD, "[ZENTRALE:] Dieser Blitzer wurde erfolgreich abgebaut und aus der Akte entfernt!");
return 1;
}
else if(strcmp(tmp,"removeall",true) == 0)
{
RemoveAllBlitzer();
SendClientMessage(playerid, COLOR_LSPD, "[ZENTRALE:] Dieser Blitzer wurde erfolgreich abgebaut und aus der Akte entfernt!");
return 1;
}
else if(strcmp(tmp,"count",true) == 0)
{
SendFormattedText(playerid, COLOR_LSPD, "[ZENTRALE:] Es sind momentan %d Blitzer registriert und werden um 4.00 Uhr abgebaut!", CountBlitzer());
return 1;
}
else
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[BENUTZUNG:] /blitzer [Funktion]");
SendClientMessage(playerid, COLOR_WHITE, "Verfügbare Funktionen: add, remove, removeall, count");
return 1;
}
}
kann mir das wer fixxen und auch gleich máchen das das nur cops könne ?
LG
//edit habe einen error raus