Beiträge von Jexian

    Du musst auch die sachen beim connecten wieder reseten für die neuen Spieler die kommen



    //OnPlayerConnect(playerid)
    sachenset/playerid);


    //ganz unten
    stock sachenset(playerid)
    {
    SetPVarInt(playerid,"Baned",0);
    return true;
    }


    besser were es wenn du dir einen Spieler Enum erstellt


    zb



    enum sInfo
    {
    level,
    admin,
    banned
    }
    new SpielerInfo[MAX_PLAYERS][sInfo];


    sInfo[playerid][banned] = 1;

    geht etwas einfacher und ist übersichtlicher


    if(Busfahrer[playerid][IsBusfahring] == 1)
    {
    if(IsPlayerInAnyVehicle(playerid) && Busfahrer[playerid][BusID] == GetPlayerVehicleID(playerid))
    {
    if(Busfahrer[playerid][BusZeit] == 0)
    {
    if(Busfahrer[playerid][BusRoute] == 1)
    {
    if(Busfahrer[playerid][BusStand] == sizeof(BusfahrRouteA)-1)
    {
    SendClientMessage(playerid,COLOR_GREEN,"Du hast soeben deine Bustour beendet.");
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid,COLOR_BUSBLUE,"Du erhälst an deinem PayDay zusätzlich 2900$.");
    PlayerInfo[playerid][pJobMoney]+=2900;
    Busfahrer[playerid][BusID] = 0;
    Busfahrer[playerid][IsBusfahring] = 0;
    Busfahrer[playerid][BusStand] = 0;
    Busfahrer[playerid][BusRoute] = 0;
    Busfahrer[playerid][BusZeit] = 0;
    SaveUserStats(playerid);
    }
    }
    }
    else{Busfahrer[playerid][BusZeit] = 10;}
    }
    }

    versuche es mal so

    Okay ich werde es mal so als format versuchen :) danke dir



    //
    leider weiß ich jetzt nicht wie ich es weiter bauen soll -.-


    mysql_format(MySQLConnection, query, sizeof(query), "SELECT name, frac_rank FROM Spieler WHERE fraktion = <fraktion> AND rank != <LEADER_RANK> ORDER BY frac_rank DESC;", i);

    Guten Morgen,
    Ich wollte gerne alle Members den Leader anzeigen lassen, auch die Offline sind, die er in seine Fraktion hat.
    ich habe mir das so vorgestellt, das er vom Leader die Fraktion-ID nimmt, und alle in der Datenbank anzeigt die auch die ID haben. Nur wie mache ich es am besten?, und das auch so das der Leader nicht auch mit drin ist ?
    Oder zb mit ab rank 1 - 5...


    Mysqlversion ist r39 -6 BlueG

    also dann so ?



    SetPlayerMapIcon(playerid,0,1025.1765,-1027.7191,32.1016,63,0x00000000,MAPICON_LOCAL);//autowerkstatd ls
    SetPlayerMapIcon(playerid,1,1041.2628,-1026.6565,32.1016,27,0x00000000,MAPICON_LOCAL);//tunning garage ls
    SetPlayerMapIcon(playerid,2,1399.2361,-1089.0090,27.4595,36,0x00000000,MAPICON_LOCAL);//bank ls
    SetPlayerMapIcon(playerid,3,1278.3624,-1649.9377,13.5510,30,0x00000000,MAPICON_LOCAL);//bcpd ls
    SetPlayerMapIcon(playerid,4,1368.9070,-1763.2440,13.5559,45,0x00000000,MAPICON_LOCAL);//skinshop
    SetPlayerMapIcon(playerid,5,1352.3558,-1759.0603,13.5078,52,0x00000000,MAPICON_LOCAL);//24/7 ls
    SetPlayerMapIcon(playerid,6,1482.3076,-1785.4537,15.3504,38,0x00000000,MAPICON_LOCAL);//stadthalle
    SetPlayerMapIcon(playerid,7,1555.3772,-1674.8953,16.1953,30,0x00000000,MAPICON_LOCAL);//fbi
    SetPlayerMapIcon(playerid,8,1941.8190,-1763.5297,13.3906,42,0x00000000,MAPICON_LOCAL);//tanke groove
    SetPlayerMapIcon(playerid,9,999.8414,-1461.1689,13.3214,55,0x00000000,MAPICON_LOCAL);//autohaus nähe fahrschule
    SetPlayerMapIcon(playerid,10,1019.5882,-1356.0807,13.3265,48,0x00000000,MAPICON_LOCAL);//fahrschle ls
    SetPlayerMapIcon(playerid,11,1172.1360,-1323.6281,15.4037,22,0x00000000,MAPICON_LOCAL);//krankenhaus ls
    SetPlayerMapIcon(playerid,12,1478.0654,-1894.6399,13.5079,55,0x00000000,MAPICON_LOCAL);//autohaus2
    SetPlayerMapIcon(playerid,13,991.2330,-1765.4176,13.3247,35,0x00000000,MAPICON_LOCAL);//oamt ls
    SetPlayerMapIcon(playerid,14,1004.1126,-937.5269,42.3281,42,0x00000000,MAPICON_LOCAL);//tanke bsn
    SetPlayerMapIcon(playerid,15,-1233.6982,-88.1554,14.9228,17,0x00000000,MAPICON_LOCAL);//SF Hanger (Pilot)
    SetPlayerMapIcon(playerid,16,1346.5087,1712.4694,10.8203,18,0x00000000,MAPICON_LOCAL);//LB Hanger (Pilot)
    SetPlayerMapIcon(playerid,17,1888.6704,-2638.9941,13.5469,19,0x00000000,MAPICON_LOCAL);//LS Hanger (Pilot)

    okay :D das es da kein error gab wundert mich ^^


    ist es denn so richtig



    SetPlayerMapIcon(playerid,63,1025.1765,-1027.7191,32.1016,63,0x00000000,MAPICON_LOCAL);//autowerkstatd ls
    SetPlayerMapIcon(playerid,27,1041.2628,-1026.6565,32.1016,27,0x00000000,MAPICON_LOCAL);//tunning garage ls
    SetPlayerMapIcon(playerid,36,1399.2361,-1089.0090,27.4595,36,0x00000000,MAPICON_LOCAL);//bank ls
    SetPlayerMapIcon(playerid,30,1278.3624,-1649.9377,13.5510,30,0x00000000,MAPICON_LOCAL);//bcpd ls
    SetPlayerMapIcon(playerid,45,1368.9070,-1763.2440,13.5559,45,0x00000000,MAPICON_LOCAL);//skinshop
    SetPlayerMapIcon(playerid,52,1352.3558,-1759.0603,13.5078,52,0x00000000,MAPICON_LOCAL);//24/7 ls
    SetPlayerMapIcon(playerid,38,1482.3076,-1785.4537,15.3504,38,0x00000000,MAPICON_LOCAL);//stadthalle
    SetPlayerMapIcon(playerid,30,1555.3772,-1674.8953,16.1953,30,0x00000000,MAPICON_LOCAL);//fbi
    SetPlayerMapIcon(playerid,42,1941.8190,-1763.5297,13.3906,42,0x00000000,MAPICON_LOCAL);//tanke groove
    SetPlayerMapIcon(playerid,55,999.8414,-1461.1689,13.3214,55,0x00000000,MAPICON_LOCAL);//autohaus nähe fahrschule
    SetPlayerMapIcon(playerid,48,1019.5882,-1356.0807,13.3265,48,0x00000000,MAPICON_LOCAL);//fahrschle ls
    SetPlayerMapIcon(playerid,22,1172.1360,-1323.6281,15.4037,22,0x00000000,MAPICON_LOCAL);//krankenhaus ls
    SetPlayerMapIcon(playerid,55,1478.0654,-1894.6399,13.5079,55,0x00000000,MAPICON_LOCAL);//autohaus2
    SetPlayerMapIcon(playerid,35,991.2330,-1765.4176,13.3247,35,0x00000000,MAPICON_LOCAL);//oamt ls
    SetPlayerMapIcon(playerid,42,1004.1126,-937.5269,42.3281,42,0x00000000,MAPICON_LOCAL);//tanke bsn
    SetPlayerMapIcon(playerid,17,-1233.6982,-88.1554,14.9228,17,0x00000000,MAPICON_LOCAL);//SF Hanger (Pilot)
    SetPlayerMapIcon(playerid,18,1346.5087,1712.4694,10.8203,18,0x00000000,MAPICON_LOCAL);//LB Hanger (Pilot)
    SetPlayerMapIcon(playerid,19,1888.6704,-2638.9941,13.5469,19,0x00000000,MAPICON_LOCAL);//LS Hanger (Pilot)

    Guten Abend,
    Iwie werden nicht alle Mapicons gesetzt woran kann das liegen ?



    SetPlayerMapIcon(playerid,63,1025.1765,-1027.7191,32.1016,63,MAPICON_LOCAL);//autowerkstatd ls
    SetPlayerMapIcon(playerid,27,1041.2628,-1026.6565,32.1016,27,MAPICON_LOCAL);//tunning garage ls
    SetPlayerMapIcon(playerid,36,1399.2361,-1089.0090,27.4595,36,MAPICON_LOCAL);//bank ls
    SetPlayerMapIcon(playerid,30,1278.3624,-1649.9377,13.5510,30,MAPICON_LOCAL);//bcpd ls
    SetPlayerMapIcon(playerid,45,1368.9070,-1763.2440,13.5559,45,MAPICON_LOCAL);//skinshop
    SetPlayerMapIcon(playerid,52,1352.3558,-1759.0603,13.5078,52,MAPICON_LOCAL);//24/7 ls
    SetPlayerMapIcon(playerid,56,1482.3076,-1785.4537,15.3504,56,MAPICON_LOCAL);//stadthalle
    SetPlayerMapIcon(playerid,30,1555.3772,-1674.8953,16.1953,30,MAPICON_LOCAL);//fbi
    SetPlayerMapIcon(playerid,42,1941.8190,-1763.5297,13.3906,42,MAPICON_LOCAL);//tanke groove
    SetPlayerMapIcon(playerid,55,999.8823,-1461.3362,13.3214,55,MAPICON_LOCAL);//autohaus nähe fahrschule
    SetPlayerMapIcon(playerid,48,1019.5882,-1356.0807,13.3265,48,MAPICON_LOCAL);//fahrschle ls
    SetPlayerMapIcon(playerid,22,1172.1360,-1323.6281,15.4037,22,MAPICON_LOCAL);//krankenhaus ls
    SetPlayerMapIcon(playerid,55,1478.0654,-1894.6399,13.5079,55,MAPICON_LOCAL);//autohaus2
    SetPlayerMapIcon(playerid,35,991.2330,-1765.4176,13.3247,35,MAPICON_LOCAL);//oamt ls
    SetPlayerMapIcon(playerid,42,1004.1126,-937.5269,42.3281,42,MAPICON_LOCAL);//tanke bsn
    SetPlayerMapIcon(playerid,17,-1233.6982,-88.1554,14.9228,17,MAPICON_LOCAL);//SF Hanger (Pilot)
    SetPlayerMapIcon(playerid,18,1346.5087,1712.4694,10.8203,18,MAPICON_LOCAL);//LB Hanger (Pilot)
    SetPlayerMapIcon(playerid,19,1888.6704,-2638.9941,13.5469,19,MAPICON_LOCAL);//LS Hanger (Pilot)