Beiträge von Sony

    if(strcmp(cmdtext, "/sfopen", true)==0)
    {
    MoveObject(LSSFgate1, 50.7529296875, -1535.5576171875, 4.7799768447876,4);
    return 1;
    }


    if(strcmp(cmdtext, "/sfclose", true)==0)
    {
    MoveObject(LSSFgate1, 50.7529296875, -1535.5576171875, 4.7799768447876,4);
    return 1;
    }



    if(strcmp(cmdtext, "/lsopen", true)==0)
    {
    MoveObject(LSSFgate2, 51.33805847168, -1527.3518066406, 4.75634765625 ,4);
    return 1;
    }


    if(strcmp(cmdtext, "/lsclose", true)==0)
    {
    MoveObject(LSSFgate2, 51.33805847168, -1527.3518066406, 4.75634765625,4);
    return 1;
    }
    versuch des mal so

    // zu den anderen
    new Text:Uhr;
    //Unter OnGameModeInit:
    for(new i=0; i<MAX_PLAYERS; i++)//Die Anzeige muss für jeden Spieler erstellt werden da sie immer verschieden ist
    { // Links/Rechts //Höhe
    new string[256];
    levelanzeige[i] = TextDrawCreate(50.000000,430.000000, string);
    TextDrawLetterSize(levelanzeige[i], 0.5, 1.5);
    TextDrawFont(levelanzeige[i],1);
    TextDrawShowForPlayer(i,levelanzeige[i]);
    TextDrawSetShadow(levelanzeige[i], 0);
    TextDrawSetOutline(levelanzeige[i], 0);
    }
    Uhr = TextDrawCreate(547.0, 24.0, "00:00");//kann Global erstellt werden da sie für alle immer gleich ist!
    TextDrawLetterSize(Uhr, 0.6, 1.8);
    TextDrawFont(Uhr, 3);
    TextDrawSetOutline(Uhr, 0);
    //das pbulic
    public PlayerHUD()
    {
    new string[256];
    for(new i=0; i<MAX_PLAYERS; i++)
    {
    if (IsPlayerConnected(i))
    {
    new Levels;
    Levels = GetPlayerLevel(i);
    format(string, sizeof(string), "~w~Level:~r~ %d ~w~Punkte:~r~ %d ~w~Coins:~r~ %d ~w~Kills:~r~ %d ~w~Deaths:~r~ %d ~w~Bank:~r~ %d",Levels,pkt,coins[i] ,kills[i], deaths[i], bank[i]);
    TextDrawSetString(levelanzeige[i],string);//hiermit neu setzen und nicht neu erstellen! ;)
    }
    }
    new hour,minute,second;
    gettime(hour,minute,second);
    format(string,25,"%d:%d",hour,minute);
    TextDrawSetString(Uhr,string);//hiermit neu setzen und nicht neu erstellen! ;)
    SetWorldTime(hour);//so gehts doch auch, warum so umständlich :D
    return 1;
    }


    hier des müsste gehen

    if(GetVehicleModel(newcar) == 520 || GetVehicleModel(newcar) == 497 || GetVehicleModel(newcar) == 470 || GetVehicleModel(newcar) == 433 || GetVehicleModel(newcar) == 598
    {
    if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)//Army
    {
    if(PlayerInfo[playerid][pRank] >= 3 && GetVehicleModel(newcar) == 470)
    {
    SendClientMessage(playerid,COLOR_GREY," Du brauchst Rang 3!");
    RemovePlayerFromVehicle(playerid);
    }
    else if(PlayerInfo[playerid][pRank] >= 4 || GetVehicleModel(newcar) == 598
    {
    SendClientMessage(playerid,COLOR_GREY," Du brauchst Rang 4!");
    RemovePlayerFromVehicle(playerid);
    }
    else if(PlayerInfo[playerid][pRank] >= 5 || GetVehicleModel(newcar) == 433)
    {
    SendClientMessage(playerid,COLOR_GREY," Du brauchst Rang 5!");
    RemovePlayerFromVehicle(playerid);
    }
    else if(PlayerInfo[playerid][pRank] >= 7 || GetVehicleModel(newcar) == 497)
    {
    SendClientMessage(playerid,COLOR_GREY," Du brauchst Rang 7!");
    RemovePlayerFromVehicle(playerid);
    }
    else if(PlayerInfo[playerid][pRank] >= 9 || GetVehicleModel(newcar) == 520)
    {
    SendClientMessage(playerid, COLOR_GREY," Du brauchst Rang 9! ");
    RemovePlayerFromVehicle(playerid);
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_GREY," Du hast keinen Schlüssel !");
    RemovePlayerFromVehicle(playerid);
    }
    }


    hier sollte funktionieren

    if(!strcmp(cmdtext, "/parken", true))
    {
    if(isgeparkt[playerid] == 0)
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0, 1645.3302001953, -1146.1683349609, 23.437452316284))
    {
    SendClientMessage(playerid, COLOR_GREEN,"Das Tor wird geöffnet. Du kannst nun auf dem Parkplatz Parken. (-25$) ");
    MoveObject(bankgate1,1632.2747802734, -1146.5991210938, 23.437452316284);
    SetObjectRot(bankgate1,0,0,0);
    SetTimer("bankzu1",3000,0);
    GivePlayerMoney(playerid, -25);
    isgeparkt[playerid] = 1;
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, "Du parkst bereits!");
    }
    }
    else
    {
    SendClientMessage(playerid,FARBE_ROT,"Du bist nicht am Parkplatz!");
    }
    }
    return 1;
    }


    so wird des bei mir gemacht und keine errors

    if(!strcmp(cmdtext, "/parken", true))
    {
    if(isgeparkt[playerid] == 0)
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0, 1645.3302001953, -1146.1683349609, 23.437452316284))
    {
    SendClientMessage(playerid, COLOR_GREEN,"Das Tor wird geöffnet. Du kannst nun auf dem Parkplatz Parken. (-25$) ");
    MoveObject(bankgate1,1632.2747802734, -1146.5991210938, 23.437452316284);
    SetObjectRot(bankgate1,0,0,0);
    SetTimer("bankzu1",3000,0);
    GivePlayerMoney(playerid, -25);
    isgeparkt[playerid] = 1;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, "Du parkst bereits!");
    }
    else
    {
    SendClientMessage(playerid,FARBE_ROT,"Du bist nicht am Parkplatz!");
    }
    }
    return 1;
    }
    versuch des mal so

    adnan du hast eiene klammer vergessen


    if(!strcmp(cmdtext, "/parken", true))
    {
    if(isgeparkt[playerid] == 0)
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0, 1645.3302001953, -1146.1683349609, 23.437452316284))
    {
    SendClientMessage(playerid, COLOR_GREEN,"Das Tor wird geöffnet. Du kannst nun auf dem Parkplatz Parken. (-25$) ");
    MoveObject(bankgate1,1632.2747802734, -1146.5991210938, 23.437452316284);
    SetObjectRot(bankgate1,0,0,0);
    SetTimer("bankzu1",3000,0);
    GivePlayerMoney(playerid, -25);
    isgeparkt[playerid] = 1;
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, "Du parkst bereits!");
    }
    else
    {
    SendClientMessage(playerid,FARBE_ROT,"Du bist nicht am Parkplatz!");
    }
    return 1;
    }


    mach des mal so

    fast ganz oben im script


    new Text:version;


    unter ongamemodeinit


    version = TextDrawCreate(360.000000,436.000000, "~s~Version: ~s~v0.1");
    TextDrawFont(version,0);
    TextDrawSetShadow(version,0);
    TextDrawSetOutline(version,1);
    TextDrawBackgroundColor(version,0x000000FF);
    TextDrawColor(version,0xFFFFFFFF);


    unter onplayerconnect


    TextDrawShowForPlayer(playerid, version);


    so müsste des funktionieren

    stock sscanf(string[], format[], {Float,_}:...)
    {
    new
    formatPos = 0,
    stringPos = 0,
    paramPos = 2,
    paramCount = numargs();
    while (paramPos < paramCount && string[stringPos])
    {
    switch (format[formatPos++])
    {
    case '\0':
    {
    return 0;
    }
    case 'i', 'd':
    {
    new
    neg = 1,
    num = 0,
    aa = string[stringPos];
    if (aa == '-')
    {
    neg = -1;
    aa = string[++stringPos];
    }
    do
    {
    stringPos++;
    if (aa >= '0' && aa <= '9')
    {
    num = (num * 10) + (aa - '0');
    }
    else
    {
    return 1;
    }
    }
    while ((aa = string[stringPos]) && aa != ' ');
    setarg(paramPos, 0, num * neg);
    }
    case 'h', 'x':
    {
    new
    aa,
    num = 0;
    while ((aa = string[stringPos++]))
    {
    switch (aa)
    {
    case 'x', 'X':
    {
    num = 0;
    continue;
    }
    case '0' .. '9':
    {
    num = (num << 4) | (aa - '0');
    }
    case 'a' .. 'f':
    {
    num = (num << 4) | (aa - ('a' - 10));
    }
    case 'A' .. 'F':
    {
    num = (num << 4) | (aa - ('A' - 10));
    }
    case ' ':
    {
    break;
    }
    default:
    {
    return 1;
    }
    }
    }
    setarg(paramPos, 0, num);
    }
    case 'c':
    {
    setarg(paramPos, 0, string[stringPos++]);
    }
    case 'f':
    {
    new tmp[25];
    strmid(tmp, string, stringPos, stringPos+sizeof(tmp)-2);
    setarg(paramPos, 0, _:floatstr(tmp));
    }
    case 's', 'z':
    {
    new
    i = 0,
    aa;
    if (format[formatPos])
    {
    while ((aa = string[stringPos++]) && aa != ' ')
    {
    setarg(paramPos, i++, aa);
    }
    if (!i) return 1;
    }
    else
    {
    while ((aa = string[stringPos++]))
    {
    setarg(paramPos, i++, aa);
    }
    }
    stringPos--;
    setarg(paramPos, i, '\0');
    }
    default:
    {
    continue;
    }
    }
    while (string[stringPos] && string[stringPos] != ' ')
    {
    stringPos++;
    }
    while (string[stringPos] == ' ')
    {
    stringPos++;
    }
    paramPos++;
    }
    while (format[formatPos] == 'z') formatPos++;
    return format[formatPos];
    }


    meintest du des paint? des hat nur 130 zeilen

    format(coordsstring, sizeof(coordsstring), "Level: [%d] Kills: [%d] Tode: [%d] Geld: [$%d] Bank: [$%d] Knastbesuche: [%d] Telefon: [%d]",level, kills,deaths,cash,bank, knast, nur);
    ShowPlayerDialog(i, DIALOG_STYLE_MSGBOX, 0, "Stats", coordsstring, "Weiter", "Weiter");


    versuch des mal so


    //edit Skyline schnella

    if(strcmp("/enter", cmdtext, true, 10) ==0)
    {
    if (IsPlayerInRangeOfPoint(2.0, playerid,19,-2026.6926,-102.0659,35.1641))
    {
    SetPlayerPos(playerid,-2027.9176,-105.1821,1035.1719);
    SetPlayerInterior(playerid, 3);
    }


    hier so wegen dem eingang