Guten Abend,
Die Codes zu den jeweiligen Errors wären auch ganz gut, ansonsten können wir dir schlecht helfen.
Mit freundlichen Grüßen German_ScripterHD
Oh Sorry
C:\Users\Durak\Desktop\Paket\SSS\aa\ee\Script by \gamemodes\getmyselfmade.pwn(18684) : warning 209: function "cmd_fmsreset" should return a value
COMMAND:fmsreset(playerid,params[])
{
#pragma unused params
if(ImTutorial[playerid] != 0)return SendClientMessage(playerid,GRAU,"Du kannst keine Befehle nutzen,da du im Tutorial bist.");
if(GetPVarInt(playerid,"Eingeloggt") == 0)return SendClientMessage(playerid,GRAU,"Du bist nicht eingeloggt!");
if(Spieler[playerid][pAWAYFROMKEYBOARD] == 1)return SendClientMessage(playerid,WRONGCMD,"Du bist im AFK-Modus und kannst somit keine Befehle nutzen."),SendClientMessage(playerid,WRONGCMD,"BENUTZE: /back");
if(Spieler[playerid][pLeader] == 4)
{
for(new i; i<sizeof(Feuerwehrlabel);i++)
{
new FText[2048],Fname[1024];
if(MedicVehs[0] == MedicVehs[i]) format(Fname,sizeof(Fname),"RHC-1");
if(MedicVehs[1] == MedicVehs[i]) format(Fname,sizeof(Fname),"ELW-1");
if(MedicVehs[2] == MedicVehs[i]) format(Fname,sizeof(Fname),"DLK-1");
if(MedicVehs[3] == MedicVehs[i]) format(Fname,sizeof(Fname),"HLF-1");
if(MedicVehs[4] == MedicVehs[i]) format(Fname,sizeof(Fname),"HLF-2");
if(MedicVehs[5] == MedicVehs[i]) format(Fname,sizeof(Fname),"NEW-2");
if(MedicVehs[6] == MedicVehs[i]) format(Fname,sizeof(Fname),"HLF-4");
if(MedicVehs[7] == MedicVehs[i]) format(Fname,sizeof(Fname),"HLF-3");
if(MedicVehs[8] == MedicVehs[i]) format(Fname,sizeof(Fname),"RTW-2");
if(MedicVehs[9] == MedicVehs[i]) format(Fname,sizeof(Fname),"RTW-1");
if(MedicVehs[10] == MedicVehs[i]) format(Fname,sizeof(Fname),"NEF-1");
if(MedicVehs[11] == MedicVehs[i]) format(Fname,sizeof(Fname),"DLK-2");
if(MedicVehs[12] == MedicVehs[i]) format(Fname,sizeof(Fname),"ELW-2");
if(MedicVehs[13] == MedicVehs[i]) format(Fname,sizeof(Fname),"KDOW-1");
if(MedicVehs[14] == MedicVehs[i]) format(Fname,sizeof(Fname),"ELW-3");
format(FText,sizeof(FText),"{008500}%s \n Status 2 \n Frei auf Wache",Fname);
Update3DTextLabelText(Feuerwehrlabel[i],0x008500FF,FText);
FeuerwehrFMS[i] = 2;
return 1;
}
}
else if(Spieler[playerid][pLeader] == 14)
{
for(new i; i<sizeof(THWGFZ);i++)
{
new FText[2048],Fname[1024];
if(THWGFZ[0] == THWGFZ[i]) format(Fname,sizeof(Fname),"THW Helicopter-1");
if(THWGFZ[1] == THWGFZ[i]) format(Fname,sizeof(Fname),"THW Personenkraftwagen(gl)-2");
if(THWGFZ[2] == THWGFZ[i]) format(Fname,sizeof(Fname),"THW Einsatzfahrzeug-2");
if(THWGFZ[3] == THWGFZ[i]) format(Fname,sizeof(Fname),"THW Jeep Personenkraftwagen-1");
if(THWGFZ[4] == THWGFZ[i]) format(Fname,sizeof(Fname),"THW Jeep Personenkraftwagen-2");
if(THWGFZ[5] == THWGFZ[i]) format(Fname,sizeof(Fname),"THW Leiter Lastkraftwagen-1");
if(THWGFZ[6] == THWGFZ[i]) format(Fname,sizeof(Fname),"THW Leiter Lastkraftwagen-2");
if(THWGFZ[7] == THWGFZ[i]) format(Fname,sizeof(Fname),"THW Leiter Lastkraftwagen-3");
if(THWGFZ[8] == THWGFZ[i]) format(Fname,sizeof(Fname),"THW Leiter Lastkraftwagen-4");
if(THWGFZ[9] == THWGFZ[i]) format(Fname,sizeof(Fname),"THW Gerätekraftwagen(GKW)-1");
if(THWGFZ[10] == THWGFZ[i]) format(Fname,sizeof(Fname),"THW Gerätekraftwagen(GKW)-2");
if(THWGFZ[11] == THWGFZ[i]) format(Fname,sizeof(Fname),"THW Gerätekraftwagen(GKW)-3");
if(THWGFZ[12] == THWGFZ[i]) format(Fname,sizeof(Fname),"THW Gerätekraftwagen(GKW)-4");
if(THWGFZ[13] == THWGFZ[i]) format(Fname,sizeof(Fname),"THW Gerätekraftwagen(GKW)-5");
if(THWGFZ[14] == THWGFZ[i]) format(Fname,sizeof(Fname),"THW Gerätekraftwagen(GKW)-6");
//if(THWGFZ[15] == THWGFZ[i]) format(Fname,sizeof(Fname),"THW Gerätekraftwagen(GKW)-7");
//if(THWGFZ[16] == THWGFZ[i]) format(Fname,sizeof(Fname),"THW Gerätekraftwagen(GKW)-8");
//if(THWGFZ[17] == THWGFZ[i]) format(Fname,sizeof(Fname),"THW Jeep Personenkraftwagen-3");
//if(THWGFZ[18] == THWGFZ[i]) format(Fname,sizeof(Fname),"THW Jeep Personenkraftwagen-4");
//if(THWGFZ[19] == THWGFZ[i]) format(Fname,sizeof(Fname),"THW Jeep Personenkraftwagen-5");
//if(THWGFZ[20] == THWGFZ[i]) format(Fname,sizeof(Fname),"THW Helicopter-2");
format(FText,sizeof(FText),"{008500}%s \n Status 2 \n Frei auf Wache",Fname);
Update3DTextLabelText(THWlabel[i],0xFFFFFFAA,FText);
THWFMS[i] = 2;
return 1;
}
}
else return SendClientMessage(playerid,0x0069FFFF,"Du bist nicht berechtigt!");//elsereturn
}
Und ich kann den befehl nicht benutzen es steht immer Du bist nicht berechtigt!