Hallo
Ich habe Errors undzwar viele in meinen System.
Ich habe einen Befehl gescriptet womit man als PdLer rauchsignale legen kann.
Nur leider habe ich ein paar Errors / Fehler drinne.
Möchtet ihr mir helfen ?
Das sind die Errors
C:\Users\steffen\Desktop\Sunshine Script\GNEEE.pwn(82) : error 017: undefined symbol "ObjectInfo"
C:\Users\steffen\Desktop\Sunshine Script\GNEEE.pwn(82) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\steffen\Desktop\Sunshine Script\GNEEE.pwn(61928) : error 091: ambiguous constant; tag override is required (symbol "Erstellt")
C:\Users\steffen\Desktop\Sunshine Script\GNEEE.pwn(61930) : warning 213: tag mismatch
C:\Users\steffen\Desktop\Sunshine Script\GNEEE.pwn(61931) : warning 213: tag mismatch
C:\Users\steffen\Desktop\Sunshine Script\GNEEE.pwn(61932) : warning 213: tag mismatch
C:\Users\steffen\Desktop\Sunshine Script\GNEEE.pwn(61933) : error 091: ambiguous constant; tag override is required (symbol "Erstellt")
C:\Users\steffen\Desktop\Sunshine Script\GNEEE.pwn(61934) : error 091: ambiguous constant; tag override is required (symbol "ID")
C:\Users\steffen\Desktop\Sunshine Script\GNEEE.pwn(61939) : error 017: undefined symbol "GRAU"
C:\Users\steffen\Desktop\Sunshine Script\GNEEE.pwn(61947) : error 091: ambiguous constant; tag override is required (symbol "Erstellt")
C:\Users\steffen\Desktop\Sunshine Script\GNEEE.pwn(61957) : warning 213: tag mismatch
C:\Users\steffen\Desktop\Sunshine Script\GNEEE.pwn(61957) : warning 213: tag mismatch
C:\Users\steffen\Desktop\Sunshine Script\GNEEE.pwn(61957) : warning 213: tag mismatch
C:\Users\steffen\Desktop\Sunshine Script\GNEEE.pwn(61959) : error 091: ambiguous constant; tag override is required (symbol "Erstellt")
C:\Users\steffen\Desktop\Sunshine Script\GNEEE.pwn(61961) : error 091: ambiguous constant; tag override is required (symbol "Erstellt")
C:\Users\steffen\Desktop\Sunshine Script\GNEEE.pwn(61962) : warning 213: tag mismatch
C:\Users\steffen\Desktop\Sunshine Script\GNEEE.pwn(61963) : warning 213: tag mismatch
C:\Users\steffen\Desktop\Sunshine Script\GNEEE.pwn(61964) : warning 213: tag mismatch
C:\Users\steffen\Desktop\Sunshine Script\GNEEE.pwn(61965) : error 091: ambiguous constant; tag override is required (symbol "ID")
C:\Users\steffen\Desktop\Sunshine Script\GNEEE.pwn(61971) : error 017: undefined symbol "GRAU"
C:\Users\steffen\Desktop\Sunshine Script\GNEEE.pwn(61978) : error 091: ambiguous constant; tag override is required (symbol "Erstellt")
C:\Users\steffen\Desktop\Sunshine Script\GNEEE.pwn(61980) : error 091: ambiguous constant; tag override is required (symbol "Erstellt")
C:\Users\steffen\Desktop\Sunshine Script\GNEEE.pwn(61981) : warning 213: tag mismatch
C:\Users\steffen\Desktop\Sunshine Script\GNEEE.pwn(61982) : warning 213: tag mismatch
C:\Users\steffen\Desktop\Sunshine Script\GNEEE.pwn(61983) : warning 213: tag mismatch
C:\Users\steffen\Desktop\Sunshine Script\GNEEE.pwn(61984) : error 091: ambiguous constant; tag override is required (symbol "ID")
Hier ist mein Gescriptetes.
ocmd:rauchsignal(playerid,params[])
{
#pragma unused params
if(PlayerInfo[playerid][pTot]==1)return ErrorMsg(playerid,"Du bist in der Notaufnahme.");
if(PlayerInfo[playerid][pLicht]==1)return ErrorMsg(playerid,"Laufe ins Licht...");
if(PlayerInfo[playerid][pGangJailed]==1)return ErrorMsg(playerid,"Du bist im Gangjail...");
if(PlayerInfo[playerid][pJailed]>=1)return ErrorMsg(playerid,"Du bist im Gefängnis.");
if(PlayerCuffed[playerid]==1)return ErrorMsg(playerid,"Du bist gefesselt.");
new string[96];
if(IsPlayerInFrac(playerid,1)||IsPlayerInFrac(playerid,2)||IsPlayerInFrac(playerid,3))
{
if(OnDuty[playerid]==0)return ErrorMsg(playerid,"Nicht im Dienst.");
if(RauchsignalCount() == MAX_RAUCHSIGNAL)return ErrorMsg(playerid,"Es können gerade keine Rauchsignale gelegt werden.");
AddRauchsignal(playerid);
format(string,sizeof(string),"** %s zündet ein Rauchsignal um sich bemerkbar zumachen **",MeinName(playerid));
ProxDetector(30.0,playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return 1;
}
return ErrorMsg(playerid,"Du bist nicht in der jeweiligen Fraktion.");
}
ocmd:delrauchsignal(playerid,params[])
{
#pragma unused params
if(PlayerInfo[playerid][pTot]==1)return ErrorMsg(playerid,"Du bist in der Notaufnahme.");
if(PlayerInfo[playerid][pLicht]==1)return ErrorMsg(playerid,"Laufe ins Licht...");
if(PlayerInfo[playerid][pGangJailed]==1)return ErrorMsg(playerid,"Du bist im Gangjail...");
if(PlayerInfo[playerid][pJailed]>=1)return ErrorMsg(playerid,"Du bist im Gefängnis.");
if(PlayerCuffed[playerid]==1)return ErrorMsg(playerid,"Du bist gefesselt.");
if(IsPlayerInFrac(playerid,1)||IsPlayerInFrac(playerid,2)||IsPlayerInFrac(playerid,3))
{
if(OnDuty[playerid]==0)return ErrorMsg(playerid,"Nicht im Dienst.");
if(IsPlayerInAnyVehicle(playerid))return ErrorMsg(playerid,"Im Fahrzeug nicht möglich.");
RemoveRauchsignal(playerid);
return 1;
}
return ErrorMsg(playerid,"Du bist nicht in der jeweiligen Fraktion.");
}
ocmd:delallrauchsignal(playerid,params[])
{
#pragma unused params
if(PlayerInfo[playerid][pTot]==1)return ErrorMsg(playerid,"Du bist in der Notaufnahme.");
if(PlayerInfo[playerid][pLicht]==1)return ErrorMsg(playerid,"Laufe ins Licht...");
if(PlayerInfo[playerid][pGangJailed]==1)return ErrorMsg(playerid,"Du bist im Gangjail...");
if(PlayerInfo[playerid][pJailed]>=1)return ErrorMsg(playerid,"Du bist im Gefängnis.");
if(PlayerCuffed[playerid]==1)return ErrorMsg(playerid,"Du bist gefesselt.");
new string[128];
if(IsPlayerInFrac(playerid,1)||IsPlayerInFrac(playerid,2)||IsPlayerInFrac(playerid,3))
{
if(OnDuty[playerid]==0)return ErrorMsg(playerid,"Nicht im Dienst.");
RemoveAllRauchsignal();
SendClientMessageToAll(COLOR_WHITE,"|____________Goverment Meldung____________|");
format(string,sizeof(string),"%s hat alle Rauchsignale entfernt!",MeinName(playerid));
SendClientMessageToAll(0x00489184,string);
return 1;
}
return ErrorMsg(playerid,"Du bist nicht in der jeweiligen Fraktion.");
}
stock AddRauchsignal(playerid)
{
new Float:x,Float:y,Float:z,Float:a;
GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid,a);
for(new i=0;i<MAX_RAUCHSIGNAL;i++)
{
if(Rauchsignal[i][Erstellt] == 0)
{
Rauchsignal[i][sperreX] = x;
Rauchsignal[i][sperreY] = y;
Rauchsignal[i][sperreZ] = z;
Rauchsignal[i][Erstellt] = 1;
Rauchsignal[i][ID] = CreateDynamicObject(18728,Rauchsignal[i][sperreX],Rauchsignal[i][sperreY],Rauchsignal[i][sperreZ] - 2,0.0,0.0,a+90.0);
SendClientMessage(playerid,0x00489184,"Rauchsignal errichtet.");
return i;
}
}
return SendClientMessage(playerid,GRAU,"Es wurden bereits "#MAX_RAUCHSIGNAL" Rauchsignale gezündet.");
}
stock RauchsignalCount()
{
new index;
for(new i=0;i<MAX_RAUCHSIGNAL;i++)
{
if(Rauchsignal[i][Erstellt] == 1)
index++;
}
return index;
}
stock RemoveRauchsignal(playerid)
{
for(new i=0;i<MAX_RAUCHSIGNAL;i++)
{
if(IsPlayerInRangeOfPoint(playerid,2,Rauchsignal[i][sperreX],Rauchsignal[i][sperreY],Rauchsignal[i][sperreZ]))
{
if(Rauchsignal[i][Erstellt] == 1)
{
Rauchsignal[i][Erstellt] = 0;
Rauchsignal[i][sperreX] = -1;
Rauchsignal[i][sperreY] = -1;
Rauchsignal[i][sperreZ] = -1;
DestroyDynamicObject(Rauchsignal[i][ID]);
SendClientMessage(playerid,0x00489184,"Rauchsignal entfernt.");
return i;
}
}
}
return SendClientMessage(playerid,GRAU,"An keinem Rauchsignal.");
}
stock RemoveAllRauchsignal()
{
for(new i=0;i<MAX_RAUCHSIGNAL;i++)
{
if(Rauchsignal[i][Erstellt] == 1)
{
Rauchsignal[i][Erstellt] = 0;
Rauchsignal[i][sperreX] = -1;
Rauchsignal[i][sperreY] = -1;
Rauchsignal[i][sperreZ] = -1;
DestroyDynamicObject(Rauchsignal[i][ID]);
}
}
return 1;
}
#define MAX_RAUCHSIGNAL 50
Wo liegt der Fehler denn ?