Beiträge von Fly0in0the0Sky

    stock Jailer(playerid,knastid)
    {
    SetPlayerPos(knastid,198.4943,162.0886,1003.0300);
    SetPlayerInterior(knastid,3);
    switch(GetPlayerWantedLevel(knastid))
    {
    case 1:
    {
    SetTimerEx("Unjail",500000,false,"i",knastid);
    SendClientMessage(knastid,ROT,"Du wurdest für 500Sekunden ins Gefängnis gebracht!");
    GivePlayerMoney(playerid,1000);
    jailed[knastid]=1);
    }
    case 2:
    {
    SetTimerEx("Unjail",1000000,false,"i",knastid);
    SendClientMessage(knastid,ROT,"Du wurdest für 1000Sekunden ins Gefängnis gebracht!");
    GivePlayerMoney(playerid,2000);
    jailed[knastid]=1);
    }
    case 3:
    {
    SetTimerEx("Unjail",1500000,false,"i",knastid);
    SendClientMessage(knastid,ROT,"Du wurdest für 1500Sekunden ins Gefängnis gebracht!");
    GivePlayerMoney(playerid,3000);
    jailed[knastid]=1);
    }
    case 4:
    {
    SetTimerEx("Unjail",2000000,false,"i",knastid);
    SendClientMessage(knastid,ROT,"Du wurdest für 2000Sekunden ins Gefängnis gebracht!");
    GivePlayerMoney(playerid,4000);
    jailed[knastid]=1);
    }
    case 5:
    {
    SetTimerEx("Unjail",2500000,false,"i",knastid);
    SendClientMessage(knastid,ROT,"Du wurdest für 2500Sekunden ins Gefängnis gebracht!");
    GivePlayerMoney(playerid,5000);
    jailed[knastid]=1);
    }
    case 6:
    {
    SetTimerEx("Unjail",3000000,false,"i",knastid);
    SendClientMessage(knastid,ROT,"Du wurdest für 3000Sekunden ins Gefängnis gebracht!");
    GivePlayerMoney(playerid,6000);
    jailed[knastid]=1);
    }
    }
    return 1;
    }


    forward Unjail(playerid);
    public Unjail(playerid)
    {
    jailed[playerid]=0;
    SetPlayerPos(playerid,197.8431,158.3999,1003.0234);
    SendClientMessage(playerid,BLAU,"[Entlassen] ");
    SendClientMessage(playerid,BLAU,"Sei in Zukunft ein guter Mensch!");
    return 1;
    }

    xddd C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(1627) : error 001: expected token: ";", but found ")"
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(1627) : error 029: invalid expression, assumed zero
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(1627) : warning 215: expression has no effect
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(1634) : error 001: expected token: ";", but found ")"
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(1634) : error 029: invalid expression, assumed zero
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(1634) : warning 215: expression has no effect
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(1641) : error 001: expected token: ";", but found ")"
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(1641) : error 029: invalid expression, assumed zero
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(1641) : warning 215: expression has no effect
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(1648) : error 001: expected token: ";", but found ")"
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(1648) : error 029: invalid expression, assumed zero
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(1648) : warning 215: expression has no effect
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(1655) : error 001: expected token: ";", but found ")"
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(1655) : error 029: invalid expression, assumed zero
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(1655) : warning 215: expression has no effect
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(1662) : error 001: expected token: ";", but found ")"
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(1662) : error 029: invalid expression, assumed zero
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(1662) : warning 215: expression has no effect

    wo ist der fehler C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(1625) : error 017: undefined symbol "jailed"
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(1625) : warning 215: expression has no effect
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(1625) : error 001: expected token: ";", but found "]"
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(1625) : error 029: invalid expression, assumed zero
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(1625) : fatal error 107: too many error messages on one line


    case 1:
    {
    SetTimerEx("Unjail",500000,false,"i",knastid);
    SendClientMessage(knastid,ROT,"Du wurdest für 500Sekunden ins Gefängnis gebracht!");
    GivePlayerMoney(playerid,1000);
    jailed[knastid]=1;
    }

    kann mir jm helfen habe ein problem:
    ich will das man make leader durch einen rcon adminbefähl macht bin aber zu dumm um das zu mach kann mir jm helfen hier das normale admin befähl


    ocmd:makeleader(playerid,params[])
    {
    if(!isPlayerAnAdmin(playerid,3))return SendClientMessage(playerid,ROT,"Rang zu Niedrig.");
    new pID,fID;
    if(sscanf(params,"ui",pID,fID))return SendClientMessage(playerid,BLAU,"/makeleader [playerid] [fraktionsid]");
    SetPVarInt(pID,"Fraktion",fID);
    SendClientMessage(playerid,BLAU,"Erfolgreich.");
    return 1;
    }

    kann mir das jemand bitte in einen rcon befähl machen bitte sehr wichtig
    1
    2
    3
    4
    5
    6
    7
    8
    9 ocmd:makeleader(playerid,params[])
    {
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,ROT,"Du bist kein Administrator.");
    new pID,fID;
    if(sscanf(params,"ui",pID,fID))return SendClientMessage(playerid,BLAU,"/makeleader [playerid] [fraktionsid]");
    SetPVarInt(pID,"Fraktion",fID);
    SendClientMessage(playerid,BLAU,"Erfolgreich.");
    return 1;
    }

    wie wandel ich das in einen rcon befähl um !!
    ocmd:makeleader(playerid,params[])
    {
    if(!isPlayerAnAdmin(playerid,3))return SendClientMessage(playerid,ROT,"Rang zu Niedrig.");
    new pID,fID;
    if(sscanf(params,"ui",pID,fID))return SendClientMessage(playerid,BLAU,"/makeleader [playerid] [fraktionsid]");
    SetPVarInt(pID,"Fraktion",fID);
    SendClientMessage(playerid,BLAU,"Erfolgreich.");
    return 1;
    }

    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(846) : error 021: symbol already defined: "OnPlayerStateChange"



    bei dem 2 OnPlayerStateChange ist der eror kann mri jm das machen pls


    public OnPlayerStateChange(playerid, newstate, oldstate)
    {
    if(newstate==PLAYER_STATE_DRIVER)
    {
    for(new i=0; i<sizeof(LSPD); i++)
    {
    if(GetPlayerVehicleID(playerid)==LSPD[i])
    {
    if(GetPVarInt(playerid,"Fraktion")!=1)
    {
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid,ROT,"Dieses Fahrzeug gehört einer fraktion.");
    }
    }
    }
    }
    return 1;
    }
    public OnPlayerStateChange(playerid, newstate, oldstate)
    {
    if(newstate==PLAYER_STATE_DRIVER)
    {
    for(new i=0; i<sizeof(ballascar); i++)
    {
    if(GetPlayerVehicleID(playerid)==ballascar[i])
    {
    if(GetPVarInt(playerid,"Fraktion")!=1)
    {
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid,LILA,"Dieses Fahrzeug gehört einer fraktion.");
    }
    }
    }
    }
    return 1;
    }

    ok sry warte hier die cods von
    [760-765]
    if(strcmp(cmdtext, "/tanken", true) == 0)
    {
    else if (GetPlayerVehicleSeat(playerid) != 0) return SendClientMessage(playerid,ROT,"Du bist in keinem Fahrzeug (oder kein Fahrer).");
    new car = GetPlayerVehicleID(playerid);
    else if (TanktGerade[car]) return SendClientMessage(playerid,ROT,"Du tankst schon!");
    else if (Motor[car] == true) return SendClientMessage(playerid,ROT,"Du musst vor dem Tanken den Motor ausschalten.");


    ganz unten ist 1140 [else also]
    {
    if(GetPlayerVehicleSeat(playerid) == 0)
    {
    new vehicleid;
    vehicleid = GetPlayerVehicleID(playerid);
    if(GetVehicleModel(vehicleid) != 509 && GetVehicleModel(vehicleid) != 481 && GetVehicleModel(vehicleid) != 510)
    {
    new string[125];
    if(Tank[vehicleid] < 10) format(string,sizeof string,"~w~Tank: ~r~%i",Tank[vehicleid]);
    else if(Tank[vehicleid] < 30) format(string,sizeof string,"~w~Tank: ~y~%i",Tank[vehicleid]);
    else if(Tank[vehicleid] <= 100) format(string,sizeof string,"~w~Tank: ~g~%i",Tank[vehicleid]);
    TextDrawSetString(Anzeige[playerid],string);
    }
    }
    else


    [1245-1250]
    {
    Tank[i] = 0;
    GetVehicleParamsEx(c,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(c,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
    Motor[i] = false;
    }
    geht nach der reihe runter !!

    habe erors und brauche hilfe pls
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(86) : warning 217: loose indentation
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(762) : error 029: invalid expression, assumed zero
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(762) : warning 215: expression has no effect
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(762) : error 001: expected token: ";", but found "if"
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(764) : error 029: invalid expression, assumed zero
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(764) : warning 215: expression has no effect
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(764) : error 001: expected token: ";", but found "if"
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(1140) : warning 217: loose indentation
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(1247) : error 017: undefined symbol "c"
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(1248) : error 017: undefined symbol "c"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


    habe erors Ö__ö pls um hilfe hier die erors C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(86) : warning 217: loose indentation
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(762) : error 029: invalid expression, assumed zero
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(762) : warning 215: expression has no effect
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(762) : error 001: expected token: ";", but found "if"
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(764) : error 029: invalid expression, assumed zero
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(764) : warning 215: expression has no effect
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(764) : error 001: expected token: ";", but found "if"
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(1140) : warning 217: loose indentation
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(1246) : error 017: undefined symbol "c"
    C:\Programme\Rockstar Games\gamemodes\Pimmelwixkopf.pwn(1247) : error 017: undefined symbol "c"


    und hier die problempunkte
    [760-765] (von oben fängt es mit 760 an und endet mit 765)
    if(strcmp(cmdtext, "/tanken", true) == 0)
    {
    else if (GetPlayerVehicleSeat(playerid) != 0) return SendClientMessage(playerid,ROT,"Du bist in keinem Fahrzeug (oder kein Fahrer).");
    new car = GetPlayerVehicleID(playerid);
    else if (TanktGerade[car]) return SendClientMessage(playerid,ROT,"Du tankst schon!");
    else if (Motor[car] == true) return SendClientMessage(playerid,ROT,"Du musst vor dem Tanken den Motor ausschalten.");


    [das letzte ist 1140]
    public OnPlayerUpdate(playerid)
    {
    if(GetPlayerVehicleSeat(playerid) == 0)
    {
    new vehicleid;
    vehicleid = GetPlayerVehicleID(playerid);
    if(GetVehicleModel(vehicleid) != 509 && GetVehicleModel(vehicleid) != 481 && GetVehicleModel(vehicleid) != 510)
    {
    new string[125];
    if(Tank[vehicleid] < 10) format(string,sizeof string,"~w~Tank: ~r~%i",Tank[vehicleid]);
    else if(Tank[vehicleid] < 30) format(string,sizeof string,"~w~Tank: ~y~%i",Tank[vehicleid]);
    else if(Tank[vehicleid] <= 100) format(string,sizeof string,"~w~Tank: ~g~%i",Tank[vehicleid]);
    TextDrawSetString(Anzeige[playerid],string);
    }
    }
    else


    [1244-1252]
    if (Tank[i]<1)
    {
    Tank[i] = 0;
    GetVehicleParamsEx(c,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(c,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
    Motor[i] = false;
    }
    }
    }