Beiträge von Favela

    Hay habe gerade ein befehl gescriptet wo man ein smobil bekommt (bewusst ohne admin abfrage) und jetzt brauche ich mal hilfe mit den errors


    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(226) : error 001: expected token: "-string end-", but found "-identifier-"
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(226) : error 017: undefined symbol "Ausw"
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(226) : error 029: invalid expression, assumed zero
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(226) : 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.


    Zeile 224-238:


    if(strcmp("/supmobil add",cmdtext,true) == 0)
    {
    ShowPlayerDialog(playerid, DIALOG_SUPMOBIL, DIALOG_STYLE_LIST,"Supmobil","Sultan\nRancher\nCaddy,"Auswählen","Abbrechen");
    return 1;
    }

    if(strcmp("/supmobil del",cmdtext,true) == 0)
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    DestroyVehicle(GetPlayerVehicleID(playerid));
    return 1;
    }
    return 1;
    }

    Habe jetzt noch die Errors :D


    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(180) : error 017: undefined symbol "Spielerdatei"
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(406) : warning 217: loose indentation
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(803) : warning 204: symbol is assigned a value that is never used: "string2"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.

    Spielerdatei wurde 2x definiert.
    Musst du also einmal umbenennen (oder wenn es unnütz ist, entfernen)


    okay
    jetzt kommt leider das...


    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(70) : warning 217: loose indentation
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(143) : warning 217: loose indentation
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(180) : error 017: undefined symbol "Spielerdatei"
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(406) : warning 217: loose indentation
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(803) : warning 204: symbol is assigned a value that is never used: "string2"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.

    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(71) : warning 217: loose indentation
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(144) : warning 217: loose indentation
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(164) : warning 219: local variable "Spielerdatei" shadows a variable at a preceding level
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(182) : error 029: invalid expression, assumed zero
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(407) : warning 217: loose indentation
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(787) : warning 219: local variable "Spielerdatei" shadows a variable at a preceding level
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(803) : warning 219: local variable "Spielerdatei" shadows a variable at a preceding level
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(804) : warning 204: symbol is assigned a value that is never used: "string2"
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(804 -- 820) : warning 219: local variable "Spielerdatei" shadows a variable at a preceding level
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(841) : warning 219: local variable "Spielerdatei" shadows a variable at a preceding level
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.


    Zeile 197-186:


    public OnPlayerDisconnect(playerid, reason)
    {
    if(GetPVarInt(Spielerdatei,"loggedin") == 1 //Falls er eingeloggt war
    {
    SpielerSpeichern(playerid); //Unsere SpielerSpeichern-Funktion wird angewendet......
    }
    return 1;
    }

    Über den public's.

    Okay danke jetzt habe ich aber noch diese Errors:


    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(107) : warning 225: unreachable code
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(284) : error 017: undefined symbol "x_max"
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(299) : error 017: undefined symbol "x_max"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    2 Errors.


    Hir die Zeilen:


    forward SetDeathSpawn(playerid);
    public SetDeathSpawn(playerid)
    {
    if(PlayerDeathTime[playerid] == 1)
    {
    SetPlayerWorldBounds(playerid,Float:x_max,Float:x_min,Float:y_max,Float:y_min);
    SetPlayerPos(playerid, 815.5361,-1100.6260,25.7900);
    SendClientMessage(playerid, Grau,"Du bist nun für ca. 3 Minuten auf dem Friedhof.");
    SetPlayerSkin(playerid, 162);
    SetTimerEx("SetPlayerSpawn",180000,0,"i",playerid);
    SetTimerEx("PlayerDeathReset",170000,0,"i",playerid);
    }
    }

    Ich brauche würklich dringent hilfe
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(33) : error 055: start of function body without function header
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(107) : warning 225: unreachable code
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(279) : warning 235: public function lacks forward declaration (symbol "SetDeathSpawn")
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(283) : error 017: undefined symbol "x_max"
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(292) : warning 235: public function lacks forward declaration (symbol "PlayerDeathReset")
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(297) : error 017: undefined symbol "x_max"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    3 Errors.


    Hir die Meldungen


    Zeile 32-38:
    main();
    {
    print("\n----------------------------------");
    print(" SoL-Reallife");
    print(" by Tom");
    print("----------------------------------\n");
    }


    Zeile 279-290:


    public SetDeathSpawn(playerid)
    {
    if(PlayerDeathTime[playerid] == 1)
    {
    SetPlayerWorldBounds(playerid,Float:x_max,Float:x_min,Float:y_max,Float:y_min);
    SetPlayerPos(playerid, 815.5361,-1100.6260,25.7900);
    SendClientMessage(playerid, Grau,"Du bist nun für ca. 3 Minuten auf dem Friedhof.");
    SetPlayerSkin(playerid, 162);
    SetTimerEx("SetPlayerSpawn",180000,0,"i",playerid);
    SetTimerEx("PlayerDeathReset",170000,0,"i",playerid);
    }
    }


    Zeile: 292-299


    public PlayerDeathReset(playerid)
    {
    if(PlayerDeathTime[playerid] == 1)
    {
    PlayerDeathTime[playerid] = 0;
    SetPlayerWorldBounds(playerid,Float:x_max,Float:x_min,Float:y_max,Float:y_min)
    }
    }


    okay jetzt habe ich noch die errors


    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(33) : error 001: expected token: ";", but found "("
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(108) : warning 225: unreachable code
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(280) : warning 235: public function lacks forward declaration (symbol "SetDeathSpawn")
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(284) : error 017: undefined symbol "x_max"
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(293) : warning 235: public function lacks forward declaration (symbol "PlayerDeathReset")
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(298) : error 017: undefined symbol "x_max"
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(552) : warning 203: symbol is never used: "main"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    3 Errors.

    forward PlayerDeathReset(playerid);
    forward SetDeathSpawn(playerid);
    und x_max ist anscheinend nicht deklariert


    für den error undefined symbol "playerid" bräuchte man die zeilen dafür


    Hir die Zeilen


    public OnVehicleSpawn(vehicleid)
    {
    if(PlayerDeathTime[playerid] == 1)
    {
    SetPlayerPos(playerid, 815.5361,-1100.6260,25.7900);
    }
    return 1;
    }

    Hay Leute brauche mal hilfe es kommen diese Errors


    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(99) : warning 225: unreachable code
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(104) : error 017: undefined symbol "playerid"
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(106) : error 017: undefined symbol "playerid"
    C:\Users\Klaus\Desktop\Home
    Server\gamemodes\scriptingstuendlein.pwn(275) : warning 235: public
    function lacks forward declaration (symbol "SetDeathSpawn")
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(279) : error 017: undefined symbol "x_max"
    C:\Users\Klaus\Desktop\Home
    Server\gamemodes\scriptingstuendlein.pwn(288) : warning 235: public
    function lacks forward declaration (symbol "PlayerDeathReset")
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(293) : error 017: undefined symbol "x_max"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    4 Errors.


    public OnPlayerDeath(playerid, killerid, reason)
    {
    SendClientMessage(killerid,DRot,"System: Du hast ein Verbrechen begangen | Reporter: Annonym");
    SendClientMessage(playerid,DRot,"System: Du bist gestorben.");


    if(PlayerDeathTime[playerid] == 0)
    {
    SetDeathSpawn(playerid);
    PlayerDeathTime[playerid] = 1;
    return 1;
    }
    else
    {
    SetPlayerPos(playerid, 815.5361,-1100.6260,25.7900);
    return 1;
    }
    return 1;
    }


    public SetDeathSpawn(playerid)
    {
    if(PlayerDeathTime[playerid] == 1)
    {
    SetPlayerWorldBounds(playerid,Float:x_max,Float:x_min,Float:y_max,Float:y_min);
    SetPlayerPos(playerid, 815.5361,-1100.6260,25.7900);
    SendClientMessage(playerid, Grau,"Du bist nun für ca. 3 Minuten auf dem Friedhof.");
    SetPlayerSkin(playerid, 162);
    SetTimerEx("SetPlayerSpawn",180000,0,"i",playerid);
    SetTimerEx("PlayerDeathReset",170000,0,"i",playerid);
    }
    }


    public PlayerDeathReset(playerid)
    {
    if(PlayerDeathTime[playerid] == 1)
    {
    PlayerDeathTime[playerid] = 0;
    SetPlayerWorldBounds(playerid,Float:x_max,Float:x_min,Float:y_max,Float:y_min)
    }
    }

    Hay Leute brauche mal hilfe es kommen diese Errors


    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(99) : warning 225: unreachable code
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(104) : error 017: undefined symbol "playerid"
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(106) : error 017: undefined symbol "playerid"
    C:\Users\Klaus\Desktop\Home
    Server\gamemodes\scriptingstuendlein.pwn(275) : warning 235: public
    function lacks forward declaration (symbol "SetDeathSpawn")
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(279) : error 017: undefined symbol "x_max"
    C:\Users\Klaus\Desktop\Home
    Server\gamemodes\scriptingstuendlein.pwn(288) : warning 235: public
    function lacks forward declaration (symbol "PlayerDeathReset")
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(293) : error 017: undefined symbol "x_max"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    4 Errors.


    public OnPlayerDeath(playerid, killerid, reason)
    {
    SendClientMessage(killerid,DRot,"System: Du hast ein Verbrechen begangen | Reporter: Annonym");
    SendClientMessage(playerid,DRot,"System: Du bist gestorben.");


    if(PlayerDeathTime[playerid] == 0)
    {
    SetDeathSpawn(playerid);
    PlayerDeathTime[playerid] = 1;
    return 1;
    }
    else
    {
    SetPlayerPos(playerid, 815.5361,-1100.6260,25.7900);
    return 1;
    }
    return 1;
    }


    public SetDeathSpawn(playerid)
    {
    if(PlayerDeathTime[playerid] == 1)
    {
    SetPlayerWorldBounds(playerid,Float:x_max,Float:x_min,Float:y_max,Float:y_min);
    SetPlayerPos(playerid, 815.5361,-1100.6260,25.7900);
    SendClientMessage(playerid, Grau,"Du bist nun für ca. 3 Minuten auf dem Friedhof.");
    SetPlayerSkin(playerid, 162);
    SetTimerEx("SetPlayerSpawn",180000,0,"i",playerid);
    SetTimerEx("PlayerDeathReset",170000,0,"i",playerid);
    }
    }


    public PlayerDeathReset(playerid)
    {
    if(PlayerDeathTime[playerid] == 1)
    {
    PlayerDeathTime[playerid] = 0;
    SetPlayerWorldBounds(playerid,Float:x_max,Float:x_min,Float:y_max,Float:y_min)
    }
    }

    Hay Leute brauche mal hilfe es kommen diese Errors


    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(99) : warning 225: unreachable code
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(104) : error 017: undefined symbol "playerid"
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(106) : error 017: undefined symbol "playerid"
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(275) : warning 235: public function lacks forward declaration (symbol "SetDeathSpawn")
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(279) : error 017: undefined symbol "x_max"
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(288) : warning 235: public function lacks forward declaration (symbol "PlayerDeathReset")
    C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(293) : error 017: undefined symbol "x_max"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    4 Errors.


    public OnPlayerDeath(playerid, killerid, reason)
    {
    SendClientMessage(killerid,DRot,"System: Du hast ein Verbrechen begangen | Reporter: Annonym");
    SendClientMessage(playerid,DRot,"System: Du bist gestorben.");


    if(PlayerDeathTime[playerid] == 0)
    {
    SetDeathSpawn(playerid);
    PlayerDeathTime[playerid] = 1;
    return 1;
    }
    else
    {
    SetPlayerPos(playerid, 815.5361,-1100.6260,25.7900);
    return 1;
    }
    return 1;
    }


    public SetDeathSpawn(playerid)
    {
    if(PlayerDeathTime[playerid] == 1)
    {
    SetPlayerWorldBounds(playerid,Float:x_max,Float:x_min,Float:y_max,Float:y_min);
    SetPlayerPos(playerid, 815.5361,-1100.6260,25.7900);
    SendClientMessage(playerid, Grau,"Du bist nun für ca. 3 Minuten auf dem Friedhof.");
    SetPlayerSkin(playerid, 162);
    SetTimerEx("SetPlayerSpawn",180000,0,"i",playerid);
    SetTimerEx("PlayerDeathReset",170000,0,"i",playerid);
    }
    }


    public PlayerDeathReset(playerid)
    {
    if(PlayerDeathTime[playerid] == 1)
    {
    PlayerDeathTime[playerid] = 0;
    SetPlayerWorldBounds(playerid,Float:x_max,Float:x_min,Float:y_max,Float:y_min)
    }
    }