Beiträge von lolska

    Heey habe es grade geschaft mein Script zu updaten aber jetz geht die server.exe direkt wieder weg hier meine server log


    echo Executing Server Config...
    lanmode 1
    rcon_password test12
    maxplayers 500
    port 7777
    hostname SA-MP 0.3 Server
    gamemode0 GNE
    filterscripts
    announce 0
    query 1
    weburl http://www.sa-mp.com
    onfoot_rate 40
    incar_rate 40
    weapon_rate 40
    stream_distance 300.0
    stream_rate 1000
    maxnpc 10
    logtimeformat [%H:%M:%S]

    habe alle aktualiersiert dann kommt das


    C:\Users\Kevin\Desktop\Magical Reallife - Script 0.5.2\gamemodes\mr-reallife.pwn(2298) : error 017: undefined symbol "CreateDynamicObject"
    C:\Users\Kevin\Desktop\Magical Reallife - Script 0.5.2\gamemodes\mr-reallife.pwn(2299) : error 017: undefined symbol "CreateDynamicObject"
    C:\Users\Kevin\Desktop\Magical Reallife - Script 0.5.2\gamemodes\mr-reallife.pwn(2300) : error 017: undefined symbol "CreateDynamicObject"
    C:\Users\Kevin\Desktop\Magical Reallife - Script 0.5.2\gamemodes\mr-reallife.pwn(2301) : error 017: undefined symbol "CreateDynamicObject"
    C:\Users\Kevin\Desktop\Magical Reallife - Script 0.5.2\gamemodes\mr-reallife.pwn(2302) : error 017: undefined symbol "CreateDynamicObject"
    C:\Users\Kevin\Desktop\Magical Reallife - Script 0.5.2\gamemodes\mr-reallife.pwn(2303) : error 017: undefined symbol "CreateDynamicObject"
    C:\Users\Kevin\Desktop\Magical Reallife - Script 0.5.2\gamemodes\mr-reallife.pwn(2304) : error 017: undefined symbol "CreateDynamicObject"
    C:\Users\Kevin\Desktop\Magical Reallife - Script 0.5.2\gamemodes\mr-reallife.pwn(2305) : error 017: undefined symbol "CreateDynamicObject"
    C:\Users\Kevin\Desktop\Magical Reallife - Script 0.5.2\gamemodes\mr-reallife.pwn(2306) : error 017: undefined symbol "CreateDynamicObject"
    C:\Users\Kevin\Desktop\Magical Reallife - Script 0.5.2\gamemodes\mr-reallife.pwn(2307) : error 017: undefined symbol "CreateDynamicObject"
    C:\Users\Kevin\Desktop\Magical Reallife - Script 0.5.2\gamemodes\mr-reallife.pwn(2308) : error 017: undefined symbol "CreateDynamicObject"
    C:\Users\Kevin\Desktop\Magical Reallife - Script 0.5.2\gamemodes\mr-reallife.pwn(2309) : error 017: undefined symbol "CreateDynamicObject"
    C:\Users\Kevin\Desktop\Magical Reallife - Script 0.5.2\gamemodes\mr-reallife.pwn(2310) : error 017: undefined symbol "CreateDynamicObject"
    C:\Users\Kevin\Desktop\Magical Reallife - Script 0.5.2\gamemodes\mr-reallife.pwn(2311) : error 017: undefined symbol "CreateDynamicObject"
    C:\Users\Kevin\Desktop\Magical Reallife - Script 0.5.2\gamemodes\mr-reallife.pwn(18110) : error 017: undefined symbol "CreateDynamicObject"
    C:\Users\Kevin\Desktop\Magical Reallife - Script 0.5.2\gamemodes\mr-reallife.pwn(18111) : error 017: undefined symbol "CreateDynamicObject"
    C:\Users\Kevin\Desktop\Magical Reallife - Script 0.5.2\gamemodes\mr-reallife.pwn(18112) : error 017: undefined symbol "CreateDynamicObject"
    C:\Users\Kevin\Desktop\Magical Reallife - Script 0.5.2\gamemodes\mr-reallife.pwn(18113) : error 017: undefined symbol "CreateDynamicObject"
    C:\Users\Kevin\Desktop\Magical Reallife - Script 0.5.2\gamemodes\mr-reallife.pwn(18114) : error 017: undefined symbol "CreateDynamicObject"
    C:\Users\Kevin\Desktop\Magical Reallife - Script 0.5.2\gamemodes\mr-reallife.pwn(18115) : error 017: undefined symbol "CreateDynamicObject"
    C:\Users\Kevin\Desktop\Magical Reallife - Script 0.5.2\gamemodes\mr-reallife.pwn(18116) : error 017: undefined symbol "CreateDynamicObject"
    C:\Users\Kevin\Desktop\Magical Reallife - Script 0.5.2\gamemodes\mr-reallife.pwn(18117) : error 017: undefined symbol "CreateDynamicObject"
    C:\Users\Kevin\Desktop\Magical Reallife - Script 0.5.2\gamemodes\mr-reallife.pwn(18118) : error 017: undefined symbol "CreateDynamicObject"
    C:\Users\Kevin\Desktop\Magical Reallife - Script 0.5.2\gamemodes\mr-reallife.pwn(18119) : error 017: undefined symbol "CreateDynamicObject"
    C:\Users\Kevin\Desktop\Magical Reallife - Script 0.5.2\gamemodes\mr-reallife.pwn(18120) : error 017: undefined symbol "CreateDynamicObject"
    C:\Users\Kevin\Desktop\Magical Reallife - Script 0.5.2\gamemodes\mr-reallife.pwn(18121) : error 017: undefined symbol "CreateDynamicObject"


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



    26 Errors.

    heey habe 1 error


    Magical Reallife - Script 0.5.2\gamemodes\mr-reallife.pwn(25) : fatal error 100: cannot read from file: "utils"


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



    1 Error.


    was muss ich machen?

    nur noch 3 warnings :) 2 hatte ich schon vorher


    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(6271) : warning 225: unreachable code
    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(12375) : warning 202: number of arguments does not match definition
    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(55162) : warning 225: unreachable code
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


    Header size: 14648 bytes
    Code size: 2728664 bytes
    Data size: 27911584 bytes
    Stack/heap size: 32768 bytes; estimated max. usage: unknown, due to recursion
    Total requirements:30687664 bytes


    3 Warnings.




    AddStaticVehicle(571, 54.0000, 65.0000, 85.0000, 42.000,0,0,1); //kart


    6271
    if(gPlayerLogged[playerid] == 0)
    {
    SendClientMessage(playerid, COLOR_LIGHTRED, "** Du musst dich vorher einloggen oder dir einen Account erstellen! ***");
    Kick(playerid);
    return 1;


    if(gPlayerAccount[playerid] == 1) <------ die zeile macht das problem :)
    {
    ForceClassSelection(playerid);
    TogglePlayerSpectating(playerid, 0);
    }
    else if(gPlayerAccount[playerid] == 0)
    {
    ForceClassSelection(playerid);
    TogglePlayerSpectating(playerid, 0);
    }
    return 1;



    die 55162


    if (!IsACop(playerid)) return SendClientMessage(playerid, COLOR_GREY, "Du bist kein Cop!");
    {
    SendClientMessage(playerid, COLOR_GREY, " * Es ist kein Polizist im Dienst, bitte versuche es später noch einmal");
    return 1;
    }
    new sendername[MAX_PLAYER_NAME]; <------- die zeile auch :)
    new string[256];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "[Leitstelle] %s hat einen Streifenwagen angefordert, Gib (/accept polizei) ein um den Auftrag anzunehmen.", sendername);
    {
    if(IsPlayerConnected(i))
    {

    //========== SBUSINESS LABELS =============//
    for(new sb = 0; sb < sizeof(SBizzInfo); sb++)
    {
    new string4[128];
    if(SBizzInfo[sb][sbOwned] == 0)
    {
    format(string4, sizeof(string4), "[Business zu Verkaufen - %s]\nPreis: %d$\nLevel: %d", SBizzInfo[sb][sbMessage],SBizzInfo[sb][sbBuyPrice],SBizzInfo[sb][sbLevelNeeded]);
    SBizzInfo[sb][sbText] = Create3DTextLabel(string4,COLOR_FORSELL,SBizzInfo[sb][sbEntranceX], SBizzInfo[sb][sbEntranceY], SBizzInfo[sb][sbEntranceZ]+1,15.0,0);
    }
    if(SBizzInfo[sb][sbOwned] == 1)
    {
    format(string4, sizeof(string4), "[%s]\nInhaber: %s\nTeilhaber: %s\nEintrittspreis: %d$\nLevel: %d\nProdukte: %d/%d\nPreis pro Produkt: %d", SBizzInfo[sb][sbMessage],SBizzInfo[sb][sbOwner],SBizzInfo[sb][sbExtortion],SBizzInfo[sb][sbEntranceCost],SBizzInfo[sb][sbLevelNeeded],SBizzInfo[sb][sbProducts],SBizzInfo[sb][sbMaxProducts], SBizzInfo[sb][sbPriceProd]);
    SBizzInfo[sb][sbText] = Create3DTextLabel(string4,COLOR_BUYED,SBizzInfo[sb][sbEntranceX], SBizzInfo[sb][sbEntranceY], SBizzInfo[sb][sbEntranceZ]+1,15.0,0);
    }
    }




    //-----------------------------------------------------------------------------------
    //------------------------------- VEHICLES -----------------------------------------
    //freizeitautos
    AddStaticVehicle(571,54.0,65.0,85.0,42.0,119.0,161.0,0,0,0,0,0,0); //kart
    return 1;


    //********************************Staatsfraktionen Autos******************************************************************************
    //LSPDVeh
    PolizeiVehs[0] = AddStaticVehicleEx(432,1600.89953613,-1700.48669434,5.71062469,90.00000000,-1,1,-1); //Rhino (LSPD)
    PolizeiVehs[1] = AddStaticVehicleEx(506,1601.13500977,-1696.30407715,5.71062469,90.00000000,-1,1,-1); //Police Car (LSPD)
    PolizeiVehs[2] = AddStaticVehicleEx(560,1601.17785645,-1692.10595703,5.71062469,90.00000000,-1,1,-1); //Police Car (LSPD)
    PolizeiVehs[3] = AddStaticVehicleEx(596,1601.17272949,-1688.34167480,5.71062469,90.00000000,-1,1,-1); //Police Car (LSPD)
    PolizeiVehs[4] = AddStaticVehicleEx(596,1601.21960449,-1684.21215820,5.71062469,90.00000000,-1,1,-1); //Police Car (LSPD)
    PolizeiVehs[5] = AddStaticVehicleEx(571,1595.33789062,-1710.26196289,6.27575159,0.00000000,-1,1,-1); //Police Ranger
    PolizeiVehs[6] = AddStaticVehicleEx(599,1591.48669434,-1710.18029785,6.27575159,0.00000000,-1,1,-1); //Police Ranger
    PolizeiVehs[7] = AddStaticVehicleEx(599,1587.68603516,-1710.06457520,6.27575159,0.00000000,-1,1,-1); //Police Ranger
    PolizeiVehs[8] = AddStaticVehicleEx(528,1558.51110840,-1710.00305176,6.07562494,0.00000000,-1,1,-1); //FBI Truck
    PolizeiVehs[10] = AddStaticVehicleEx(528,1562.95495605,-1710.02783203,6.07562494,0.00000000,-1,1,-1); //FBI Truck
    PolizeiVehs[11] = AddStaticVehicleEx(571,1570.28283691,-1709.88549805,6.13862514,0.00000000,-1,1,-1); //Enforcer
    PolizeiVehs[12] = AddStaticVehicleEx(427,1574.63000488,-1709.88647461,6.13862514,0.00000000,-1,1,-1); //Enforcer
    PolizeiVehs[14] = AddStaticVehicleEx(599,1583.43701172,-1709.97583008,6.27575159,0.00000000,-1,1,-1); //Police Ranger
    PolizeiVehs[15] = AddStaticVehicleEx(560,1538.78942871,-1645.71411133,6.21075153,180.00000000,-1,1,-1); //FBI Rancher
    PolizeiVehs[16] = AddStaticVehicleEx(490,1534.60656738,-1645.65954590,6.21075153,180.00000000,-1,1,-1); //FBI Rancher
    PolizeiVehs[17] = AddStaticVehicleEx(432,1530.59118652,-1645.65087891,6.21075153,180.00000000,-1,1,-1); //FBI Rancher
    PolizeiVehs[18] = AddStaticVehicleEx(522,1526.73315430,-1645.59289551,6.21075153,180.00000000,-1,1,-1); //FBI Rancher
    PolizeiVehs[19] = AddStaticVehicleEx(411,1544.24511719,-1684.37768555,5.69560003,90.00000000,-1,1,-1); //Sultan
    PolizeiVehs[20] = AddStaticVehicleEx(601,1544.39367676,-1680.41259766,5.69560003,90.00000000,-1,1,-1); //Sultan
    PolizeiVehs[21] = AddStaticVehicleEx(451,1544.47839355,-1676.29357910,5.69560003,90.00000000,-1,1,-1); //Sultan
    PolizeiVehs[22] = AddStaticVehicleEx(560,1544.55041504,-1672.26855469,5.69560003,90.00000000,-1,1,-1); //Sultan
    PolizeiVehs[23] = AddStaticVehicleEx(523,1587.62780762,-1680.05261230,5.55736876,270.00000000,86,86,-1); //HPV1000
    PolizeiVehs[24] = AddStaticVehicleEx(428,1587.65747070,-1678.38476562,5.55736876,270.00000000,86,86,-1); //HPV1000
    PolizeiVehs[25] = AddStaticVehicleEx(522,1587.61389160,-1676.62609863,5.55736876,270.00000000,86,86,-1); //HPV1000
    PolizeiVehs[26] = AddStaticVehicleEx(522,1587.63391113,-1674.93676758,5.55785704,270.00000000,86,86,-1); //HPV1000
    PolizeiVehs[27] = AddStaticVehicleEx(425,1564.79272461,-1655.70471191,28.66060638,90.00000000,-1,1,-1); //Maverick
    PolizeiVehs[28] = AddStaticVehicleEx(548,1564.01989746,-1694.91894531,28.66058731,90.00000000,-1,1,-1); //Maverick
    PolizeiVehs[29] = AddStaticVehicleEx(447,1549.63110352,-1708.03112793,28.49481010,90.00000000,-1,1,-1); //Seasparrow
    PolizeiVehs[30] = AddStaticVehicleEx(430,947.3892,-1994.1215,-0.4547,352.9428,0,1,-1); // Predators
    PolizeiVehs[31] = AddStaticVehicleEx(430,943.9156,-2013.5116,-0.0923,172.9194,0,1,-1); // Predators
    PolizeiVehs[32] = AddStaticVehicleEx(446,926.1312,-2010.9595,-0.5119,173.8733,0,1,-1); // Sqallo
    PolizeiVehs[33] = AddStaticVehicleEx(446,929.3665,-1990.3289,-0.5837,352.0886,0,1,-1); // Sqallo
    PolizeiVehs[34] = AddStaticVehicleEx(452,910.7324,-2008.9387,-0.6833,175.1667,0,1,-1); // Speeder
    PolizeiVehs[35] = AddStaticVehicleEx(452,913.9105,-1990.8756,-0.4459,352.3455,0,1,-1); // Speeder

    ist bei den frakautos

    dann 11 warnings


    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(6271) : warning 225: unreachable code
    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(12375) : warning 213: tag mismatch
    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(12375) : warning 213: tag mismatch
    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(12375) : warning 202: number of arguments does not match definition
    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(12375) : warning 202: number of arguments does not match definition
    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(12375) : warning 202: number of arguments does not match definition
    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(12375) : warning 202: number of arguments does not match definition
    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(12375) : warning 202: number of arguments does not match definition
    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(12375) : warning 202: number of arguments does not match definition
    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(12380) : warning 225: unreachable code
    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(55162) : warning 225: unreachable code
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


    Header size: 14648 bytes
    Code size: 2728728 bytes
    Data size: 27911584 bytes
    Stack/heap size: 32768 bytes; estimated max. usage: unknown, due to recursion
    Total requirements:30687728 bytes


    11 Warnings.

    Hey habe ein paar warnings und brauche hilfe :)


    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(6271) : warning 225: unreachable code
    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(12375) : warning 202: number of arguments does not match definition
    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(12375) : warning 202: number of arguments does not match definition
    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(12375) : warning 202: number of arguments does not match definition
    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(12375) : warning 202: number of arguments does not match definition
    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(12375) : warning 202: number of arguments does not match definition
    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(12375) : warning 202: number of arguments does not match definition
    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(55161) : warning 225: unreachable code
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


    Header size: 14648 bytes
    Code size: 2728816 bytes
    Data size: 27911584 bytes
    Stack/heap size: 32768 bytes; estimated max. usage: unknown, due to recursion
    Total requirements:30687816 bytes


    8 Warnings.


    //freizeitautos
    AddStaticVehicle(571,54,65,85,42,119,161,0,0,0,0,0,0); //kart


    wie kriege ich die weg?

    hier :)


    if(strcmp(cmd, "/drink", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(IsPlayerInRangeOfPoint(playerid,3.0,499.4521,-20.6484,1000.6797))
    {
    new local = PlayerInfo[playerid][pLocal];
    if(PlayerDrunk[playerid] < 10)
    {
    new Float:health;
    new x_nr[256];
    x_nr = strtok(cmdtext, idx);
    if(!strlen(x_nr)) {
    SendClientMessage(playerid, COLOR_WHITE, "|__________________ Bar __________________|");
    SendClientMessage(playerid, COLOR_WHITE, "Benutzung: /drink [Drink]");
    SendClientMessage(playerid, COLOR_GREY, "Verfügbare Drinks: Bier ($60), Vodka ($100), V+Energy ($100), Wasser ($20), Soda($10)");
    SendClientMessage(playerid, COLOR_GREY, "Verfügbare Drinks: Mixery (20$), Grapefruit (20$), Cola (10$), Fanta (10$)");
    SendClientMessage(playerid, COLOR_WHITE, "|________________________________________________|");
    return 1;
    }
    if(strcmp(x_nr,"Bier",true) == 0)
    {
    GivePlayerMoney(playerid, - 60);
    BizzInfo[local-99][bProducts] -= 1;
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
    PlayerDrunk[playerid] += 1;
    if(PlayerDrunk[playerid] >= 5) { GameTextForPlayer(playerid, "~w~Du bist~n~~p~betrunken", 3500, 1);
    BizzInfo[local-99][bTill] += 60; }
    SetPlayerTime(playerid,22,10);
    SetPlayerDrunkLevel(playerid,50000);
    SetPlayerWeather(playerid,-66);
    PlayerStoned[playerid] += 1;
    if(GetPlayerHealth(playerid, health) < 100)
    {
    if(PlayerInfo[playerid][pAlcoholPerk] > 0) { PlayerDrunk[playerid] += 1; new hp = 2 * PlayerInfo[playerid][pAlcoholPerk]; hp += 15; SetPlayerHealth(playerid, health + hp); }
    else { SetPlayerHealth(playerid, health + 15.0); }
    }
    }
    else if(strcmp(x_nr,"Mixery", true) == 0)
    {
    GivePlayerMoney(playerid, -10);
    BizzInfo[local-99][bProducts] -= 1;
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
    PlayerDrunk[playerid] += 2;
    if(PlayerDrunk[playerid] >= 5) { GameTextForPlayer(playerid, "~w~Du bist~n~~p~betrunken", 3500, 1);
    BizzInfo[local-99][bTill] += 10; }
    SetPlayerTime(playerid,22,10);
    SetPlayerDrunkLevel(playerid,50000);
    SetPlayerWeather(playerid,-66);
    PlayerStoned[playerid] += 1;
    if(GetPlayerHealth(playerid, health) < 100)
    {
    if(PlayerInfo[playerid][pAlcoholPerk] > 0) { PlayerDrunk[playerid] += 1; new hp = 2 * PlayerInfo[playerid][pAlcoholPerk]; hp += 25; SetPlayerHealth(playerid, health + hp); }
    else { SetPlayerHealth(playerid, health + 25.0); }
    }
    }
    else if(strcmp(x_nr,"Grapefruit", true) == 0)
    {
    GivePlayerMoney(playerid, -20);
    BizzInfo[local-99][bProducts] -= 1;
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
    PlayerDrunk[playerid] += 2;
    if(PlayerDrunk[playerid] >= 5) { GameTextForPlayer(playerid, "~w~Du bist~n~~p~betrunken", 3500, 1);
    BizzInfo[local-99][bTill] += 20; }
    if(GetPlayerHealth(playerid, health) < 100)
    {
    if(PlayerInfo[playerid][pAlcoholPerk] > 0) { PlayerDrunk[playerid] += 1; new hp = 2 * PlayerInfo[playerid][pAlcoholPerk]; hp += 25; SetPlayerHealth(playerid, health + hp); }
    else { SetPlayerHealth(playerid, health + 25.0); }
    }
    }
    else if(strcmp(x_nr,"Cola", true) == 0)
    {
    GivePlayerMoney(playerid, -10);
    BizzInfo[local-99][bProducts] -= 1;
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
    PlayerDrunk[playerid] += 2;
    BizzInfo[local-99][bTill] += 10;
    if(GetPlayerHealth(playerid, health) < 100)
    {
    if(PlayerInfo[playerid][pAlcoholPerk] > 0) { PlayerDrunk[playerid] += 1; new hp = 2 * PlayerInfo[playerid][pAlcoholPerk]; hp += 25; SetPlayerHealth(playerid, health + hp); }
    else { SetPlayerHealth(playerid, health + 25.0); }
    }
    }
    else if(strcmp(x_nr,"Fanta", true) == 0)
    {
    GivePlayerMoney(playerid, -20);
    BizzInfo[local-99][bProducts] -= 1;
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
    PlayerDrunk[playerid] += 2;
    BizzInfo[local-99][bTill] += 20;
    if(GetPlayerHealth(playerid, health) < 100)
    {
    if(PlayerInfo[playerid][pAlcoholPerk] > 0) { PlayerDrunk[playerid] += 1; new hp = 2 * PlayerInfo[playerid][pAlcoholPerk]; hp += 25; SetPlayerHealth(playerid, health + hp); }
    else { SetPlayerHealth(playerid, health + 25.0); }
    }
    }
    else if(strcmp(x_nr,"Vodka",true) == 0)
    {
    GivePlayerMoney(playerid, - 10);
    BizzInfo[local-99][bProducts] -= 1;
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
    PlayerDrunk[playerid] += 2;
    if(PlayerDrunk[playerid] >= 5) { GameTextForPlayer(playerid, "~w~Du bist~n~~p~betrunken", 3500, 1);
    BizzInfo[local-99][bTill] += 100; }
    SetPlayerTime(playerid,22,10);
    SetPlayerDrunkLevel(playerid,50000);
    SetPlayerWeather(playerid,-66);
    PlayerStoned[playerid] += 1;
    if(GetPlayerHealth(playerid, health) < 100)
    {
    if(PlayerInfo[playerid][pAlcoholPerk] > 0) { PlayerDrunk[playerid] += 1; new hp = 2 * PlayerInfo[playerid][pAlcoholPerk]; hp += 25; SetPlayerHealth(playerid, health + hp); }
    else { SetPlayerHealth(playerid, health + 25.0); }
    }
    }
    else if(strcmp(x_nr,"V+Energy",true) == 0)
    {
    GivePlayerMoney(playerid, - 100);
    BizzInfo[local-99][bProducts] -= 1;
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
    PlayerDrunk[playerid] += 3;
    if(PlayerDrunk[playerid] >= 5) { GameTextForPlayer(playerid, "~w~Du bist~n~~p~betrunken", 3500, 1);
    BizzInfo[local-99][bTill] += 100; }
    SetPlayerTime(playerid,22,10);
    SetPlayerDrunkLevel(playerid,50000);
    SetPlayerWeather(playerid,-66);
    PlayerStoned[playerid] += 1;
    if(GetPlayerHealth(playerid, health) < 100)
    {
    if(PlayerInfo[playerid][pAlcoholPerk] > 0) { PlayerDrunk[playerid] += 1; new hp = 2 * PlayerInfo[playerid][pAlcoholPerk]; hp += 27; SetPlayerHealth(playerid, health + hp); }
    else { SetPlayerHealth(playerid, health + 27.0); }
    }
    }
    else if(strcmp(x_nr,"Wasser",true) == 0)
    {
    GivePlayerMoney(playerid, - 20);
    BizzInfo[local-99][bTill] += 20;
    BizzInfo[local-99][bProducts] -= 1;
    if(GetPlayerHealth(playerid, health) < 100)
    {
    if(PlayerInfo[playerid][pAlcoholPerk] > 0) { new hp = 2 * PlayerInfo[playerid][pAlcoholPerk]; hp += 5; SetPlayerHealth(playerid, health + hp); }
    else { SetPlayerHealth(playerid, health + 5.0); }
    }
    }
    else if(strcmp(x_nr,"Soda",true) == 0)
    {
    GivePlayerMoney(playerid, - 10);
    BizzInfo[local-99][bTill] += 10;
    BizzInfo[local-99][bProducts] -= 1;
    if(GetPlayerHealth(playerid, health) < 100)
    {
    if(PlayerInfo[playerid][pAlcoholPerk] > 0) { new hp = 2 * PlayerInfo[playerid][pAlcoholPerk]; hp += 5; SetPlayerHealth(playerid, health + hp); }
    else { SetPlayerHealth(playerid, health + 5.0); }
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_WHITE, "Barkeeper: Sorry, ich kenne dieses Getränk nicht.");
    return 1;
    }
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* %s trinkt %s.", sendername ,x_nr);
    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, "Du kannst nicht mehr trinken, sonst musst du brechen !");
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, "Es ist kein Barkeeper in der nähe ? !");
    return 1;
    }
    }
    return 1;
    }

    Heey ich habe ein problem ich habe den /drink befehl drin und wenn ich ihn benutze kommt da Server Unknow Command aber er zieht mir trotzdem Geld ab und dadurch ka**t :) mein compiler ab hier die zeilen
    if(strcmp(cmd, "/drink", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(IsPlayerInRangeOfPoint(playerid,3.0,499.4521,-20.6484,1000.6797))
    {
    new local = PlayerInfo[playerid][pLocal];
    if(PlayerDrunk[playerid] < 10)
    {
    new Float:health;
    new x_nr[256];
    x_nr = strtok(cmdtext, idx);
    if(!strlen(x_nr))
    {
    SendClientMessage(playerid, COLOR_WHITE, "|__________________ Bar __________________|");
    SendClientMessage(playerid, COLOR_WHITE, "Benutzung: /drink [Drink]");
    SendClientMessage(playerid, COLOR_GREY, "Verfügbare Drinks: Bier ($60), Vodka ($100), V+Energy ($100), Wasser ($20), Soda($10)");
    SendClientMessage(playerid, COLOR_GREY, "Verfügbare Drinks: Mixery (20$), Grapefruit (20$), Cola (10$), Fanta (10$)");
    SendClientMessage(playerid, COLOR_WHITE, "|________________________________________________|");
    return 1;
    }
    if(strcmp(x_nr,"Bier",true) == 0)
    {
    GivePlayerMoney(playerid, - 60);
    BizzInfo[local-99][bProducts] -= 1;
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
    PlayerDrunk[playerid] += 1;
    if(PlayerDrunk[playerid] >= 5)
    {
    GameTextForPlayer(playerid, "~w~Du bist~n~~p~betrunken", 3500, 1);
    BizzInfo[local-99][bTill] += 60;
    }
    SetPlayerTime(playerid,22,10);
    SetPlayerDrunkLevel(playerid,50000);
    SetPlayerWeather(playerid,-66);
    PlayerStoned[playerid] += 1;
    if(GetPlayerHealth(playerid, health) < 100)
    {
    if(PlayerInfo[playerid][pAlcoholPerk] > 0)
    {
    PlayerDrunk[playerid] += 1; new hp = 2 * PlayerInfo[playerid][pAlcoholPerk];
    hp += 15; SetPlayerHealth(playerid, health + hp);
    }
    else
    {
    SetPlayerHealth(playerid, health + 15.0);
    }
    }
    }
    else if(strcmp(x_nr,"Mixery", true) == 0)
    {
    GivePlayerMoney(playerid, -10);
    BizzInfo[local-99][bProducts] -= 1;
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
    PlayerDrunk[playerid] += 2;
    if(PlayerDrunk[playerid] >= 5)
    {
    GameTextForPlayer(playerid, "~w~Du bist~n~~p~betrunken", 3500, 1);
    BizzInfo[local-99][bTill] += 10;
    }
    SetPlayerTime(playerid,22,10);
    SetPlayerDrunkLevel(playerid,50000);
    SetPlayerWeather(playerid,-66);
    PlayerStoned[playerid] += 1;
    if(GetPlayerHealth(playerid, health) < 100)
    {
    if(PlayerInfo[playerid][pAlcoholPerk] > 0)
    {
    PlayerDrunk[playerid] += 1; new hp = 2 * PlayerInfo[playerid][pAlcoholPerk]; hp += 25;
    SetPlayerHealth(playerid, health + hp);
    }
    else
    {
    SetPlayerHealth(playerid, health + 25.0);
    }
    }
    }
    else if(strcmp(x_nr,"Grapefruit", true) == 0)
    {
    GivePlayerMoney(playerid, -20);
    BizzInfo[local-99][bProducts] -= 1;
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
    PlayerDrunk[playerid] += 2;
    if(PlayerDrunk[playerid] >= 5) { GameTextForPlayer(playerid, "~w~Du bist~n~~p~betrunken", 3500, 1);
    BizzInfo[local-99][bTill] += 20; }
    if(GetPlayerHealth(playerid, health) < 100)
    {
    if(PlayerInfo[playerid][pAlcoholPerk] > 0)
    {
    PlayerDrunk[playerid] += 1; new hp = 2 * PlayerInfo[playerid][pAlcoholPerk];
    hp += 25; SetPlayerHealth(playerid, health + hp);
    }
    else
    {
    SetPlayerHealth(playerid, health + 25.0);
    }
    }
    }
    else if(strcmp(x_nr,"Cola", true) == 0)
    {
    GivePlayerMoney(playerid, -10);
    BizzInfo[local-99][bProducts] -= 1;
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
    PlayerDrunk[playerid] += 2;
    BizzInfo[local-99][bTill] += 10;
    if(GetPlayerHealth(playerid, health) < 100)
    {
    if(PlayerInfo[playerid][pAlcoholPerk] > 0)
    {
    PlayerDrunk[playerid] += 1; new hp = 2 * PlayerInfo[playerid][pAlcoholPerk];
    hp += 25; SetPlayerHealth(playerid, health + hp);
    }
    else
    {
    SetPlayerHealth(playerid, health + 25.0);
    }
    }
    }
    else if(strcmp(x_nr,"Fanta", true) == 0)
    {
    GivePlayerMoney(playerid, -20);
    BizzInfo[local-99][bProducts] -= 1;
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
    PlayerDrunk[playerid] += 2;
    BizzInfo[local-99][bTill] += 20;
    if(GetPlayerHealth(playerid, health) < 100)
    {
    if(PlayerInfo[playerid][pAlcoholPerk] > 0)
    {
    PlayerDrunk[playerid] += 1; new hp = 2 * PlayerInfo[playerid][pAlcoholPerk];
    hp += 25; SetPlayerHealth(playerid, health + hp);
    }
    else
    {
    SetPlayerHealth(playerid, health + 25.0);
    }
    }
    }
    else if(strcmp(x_nr,"Vodka",true) == 0)
    {
    GivePlayerMoney(playerid, - 10);
    BizzInfo[local-99][bProducts] -= 1;
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
    PlayerDrunk[playerid] += 2;
    if(PlayerDrunk[playerid] >= 5)
    {
    GameTextForPlayer(playerid, "~w~Du bist~n~~p~betrunken", 3500, 1);
    BizzInfo[local-99][bTill] += 100;
    }
    SetPlayerTime(playerid,22,10);
    SetPlayerDrunkLevel(playerid,50000);
    SetPlayerWeather(playerid,-66);
    PlayerStoned[playerid] += 1;
    if(GetPlayerHealth(playerid, health) < 100)
    {
    if(PlayerInfo[playerid][pAlcoholPerk] > 0)
    {
    PlayerDrunk[playerid] += 1; new hp = 2 * PlayerInfo[playerid][pAlcoholPerk];
    hp += 25; SetPlayerHealth(playerid, health + hp);
    }
    else
    {
    SetPlayerHealth(playerid, health + 25.0);
    }
    }
    }
    else if(strcmp(x_nr,"V+Energy",true) == 0)
    {
    GivePlayerMoney(playerid, - 100);
    BizzInfo[local-99][bProducts] -= 1;
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
    PlayerDrunk[playerid] += 3;
    if(PlayerDrunk[playerid] >= 5)
    {
    GameTextForPlayer(playerid, "~w~Du bist~n~~p~betrunken", 3500, 1);
    BizzInfo[local-99][bTill] += 100;
    }
    SetPlayerTime(playerid,22,10);
    SetPlayerDrunkLevel(playerid,50000);
    SetPlayerWeather(playerid,-66);
    PlayerStoned[playerid] += 1;
    if(GetPlayerHealth(playerid, health) < 100)
    {
    if(PlayerInfo[playerid][pAlcoholPerk] > 0)
    {
    PlayerDrunk[playerid] += 1; new hp = 2 * PlayerInfo[playerid][pAlcoholPerk];
    hp += 27; SetPlayerHealth(playerid, health + hp);
    }
    else
    {
    SetPlayerHealth(playerid, health + 27.0);
    }
    }
    }
    }
    }
    return 1; //Hier hat ein Return gefehlt