Beiträge von xuNsHiNe

    ocmd:online(playerid,params[])
    {
    if(PlayerInfo[playerid][pMember] > 0)
    {
    SendClientMessage(playerid, COLOR_YELLOW, "===[Aus deiner Fraktion ist Online: ]===");
    foreach (Player, i)
    {
    new mymember;
    mymember = PlayerInfo[playerid][pMember];
    new myleader;
    myleader = PlayerInfo[playerid][pMember];
    if(PlayerInfo[i][pMember] == mymember || PlayerInfo[i][pLeader] == myleader)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string, sizeof(string), "* %s [ID:%d][Rang:%d]", SpielerName(i),i,PlayerInfo[i][pRank]);
    SendClientMessage(playerid, COLOR_WHITE, string);
    }
    }
    return 1;
    }
    if(PlayerInfo[playerid][pLeader] > 0)
    {
    SendClientMessage(playerid, COLOR_YELLOW, "===[Aus deiner Fraktion ist Online: ]===");
    foreach (Player, i)
    {
    new mymember;
    mymember = PlayerInfo[playerid][pLeader];
    new myleader;
    myleader = PlayerInfo[playerid][pLeader];
    if(PlayerInfo[i][pMember] == mymember || PlayerInfo[i][pLeader] == myleader)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string, sizeof(string), "* %s [ID:%d][Rang:%d]", SpielerName(i),i,PlayerInfo[i][pRank]);
    SendClientMessage(playerid, COLOR_WHITE, string);
    }
    }
    return 1;
    }
    return 1;
    }

    if (strcmp(cmd, "/admins", true) == 0 || strcmp(cmd, "/supporter", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    SendClientMessage(playerid, COLOR_GRAD1, " ");
    SendClientMessage(playerid, COLOR_GRAD1, " Admins und Supporter wo Online sind:");
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(PlayerInfo[i][pSupporter] >=1)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string)," %d* Supporter: %s[%d] Tel-Nummer: %d",PlayerInfo[i][pSupporter],sendername,i,PlayerInfo[i][pPnumber]);
    SendClientMessage(playerid, COLOR_GRAD2, string);
    }
    if(PlayerInfo[i][pSupporter] == 6)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string)," %d* Admin: %s[%d] Tel-Nummer: %d",PlayerInfo[i][pSupporter],sendername,i,PlayerInfo[i][pPnumber]);
    SendClientMessage(playerid, COLOR_GRAD2, string);
    }
    if(PlayerInfo[i][pAdmin] == 1)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string)," %d* Supporter: %s[%d] Tel-Nummer: %d",PlayerInfo[i][pAdmin],sendername,i,PlayerInfo[i][pPnumber]);
    SendClientMessage(playerid, COLOR_GRAD2, string);
    }
    if(PlayerInfo[i][pAdmin] == 2)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string)," %d* Moderator: %s[%d] Tel-Nummer: %d",PlayerInfo[i][pAdmin],sendername,i,PlayerInfo[i][pPnumber]);
    SendClientMessage(playerid, COLOR_GRAD2, string);
    }
    if(PlayerInfo[i][pAdmin] == 3)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string)," %d* Super Moderator: %s[%d] Tel-Nummer: %d",PlayerInfo[i][pAdmin],sendername,i,PlayerInfo[i][pPnumber]);
    SendClientMessage(playerid, COLOR_GRAD2, string);
    }
    if(PlayerInfo[i][pAdmin] == 4)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string)," %d* Administrator: %s[%d] Tel-Nummer: %d",PlayerInfo[i][pAdmin],sendername,i,PlayerInfo[i][pPnumber]);
    SendClientMessage(playerid, COLOR_GRAD2, string);
    }
    if(PlayerInfo[i][pAdmin] == 1337)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string)," %d* Super Administrator: %s[%d] Tel-Nummer: %d",PlayerInfo[i][pAdmin],sendername,i,PlayerInfo[i][pPnumber]);
    SendClientMessage(playerid, COLOR_GRAD2, string);
    }
    if(PlayerInfo[i][pAdmin] == 1338)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string)," %d* Technische Leitung: %s[%d] Tel-Nummer: %d",PlayerInfo[i][pAdmin],sendername,i,PlayerInfo[i][pPnumber]);
    SendClientMessage(playerid, COLOR_GRAD2, string);
    }
    if(PlayerInfo[i][pAdmin] == 2000)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string)," %d* Server Leitung: %s[%d] Tel-Nummer: %d",PlayerInfo[i][pAdmin],sendername,i,PlayerInfo[i][pPnumber]);
    SendClientMessage(playerid, COLOR_GRAD2, string);
    }
    }
    }
    }
    return 1;
    }



    Versuchst mal so

    stock LoadHouseTenants()
    {
    new id[16], idd[16];
    new Tenantname[128];
    for (new i = 1; i <= mysql_GetEntries("housedata"); i++)
    {
    format(idd, sizeof(idd), "%d", i);
    for (new j = 1; j <= mysql_GetEntriesByKey("housetenants", "houseid", idd);)
    {
    format(id, sizeof(id), "%d", j);

    Tenantname = mysql_GetString("housetenants", "tenantname", "houseid", id);

    printf("Mieter Nummer %d: %s", j, Tenantname);
    j++
    }
    }
    }


    oder so


    stock LoadHouseTenants()
    {
    new id[16], idd[16];
    new Tenantname[128];
    for (new i = 1; i <= mysql_GetEntries("housedata");)
    {
    format(idd, sizeof(idd), "%d", i);
    for (new j = 1; j <= mysql_GetEntriesByKey("housetenants", "houseid", idd);)
    {
    format(id, sizeof(id), "%d", j);

    Tenantname = mysql_GetString("housetenants", "tenantname", "houseid", id);

    printf("Mieter Nummer %d: %s", j, Tenantname);
    j++
    }
    i++
    }
    }

    Okay ich würde es so machen..


    new
    pID,
    iLicence,
    sGrund[32];
    if(sccanf(params, "uis", pID, iLicence, sGrund))


    Wie kann ich aber jetzt die iLicence festelegen und sGrund?


    also z.b. pID= 2 iLicence = 2 sGrund = Falsche Straßenseite


    also iLicence und sGrund fest gesetzt sein..


    wie kann ich dass machen?


    lg M4rciii