Beiträge von JayDeN_MartineZ

    Habe ein paar Fehler :(


    Bei OCMD kommen dieser Fehler:


    ocmd:gov(playerid,parama[])
    {
    if(IsPlayerInFrac(playerid,1)) //Polizei Rang 6
    {
    if(GetPVarInt(playerid,"Rang") == 6)
    {
    new Text[128],string[128];
    if(sscanf(params,"s",Text))return SendClientMessage(playerid,White,"Benutze: /gov [Text]");
    format(string,sizeof(string),"Polizeidirektor %s: %s",SpielerName(playerid),Text);
    SendClientMessageToAll(White,string);
    }
    }
    if(IsPlayerInFrac(playerid,1)) //Polizei Rang 5
    {
    if(GetPVarInt(playerid,"Rang") == 5)
    {
    new Text[128],string[128];
    if(sscanf(params,"s",Text))return SendClientMessage(playerid,White,"Benutze: /gov [Text]");
    format(string,sizeof(string),"Stellv. Polizeidirektor %s: %s",SpielerName(playerid),Text);
    SendClientMessageToAll(White,string);
    }
    }
    if(IsPlayerInFrac(playerid,2)) //Bundeswehr Rang 5
    {
    if(GetPVarInt(playerid,"Rang") == 5)
    {
    new Text[128],string[128];
    if(sscanf(params,"s",Text))return SendClientMessage(playerid,White,"Benutze: /gov [Text]");
    format(string,sizeof(string),"Stellv. General %s: %s",SpielerName(playerid),Text);
    SendClientMessageToAll(White,string);
    }
    }
    if(IsPlayerInFrac(playerid,2)) //Bundeswehr Rang 6
    {
    if(GetPVarInt(playerid,"Rang") == 6)
    {
    new Text[128],string[128];
    if(sscanf(params,"s",Text))return SendClientMessage(playerid,White,"Benutze: /gov [Text]");
    format(string,sizeof(string),"General %s: %s",SpielerName(playerid),Text);
    SendClientMessageToAll(White,string);
    }
    }
    if(IsPlayerInFrac(playerid,3)) //FBI Rang 6
    {
    if(GetPVarInt(playerid,"Rang") == 6)
    {
    new Text[128],string[128];
    if(sscanf(params,"s",Text))return SendClientMessage(playerid,White,"Benutze: /gov [Text]");
    format(string,sizeof(string),"FBI Direktor %s: %s",SpielerName(playerid),Text);
    SendClientMessageToAll(White,string);
    }
    }
    if(IsPlayerInFrac(playerid,3)) //FBI Rang 5
    {
    if(GetPVarInt(playerid,"Rang") == 5)
    {
    new Text[128],string[128];
    if(sscanf(params,"s",Text))return SendClientMessage(playerid,White,"Benutze: /gov [Text]");
    format(string,sizeof(string),"Stellv. FBI Direktor %s: %s",SpielerName(playerid),Text);
    SendClientMessageToAll(White,string);
    }
    }
    if(IsPlayerInFrac(playerid,4)) //Notarzt Rang 5
    {
    if(GetPVarInt(playerid,"Rang") == 5)
    {
    new Text[128],string[128];
    if(sscanf(params,"s",Text))return SendClientMessage(playerid,White,"Benutze: /gov [Text]");
    format(string,sizeof(string),"Stellv. Notarztleiter %s: %s",SpielerName(playerid),Text);
    SendClientMessageToAll(White,string);
    }
    }
    if(IsPlayerInFrac(playerid,4)) //Notarzt Rang 6
    {
    if(GetPVarInt(playerid,"Rang") == 6)
    {
    new Text[128],string[128];
    if(sscanf(params,"s",Text))return SendClientMessage(playerid,White,"Benutze: /gov [Text]");
    format(string,sizeof(string),"Notarztleiter %s: %s",SpielerName(playerid),Text);
    SendClientMessageToAll(White,string);
    }
    }
    if(IsPlayerInFrac(playerid,5)) //ADAC Rang 6
    {
    if(GetPVarInt(playerid,"Rang") == 6)
    {
    new Text[128],string[128];
    if(sscanf(params,"s",Text))return SendClientMessage(playerid,White,"Benutze: /gov [Text]");
    format(string,sizeof(string),"ADAC Leiter %s: %s",SpielerName(playerid),Text);
    SendClientMessageToAll(White,string);
    }
    }
    if(IsPlayerInFrac(playerid,5)) //ADAC Rang 5
    {
    if(GetPVarInt(playerid,"Rang") == 5)
    {
    new Text[128],string[128];
    if(sscanf(params,"s",Text))return SendClientMessage(playerid,White,"Benutze: /gov [Text]");
    format(string,sizeof(string),"Stellv. ADAC Leiter %s: %s",SpielerName(playerid),Text);
    SendClientMessageToAll(White,string);
    }
    }
    if(IsPlayerInFrac(playerid,6)) //First News Rang 5
    {
    if(GetPVarInt(playerid,"Rang") == 5)
    {
    new Text[128],string[128];
    if(sscanf(params,"s",Text))return SendClientMessage(playerid,White,"Benutze: /gov [Text]");
    format(string,sizeof(string),"Stellv. First News Leiter %s: %s",SpielerName(playerid),Text);
    SendClientMessageToAll(White,string);
    }
    }
    if(IsPlayerInFrac(playerid,6)) //First News Rang 5
    {
    if(GetPVarInt(playerid,"Rang") == 6)
    {
    new Text[128],string[128];
    if(sscanf(params,"s",Text))return SendClientMessage(playerid,White,"Benutze: /gov [Text]");
    format(string,sizeof(string),"First News Leiter %s: %s",SpielerName(playerid),Text);
    SendClientMessageToAll(White,string);
    }
    }
    return 1;
    }


    Was komisch ist, ich habe oben im Script ocmd definiert und es laufen auch andere Befehle drüber nur hier klappt es nicht :|


    Edit:


    Es kommen folgende Fehler:


    Zeile (24399) : Ungültiger Befehl
    Zeile (24399) : Unbekannte Variable : "ocmd_gov"
    Zeile (24399) : Ungültiger Befehl
    Zeile (24399) : Zuviele Fehler in einer Zeile


    5 Errors, 0 Warnungen
    Du hast Errors im Skript. Kompilierung abgebrochen


    PWNMod Compiler Version 1.2
    (c) Trooper[Y]
    In Kooperation mit GTA-Servers.de