Beiträge von wiser1337

In 10 Minuten startet der nächtliche Backupvorgang! Es kann währenddessen (ca. 10 Minuten) zu Einschränkungen bei der Nutzung des Forums kommen
Weitere Infos findet ihr im Thema Backup des Forums

    Ich suche eine Möglichkeit sich bestimmte Gangzonen zu erkämpfen das z.b das bestimmte Feld auf der Minimap blinkt und auf den Bildschirm komm das diese Zone angegriffen wird Könnte mir das jemand geben wehre nett danke (Das von GTA Suchtis wehre Perfekt)

    Ich weiß nicht woran das liegt.


    C:\Users\Philipp\Desktop\Nuer\gamemodes\larp.pwn(73278) : error 017: undefined symbol "sscanf"
    C:\Users\Philipp\Desktop\Nuer\gamemodes\larp.pwn(73302) : error 017: undefined symbol "sscanf"

    bei dieser zeile bekomme ich diesen fehler code.
    C:\Users\Philipp\Desktop\GTA\gamemodes\gf.pwn(498 ) : error 009: invalid array size (negative, zero or out of bounds)


    new CarInfo[870][cInfo];


    bei dieser zeile bekomme ich diesen fehler code.
    C:\Users\Philipp\Desktop\GTA\gamemodes\gf.pwn(8984) : warning 217: loose indentation


    while(idx < sizeof(CarInfo))
    {
    new coordsstring[256];
    format(coordsstring, sizeof(coordsstring), "%d,%f,%f,%f,%f,%d,%d,%s,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d\n",
    CarInfo[idx][cModel],
    CarInfo[idx][cLocationx],
    CarInfo[idx][cLocationy],
    CarInfo[idx][cLocationz],
    CarInfo[idx][cAngle],
    CarInfo[idx][cColorOne],
    CarInfo[idx][cColorTwo],
    CarInfo[idx][cOwner],
    CarInfo[idx][cOwned],
    CarInfo[idx][cLock],
    CarInfo[idx][cPaintjob],
    CarInfo[idx][cVirWorld],
    CarInfo[idx][cComponent0],
    CarInfo[idx][cComponent1],
    CarInfo[idx][cComponent2],
    CarInfo[idx][cComponent3],
    CarInfo[idx][cComponent4],
    CarInfo[idx][cComponent5],
    CarInfo[idx][cComponent6],
    CarInfo[idx][cComponent7],
    CarInfo[idx][cComponent8],
    CarInfo[idx][cComponent9],
    CarInfo[idx][cComponent10],
    CarInfo[idx][cComponent11],
    CarInfo[idx][cComponent12],
    CarInfo[idx][cComponent13]);
    if(idx == 184)
    {
    file2 = fopen("cars.cfg", io_write);
    }
    else
    {
    file2 = fopen("cars.cfg", io_append);
    }
    fwrite(file2, coordsstring);
    idx++;
    fclose(file2);
    }
    }
    return 1; // das hier auch der 3 fehler
    }


    bei diesen bekomme ich diesen code.
    C:\Users\Philipp\Desktop\GTA\gamemodes\gf.pwn(9027) : error 010: invalid function or declaration


    }
    fwrite(file2, coordsstring);
    idx++;
    fclose(file2);
    }
    }
    return 1;
    }

    Ich habe mit meinen Invite system ein paar probleme wenn es geht nur die Cops aber die anderen fractionen gehen nicht


    bitte helft mir


    if(strcmp(cmd, "/invite", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /invite [playerid/PartOfName]");
    return 1;
    }
    new para1;
    new ftext[20];
    para1 = ReturnUser(tmp);
    if (PlayerInfo[playerid][pRank] == 6 && PlayerInfo[playerid][pMember] >= 1);
    {
    if(IsPlayerConnected(para1))
    {
    if(para1 != INVALID_PLAYER_ID)
    {
    if (PlayerInfo[para1][pMember] == 0 && PlayerInfo[para1][pFMember] == 255)
    {
    if(PlayerInfo[playerid][pLeader] == 1) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Police Force"; ChosenSkin[para1] = 71; SetPlayerSkin(para1, 71); }
    else if(PlayerInfo[playerid][pLeader] == 2) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "FBI/ATF"; ChosenSkin[para1] = 286; SetPlayerSkin(para1, 286); }
    else if(PlayerInfo[playerid][pLeader] == 3) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "National Guard"; ChosenSkin[para1] = 287; SetPlayerSkin(para1, 287); }
    else if(PlayerInfo[playerid][pLeader] == 4) { PlayerInfo[para1][pTeam] = 1; gTeam[para1] = 1; ftext = "Firemen/Ambulance"; ChosenSkin[para1] = 70; SetPlayerSkin(para1, 70); }
    else if(PlayerInfo[playerid][pLeader] == 5) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Bratva"; ChosenSkin[para1] = 116; SetPlayerSkin(para1, 116); }
    else if(PlayerInfo[playerid][pLeader] == 6) { PlayerInfo[para1][pTeam] = 6; gTeam[para1] = 6; ftext = "La Vice"; ChosenSkin[para1] = 240; SetPlayerSkin(para1, 240); }
    else if(PlayerInfo[playerid][pLeader] == 7) { return 1; }
    else if(PlayerInfo[playerid][pLeader] == 8) { PlayerInfo[para1][pTeam] = 10; gTeam[para1] = 12; ftext = "Hitman Agency"; ChosenSkin[para1] = 249; SetPlayerSkin(para1, 249); }
    else if(PlayerInfo[playerid][pLeader] == 9) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Hi K69 Radio"; ChosenSkin[para1] = 148; SetPlayerSkin(para1, 148); }
    else if(PlayerInfo[playerid][pLeader] == 10) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Taxi Cab Company"; ChosenSkin[para1] = 255; SetPlayerSkin(para1, 255); }
    else if(PlayerInfo[playerid][pLeader] == 11) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "School Instructors"; ChosenSkin[para1] = 59; SetPlayerSkin(para1, 59); }
    else if(PlayerInfo[playerid][pLeader] == 14) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Yamaguchi"; ChosenSkin[para1] = 169; SetPlayerSkin(para1, 169); }
    else if(PlayerInfo[playerid][pLeader] == 15) { PlayerInfo[para1][pTeam] = 15; gTeam[para1] = 15; ftext = "Biker"; ChosenSkin[para1] = 254; SetPlayerSkin(para1, 254); }
    else if(PlayerInfo[playerid][pLeader] == 16) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Yellos"; ChosenSkin[para1] = 7; SetPlayerSkin(para1, 7); }
    else { return 1; }
    GetPlayerName(para1, giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, sendername, sizeof(sendername));
    PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
    PlayerInfo[para1][pRank] = 1;
    // PlayerInfo[para1][pFactionIden]=FamilyInfo[PlayerInfo[playerid][pMember]][FamilyIden];
    printf("AdmCmd: %s has invited %s to join %s.", sendername, giveplayer, ftext);
    format(string, sizeof(string), " You have Joined the %s, you were invited by Leader %s", FamilyInfo[PlayerInfo[playerid][pMember]][FamilyName], sendername);
    SendClientMessage(para1, COLOR_WHITE, string);
    format(string, sizeof(string), " You have Invited %s to join the %s.", giveplayer,FamilyInfo[PlayerInfo[playerid][pMember]][FamilyName]);
    SendClientMessage(playerid, COLOR_WHITE, string);
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " That player is currently Wanted / a Different Team / or already a Family Member.");
    return 1;
    }
    }
    }//not connected
    }
    /* if(PlayerInfo[playerid][pLeader] == 0)
    {
    if(PlayerInfo[playerid][pMember] == 1 && PlayerInfo[playerid][pRank] >= 6)
    {
    PlayerInfo[para1][pTeam] = 2;
    gTeam[para1] = 2;
    ftext = "Police Force";
    ChosenSkin[para1] = 71;
    SetPlayerSkin(para1, 71);
    GetPlayerName(para1, giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, sendername, sizeof(sendername));
    PlayerInfo[para1][pMember] = PlayerInfo[playerid][pMember];
    PlayerInfo[para1][pRank] = 1;
    printf("AdmCmd: %s has invited %s to join %s.", sendername, giveplayer, ftext);
    format(string, sizeof(string), " You have Joined the %s, you were invited by Leader %s", ftext, sendername);
    SendClientMessage(para1, COLOR_WHITE, string);
    format(string, sizeof(string), " You have Invited %s to join the %s.", giveplayer,ftext);
    SendClientMessage(playerid, COLOR_WHITE, string);
    }
    }*/

    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command(leaders only)!");
    }
    }
    return 1;
    }

    den kommt die Fehler Meldung


    bei dieser Zeile kommt der Fehler
    new vehicle = GetPlayerVehicleID(playerid);


    C:\Users\Philipp\Desktop\GTA server\gamemodes\VFCRPV2.2.pwn(7417) : warning 219: local variable "vehicle" shadows a variable at a preceding level


    bei diesen kommt der Fehler
    new vehicle = GetPlayerVehicleID(i);


    C:\Users\Philipp\Desktop\GTA server\gamemodes\VFCRPV2.2.pwn(10205) : warning 219: local variable "vehicle" shadows a variable at a preceding level


    bei diesen kommt der Fehler
    new vehicle = GetPlayerVehicleID(playerid);


    C:\Users\Philipp\Desktop\GTA server\gamemodes\VFCRPV2.2.pwn(24244) : warning 219: local variable "vehicle" shadows a variable at a preceding level

    ich habe ein Fehler bei diesen kleinen Script das soll mir die ID des Auto anzeigen damit ich die besser einordnen kann könnte mir bitte einer helfen



    if(IsAnOwnableCar(vehicleid))
    {
    format(string,sizeof(string),"Das ist ein %s (%d) BESITZER: %s",vehicle, vehicleid, CarInfo[vehicleid][cOwner]);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    }


    das hier sind die Fehler Codes


    C:\Users\Philipp\Desktop\GTA server\gamemodes\VFCRPV2.2.pwn(8430) : error 017: undefined symbol "string"
    C:\Users\Philipp\Desktop\GTA server\gamemodes\VFCRPV2.2.pwn(8430) : error 017: undefined symbol "string"
    C:\Users\Philipp\Desktop\GTA server\gamemodes\VFCRPV2.2.pwn(8430) : error 029: invalid expression, assumed zero
    C:\Users\Philipp\Desktop\GTA server\gamemodes\VFCRPV2.2.pwn(8430) : fatal error 107: too many error messages on one line

    Ich möchte gern einen huren System haben die nach den Sex das Geld bekommen was sie sich verdient hat.


    Sie diese eine angebt mach wie viel sie dafür haben will und den wenn diese es de annimmt das die hure das den auch bekommt.


    danke in voraus

    wie kann ich bei dieses System payday vergrößern für die Fraktionen ?


    public PayDay()
    {
    new string[128];
    new account,interest;
    new rent = 0;
    new donator = 0;
    new faction = 0;
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(PlayerInfo[i][pLevel] > 0)
    {
    if(MoneyMessage[i]==1)
    {
    SendClientMessage(i, COLOR_LIGHTRED, "Du hast versäumt deine Schulden zu zahlen, daher bekommst du Wanted´s.");
    SetPlayerCriminal(i ,255, "Schulden nicht bezahlt");
    WantedPoints[i]+=3;
    }
    new infostring[256];
    //new nxtlevel = PlayerInfo[i][pLevel]+1;
    new playername2[MAX_PLAYER_NAME];
    GetPlayerName(i, playername2, sizeof(playername2));
    account = PlayerInfo[i][pAccount];
    new key = PlayerInfo[i][pPhousekey];
    if(key != 255)
    {
    rent = HouseInfo[key][hRent];
    if(strcmp(playername2, HouseInfo[key][hOwner], true) == 0)
    {
    rent = 0;
    }
    else if(rent > GetPlayerMoney(i))
    {
    PlayerInfo[i][pPhousekey] = 255;
    SendClientMessage(i, COLOR_WHITE, "Du bist vertrieben worden.");
    rent = 0;
    }
    HouseInfo[key][hTakings] = HouseInfo[key][hTakings]+rent;
    }
    if(PlayerInfo[i][pDonateRank] == 1)
    {
    donator = 50;
    }
    else if(PlayerInfo[i][pDonateRank] == 2)
    {
    donator = 75;
    }
    else if(PlayerInfo[i][pDonateRank] == 3)
    {
    donator = 100;
    }
    else if(PlayerInfo[i][pDonateRank] == 4)
    {
    donator = 125;
    }
    else if(PlayerInfo[i][pDonateRank] == 5)
    {
    donator = 175;
    }
    else
    {
    donator = 0;
    }
    if(PlayerInfo[i][pMember] == 1)
    {
    if(PlayerInfo[i][pRank] == 1)
    {
    faction = 50;
    }
    else if(PlayerInfo[i][pRank] == 2)
    {
    faction = 65;
    }
    else if(PlayerInfo[i][pRank] == 3)
    {
    faction = 75;
    }
    else if(PlayerInfo[i][pRank] == 4)
    {
    faction = 85;
    }
    else if(PlayerInfo[i][pRank] == 5)
    {
    faction = 100;
    }
    else if(PlayerInfo[i][pRank] == 6)
    {
    faction = 110;
    }
    else if(PlayerInfo[i][pRank] == 7)
    {
    faction = 125;
    }
    else if(PlayerInfo[i][pRank] == 8)
    {
    faction = 150;
    }
    else
    {
    faction = 0;
    }
    }
    else if(PlayerInfo[i][pMember] == 4)
    {
    if(PlayerInfo[i][pRank] == 1)
    {
    faction = 50;
    }
    else if(PlayerInfo[i][pRank] == 2)
    {
    faction = 75;
    }
    else if(PlayerInfo[i][pRank] == 3)
    {
    faction = 100;
    }
    else if(PlayerInfo[i][pRank] == 4)
    {
    faction = 110;
    }
    else if(PlayerInfo[i][pRank] == 5)
    {
    faction = 125;
    }
    else if(PlayerInfo[i][pRank] == 6)
    {
    faction = 150;
    }
    else
    {
    faction = 0;
    }
    }
    else if(PlayerInfo[i][pMember] == 9)
    {
    if(PlayerInfo[i][pRank] == 1)
    {
    faction = 25;
    }
    else if(PlayerInfo[i][pRank] == 2)
    {
    faction = 35;
    }
    else if(PlayerInfo[i][pRank] == 3)
    {
    faction = 45;
    }
    else if(PlayerInfo[i][pRank] == 4)
    {
    faction = 50;
    }
    else if(PlayerInfo[i][pRank] == 5)
    {
    faction = 75;
    }
    else if(PlayerInfo[i][pRank] == 6)
    {
    faction = 90;
    }
    else if(PlayerInfo[i][pRank] == 7)
    {
    faction = 100;
    }
    else if(PlayerInfo[i][pRank] == 8)
    {
    faction = 110;
    }
    else if(PlayerInfo[i][pRank] == 9)
    {
    faction = 125;
    }
    else if(PlayerInfo[i][pRank] == 10)
    {
    faction = 150;
    }
    else
    {
    faction = 0;
    }
    }
    else
    {
    faction = 0;
    }
    new tmpintrate;
    if (key != 255 && strcmp(playername2, HouseInfo[key][hOwner], true) == 0)
    {
    if(PlayerInfo[i][pDonateRank] > 0) { tmpintrate = intrate+4; }
    else { tmpintrate = intrate+2; }//HouseInfo[key][hLevel]
    }
    else
    {
    if(PlayerInfo[i][pDonateRank] > 0) { tmpintrate = 3; }
    else { tmpintrate = 1; }
    }
    if(PlayerInfo[i][pPayDay] >= 1)
    {
    Tax += TaxValue;//Should work for every player online
    PlayerInfo[i][pAccount] -= TaxValue;
    new checks = PlayerInfo[i][pPayCheck] / 150;
    /*if(PlayerInfo[i][pDonateRank] > 0)
    {
    new bonus = PlayerInfo[i][pPayCheck] / 300;
    checks += bonus;
    }*/
    new ebill = (PlayerInfo[i][pAccount]/10000);
    //ConsumingMoney[i] = 1;
    //SafeGivePlayerMoney(i, checks);
    account += checks;
    //account += donator;
    //account += faction;
    if(PlayerInfo[i][pAccount] > 0)
    {
    PlayerInfo[i][pAccount] -= ebill;
    SBizzInfo[4][sbTill] += ebill;
    }
    else
    {
    ebill = 0;
    }
    interest = (PlayerInfo[i][pAccount]/1000)*(tmpintrate);
    PlayerInfo[i][pExp]++;
    PlayerPlayMusic(i);
    PlayerInfo[i][pAccount] = account+interest+donator+faction;
    SendClientMessage(i, COLOR_GREEN, "|___ BANK ___|");
    format(string, sizeof(string), " Paycheck: $%d Tax Money: -$%d", checks, TaxValue);
    SendClientMessage(i, COLOR_WHITE, string);
    if(PlayerInfo[i][pPhousekey] != 255 || PlayerInfo[i][pPbiskey] != 255)
    {
    format(string, sizeof(string), " Electricity Bill: -$%d", ebill);
    SendClientMessage(i, COLOR_GRAD1, string);
    }
    format(string, sizeof(string), " Balance: $%d", account - checks);
    SendClientMessage(i, COLOR_WHITE, string);
    format(string, sizeof(string), " Interest Rate: 0.%d percent",tmpintrate);
    SendClientMessage(i, COLOR_GRAD2, string);
    format(string, sizeof(string), " Interest Gained $%d", interest);
    SendClientMessage(i, COLOR_GRAD3, string);
    format(string, sizeof(string), " Faction earnings $%d", faction);
    SendClientMessage(i, COLOR_GRAD3, string);
    format(string, sizeof(string), " Donator: +$%d", donator);
    SendClientMessage(i, COLOR_GRAD5, string);
    SendClientMessage(i, COLOR_GREEN, "|--------------------------------------|");
    format(string, sizeof(string), " New Balance: $%d", PlayerInfo[i][pAccount]);
    SendClientMessage(i, COLOR_GRAD5, string);
    format(string, sizeof(string), " Rent: -$%d", rent);
    SendClientMessage(i, COLOR_GRAD5, string);
    format(string, sizeof(string), "~y~PayDay~n~~w~Checke dein Geld");
    GameTextForPlayer(i, string, 5000, 1);
    rent = 0;
    PlayerInfo[i][pPayDay] = 0;
    PlayerInfo[i][pPayCheck] = 0;
    PlayerInfo[i][pConnectTime] += 1;
    new nxtlevel = PlayerInfo[i][pLevel]+1;
    new expamount = nxtlevel*levelexp;
    if(PlayerInfo[i][pExp] >= expamount)
    {
    format(string, sizeof(string), "~g~Level up! Neue upgrades verfuegbar!");
    PlayerPlaySound(i, 1052, 0.0, 0.0, 0.0);
    PlayerPlayMusic(i);
    PlayerInfo[i][pLevel]++;
    PlayerInfo[i][pExp] = 0;
    PlayerInfo[i][gPupgrade] = PlayerInfo[i][gPupgrade]+2;
    GameTextForPlayer(i, string, 5000, 1);
    format(infostring, 256, " Level up! Benutze /upgrade um die upgrades zu sehen");
    SendClientMessage(i, COLOR_GRAD1, infostring);
    format(infostring, 256, " Du hast %d Upgrade Punkte ausgegeben",PlayerInfo[i][gPupgrade]);
    SendClientMessage(i, COLOR_GRAD2, infostring);
    }
    if(FarmerVar[i] == 0)
    {
    FarmerPickup[i][0] = 0;
    }
    if(DrugFarmerVar[i] == 0)
    {
    DrugFarmerPickup[i][0] = 0;
    }
    if(SmugglerWork[i] == 0)
    {
    PayDaySecure[i] = 0;
    }
    if(PlayerInfo[i][pDonateRank] > 0)
    {
    PlayerInfo[i][pPayDayHad] += 1;
    if(PlayerInfo[i][pPayDayHad] >= 5)
    {
    PlayerInfo[i][pExp]++;
    PlayerInfo[i][pPayDayHad] = 0;
    }
    }
    }
    else
    {
    SendClientMessage(i, COLOR_WHITE, "* Du hast nicht lang genug gespielt um einen PayDay zu bekommen.");
    }
    }
    }
    }
    SaveAccounts();
    Checkprop();
    return 1;
    }


    strtok(const string[], &index)
    {
    new length = strlen(string);
    while ((index < length) && (string[index] <= ' '))
    {
    index++;
    }


    new offset = index;
    new result[20];
    while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
    {
    result[index - offset] = string[index];
    index++;
    }
    result[index - offset] = EOS;
    return result;
    }