/Adminauto Errors

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • C:\Users\Brandon\Desktop\[GER]TheLostofReallife[0.3e]\gamemodes\Reallife.pwn(677) : error 017: undefined symbol "adminveh"
    C:\Users\Brandon\Desktop\[GER]TheLostofReallife[0.3e]\gamemodes\Reallife.pwn(677) : warning 215: expression has no effect
    C:\Users\Brandon\Desktop\[GER]TheLostofReallife[0.3e]\gamemodes\Reallife.pwn(677) : error 001: expected token: ";", but found "]"
    C:\Users\Brandon\Desktop\[GER]TheLostofReallife[0.3e]\gamemodes\Reallife.pwn(677) : error 029: invalid expression, assumed zero
    C:\Users\Brandon\Desktop\[GER]TheLostofReallife[0.3e]\gamemodes\Reallife.pwn(677) : fatal error 107: too many error messages on one line


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    4 Errors.


    ocmd:adminauto(playerid,params[])
    {
    new Float:x,Float:y, Float:z;
    new Text3D:supportveh[MAX_VEHICLES];
    new c1,c2,vid;
    if(sscanf(params,"iii",vid,c1,c2))return SendClientMessage(playerid,DUNKELROT,"[System]Benutze die Verwendung : /Adminauto [CARID] [FARBE1] [FARBE2]");
    {
    if(vid<402||vid>603)return SendClientMessage(playerid,DUNKELROT,"[System]Du hast eine Ungültige Fahrzeug-ID eingegeben !");
    {
    GetPlayerPos(playerid,x,y,z);
    new car;
    SetVehicleNumberPlate(car = CreateVehicle(vid,x,y,z,3,c1,c2,-1),"Administrator");
    PutPlayerInVehicle(playerid,car,0);
    SendClientMessage(playerid,DUNKELROT,"[Admin]Du hast dein Administrator-Auto erfolgreich gespawnt !");
    adminveh[car] = Create3DTextLabel("Administrator",BSNE,0.0,0.0,0.0,50.0,0,1);//Diese Zeile !
    Attach3DTextLableToVehicle(adminveh[car],car,0.0,0.0,2.0);
    return 1;
    }
    else
    {
    SendClientMessage(playerid,DUNKELROT,"[System]Du bist nicht berechtigt diesen Befehl zu benutzen !");
    return 1;
    }
    }
    }

  • ocmd:adminauto(playerid,params[]){
    new Float:x,Float:y, Float:z;
    new Text3D:adminveh[MAX_VEHICLES];
    new c1,c2,vid;
    if(sscanf(params,"iii",vid,c1,c2))return SendClientMessage(playerid,DUNKELROT,"[System]Benutze die Verwendung : /Adminauto [CARID] [FARBE1] [FARBE2]");
    {
    if(vid<402||vid>603)return SendClientMessage(playerid,DUNKELROT,"[System]Du hast eine Ungültige Fahrzeug-ID eingegeben !");
    {
    GetPlayerPos(playerid,x,y,z);
    new adminveh;
    SetVehicleNumberPlate(adminveh= CreateVehicle(vid,x,y,z,3,c1,c2,-1),"Administrator");
    PutPlayerInVehicle(playerid,adminveh,0);
    SendClientMessage(playerid,DUNKELROT,"[Admin]Du hast dein Administrator-Auto erfolgreich gespawnt !");
    adminveh = Create3DTextLabel("Administrator",BSNE,0.0,0.0,0.0,50.0,0,1);//Diese Zeile !
    Attach3DTextLableToVehicle(adminveh,0.0,0.0,2.0);
    return 1;
    }
    else
    {
    SendClientMessage(playerid,DUNKELROT,"[System]Du bist nicht berechtigt diesen Befehl zu benutzen !");
    return 1;
    }
    }


    Probier es mal so

  • C:\Users\Brandon\Desktop\[GER]TheLostofReallife[0.3e]\gamemodes\Reallife.pwn(678) : error 017: undefined symbol "adminveh"
    C:\Users\Brandon\Desktop\[GER]TheLostofReallife[0.3e]\gamemodes\Reallife.pwn(678) : error 017: undefined symbol "BSNE"
    C:\Users\Brandon\Desktop\[GER]TheLostofReallife[0.3e]\gamemodes\Reallife.pwn(679) : error 017: undefined symbol "Attach3DTextLableToVehicle"
    C:\Users\Brandon\Desktop\[GER]TheLostofReallife[0.3e]\gamemodes\Reallife.pwn(679) : warning 215: expression has no effect
    C:\Users\Brandon\Desktop\[GER]TheLostofReallife[0.3e]\gamemodes\Reallife.pwn(679) : error 001: expected token: ";", but found "]"
    C:\Users\Brandon\Desktop\[GER]TheLostofReallife[0.3e]\gamemodes\Reallife.pwn(679) : error 029: invalid expression, assumed zero
    C:\Users\Brandon\Desktop\[GER]TheLostofReallife[0.3e]\gamemodes\Reallife.pwn(679) : fatal error 107: too many error messages on one line


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    6 Errors.

  • ocmd:adminauto(playerid,params[])
    {
    new Float:x,Float:y, Float:z;
    new Text3D:adminveh[MAX_VEHICLES];
    new c1,c2,vid;
    if(sscanf(params,"iii",vid,c1,c2))return SendClientMessage(playerid,DUNKELROT,"[System]Benutze die Verwendung : /Adminauto [CARID] [FARBE1] [FARBE2]");
    {
    if(vid<402||vid>603)return SendClientMessage(playerid,DUNKELROT,"[System]Du hast eine Ungültige Fahrzeug-ID eingegeben !");
    {
    GetPlayerPos(playerid,x,y,z);
    new car;
    SetVehicleNumberPlate(car = CreateVehicle(vid,x,y,z,3,c1,c2,-1),"Administrator");
    PutPlayerInVehicle(playerid,car,0);
    SendClientMessage(playerid,DUNKELROT,"[Admin]Du hast dein Administrator-Auto erfolgreich gespawnt !");
    adminveh[car] = Create3DTextLabel("Administrator",0.0,0.0,0.0,50.0,0,1);//Diese Zeile !
    Attach3DTextLabelToVehicle(adminveh[car],car,0.0,0.0,2.0);
    return 1;
    }
    else
    {
    SendClientMessage(playerid,DUNKELROT,"[System]Du bist nicht berechtigt diesen Befehl zu benutzen !");
    return 1;
    }
    }
    }


    Weiß net obs geht mache es vom Handy aus

  • C:\Users\Brandon\Desktop\[GER]TheLostofReallife[0.3e]\gamemodes\Reallife.pwn(677) : warning 213: tag mismatch
    C:\Users\Brandon\Desktop\[GER]TheLostofReallife[0.3e]\gamemodes\Reallife.pwn(681) : warning 225: unreachable code
    C:\Users\Brandon\Desktop\[GER]TheLostofReallife[0.3e]\gamemodes\Reallife.pwn(681) : error 029: invalid expression, assumed zero
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.

  • ocmd:adminauto(playerid,params[])
    {
    new Float:x,Float:y, Float:z;
    new Text3D:adminveh[MAX_VEHICLES];
    new c1,c2,vid;
    if(sscanf(params,"iii",vid,c1,c2))return SendClientMessage(playerid,DUNKELROT,"[System]Benutze die Verwendung : /Adminauto [CARID] [FARBE1] [FARBE2]");
    if(IstSpielerAdmin(playerid,1))
    {
    if(vid<402||vid>603)return SendClientMessage(playerid,DUNKELROT,"[System]Du hast eine Ungültige Fahrzeug-ID eingegeben !");
    {
    GetPlayerPos(playerid,x,y,z);
    new car;
    SetVehicleNumberPlate(car = CreateVehicle(vid,x,y,z,3,c1,c2,-1),"Administrator");
    PutPlayerInVehicle(playerid,car,0);
    SendClientMessage(playerid,DUNKELROT,"[Admin]Du hast dein Administrator-Auto erfolgreich gespawnt !");
    adminveh[car] = Create3DTextLabel("Administrator",0.0,0.0,0.0,50.0,0,1);!
    Attach3DTextLabelToVehicle(adminveh[car],car,0.0,0.0,2.0);
    return 1;
    }
    else//hier
    {
    SendClientMessage(playerid,DUNKELROT,"[System]Du bist nicht berechtigt diesen Befehl zu benutzen !");
    return 1;
    }
    }
    }