poste bitte mal deinen payda Code.
Payday geht nicht
- huGGy
- Geschlossen
- Erledigt
Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!
Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
-
-
Unter Other Timer:
if(PlayerInfo[i][pPaydayZeit] == 60){PayDay(i);PlayerInfo[i][pPaydayZeit] = 0;}public payday
public PayDay(){ for(new i = 0; i < MAX_PLAYERS; i++){if(IsPlayerConnected(i)){ if(PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pMember] == 19 || PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pLeader] == 19) { if(PlayerInfo[i][pRank] == 1) { PlayerMoney[i] = PlayerMoney[i] +1000;}if(PlayerInfo[i][pRank] == 2) {PlayerMoney[i] = PlayerMoney[i] +1500;}if(PlayerInfo[i][pRank] == 3) {PlayerMoney[i] = PlayerMoney[i] +2000;}if(PlayerInfo[i][pRank] == 4) {PlayerMoney[i] = PlayerMoney[i] +2500;}if(PlayerInfo[i][pRank] == 5) {PlayerMoney[i] = PlayerMoney[i] +3000;}if(PlayerInfo[i][pRank] == 6) {PlayerMoney[i] = PlayerMoney[i] +3500;}}if(PlayerInfo[i][pMember] == 2 || PlayerInfo[i][pMember] == 12 || PlayerInfo[i][pLeader] == 2 || PlayerInfo[i][pLeader] == 12){if(PlayerInfo[i][pRank] == 1) { PlayerMoney[i] = PlayerMoney[i] +1500;}if(PlayerInfo[i][pRank] == 2) {PlayerMoney[i] = PlayerMoney[i] +2000;}if(PlayerInfo[i][pRank] == 3) {PlayerMoney[i] = PlayerMoney[i] +2500;}if(PlayerInfo[i][pRank] == 4) {PlayerMoney[i] = PlayerMoney[i] +3000;}if(PlayerInfo[i][pRank] == 5) {PlayerMoney[i] = PlayerMoney[i] +3500;}if(PlayerInfo[i][pRank] == 6) {PlayerMoney[i] = PlayerMoney[i] +4000;}}if(PlayerInfo[i][pMember] == 3 || PlayerInfo[i][pMember] == 18 || PlayerInfo[i][pLeader] == 18 || PlayerInfo[i][pLeader] == 2){ if(PlayerInfo[i][pRank] == 1) { PlayerMoney[i] = PlayerMoney[i] +2000;}if(PlayerInfo[i][pRank] == 2) {PlayerMoney[i] = PlayerMoney[i] +2500;}if(PlayerInfo[i][pRank] == 3) {PlayerMoney[i] = PlayerMoney[i] +3000;}if(PlayerInfo[i][pRank] == 4) {PlayerMoney[i] = PlayerMoney[i] +3500;}if(PlayerInfo[i][pRank] == 5) {PlayerMoney[i] = PlayerMoney[i] +4000;}if(PlayerInfo[i][pRank] == 6) {PlayerMoney[i] = PlayerMoney[i] +4500;}}if(IsAMember(i)){ if(PlayerInfo[i][pRank] == 1) { PlayerMoney[i] = PlayerMoney[i] +2000;}if(PlayerInfo[i][pRank] == 2) {PlayerMoney[i] = PlayerMoney[i] +2500;}if(PlayerInfo[i][pRank] == 3) {PlayerMoney[i] = PlayerMoney[i] +3000;}if(PlayerInfo[i][pRank] == 4) {PlayerMoney[i] = PlayerMoney[i] +3500;}if(PlayerInfo[i][pRank] == 5) {PlayerMoney[i] = PlayerMoney[i] +4000;}if(PlayerInfo[i][pRank] == 6) {PlayerMoney[i] = PlayerMoney[i] +4500;}} if(PlayerInfo[i][pLeader] == 7){ PlayerMoney[i] = PlayerMoney[i] +8000;}}if(PlayerInfo[i][pMember] == 9 || PlayerInfo[i][pMember] == 10 || PlayerInfo[i][pLeader] == 10 || PlayerInfo[i][pLeader] == 9 || PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4) { if(PlayerInfo[i][pRank] == 1) { PlayerMoney[i] = PlayerMoney[i] +0;}if(PlayerInfo[i][pRank] == 2) {PlayerMoney[i] = PlayerMoney[i] +1200;}if(PlayerInfo[i][pRank] == 3) {PlayerMoney[i] = PlayerMoney[i] +1400;}if(PlayerInfo[i][pRank] == 4) {PlayerMoney[i] = PlayerMoney[i] +1600;}if(PlayerInfo[i][pRank] == 5) {PlayerMoney[i] = PlayerMoney[i] +1800;}if(PlayerInfo[i][pRank] == 6) {PlayerMoney[i] = PlayerMoney[i] +2000;} new string[128]; new zinsen; new bankgeld; new rent; zinsen = PlayerInfo[i][pAccount] * PlayerInfo[i][pLevel];bankgeld = PlayerInfo[i][pAccount]; PlayerInfo[i][pAccount] = bankgeld+zinsen; new playername2[MAX_PLAYER_NAME];GetPlayerName(i, playername2, sizeof(playername2));new key = PlayerInfo[i][pPhousekey];Tax += TaxValue;PlayerInfo[i][pAccount] -= TaxValue;PlayerInfo[i][pExp]++; if(key != 255){rent = HouseInfo[key][hRent];if(strcmp(playername2, HouseInfo[key][hOwner], true) == 0){rent = 0;}else if(rent > PlayerMoney[i]){PlayerInfo[i][pPhousekey] = 255;SendClientMessage(i, COLOR_WHITE, "Du konntest deine Rente nicht bezahlen. Du bist nun Obdachlos!");rent = 0;}HouseInfo[key][hTakings] = HouseInfo[key][hTakings]+rent;} SendClientMessage(i, COLOR_GRAD2,"|===Zahltag===|"); if(PlayerInfo[i][pMember] >= 1 || PlayerInfo[i][pLeader] >= 1){ format(string, sizeof(string), " Lohn: $%d", PlayerMoney[i]);SendClientMessage(i, COLOR_GRAD2, string);SendClientMessage(i, COLOR_GRAD2,"|=================================|");}if(PlayerInfo[i][pAlGeld] == 1){format(string, sizeof(string), " Arbeitslosengeld: $850");SendClientMessage(i, COLOR_GRAD2, string); SendClientMessage(i, COLOR_GRAD2,"|=================================|"); } if(PlayerInfo[i][pPhousekey] != 255 || PlayerInfo[i][pPbiskey] != 255){format(string, sizeof(string), " Miete: $%d", rent);SendClientMessage(i, COLOR_GRAD2, string);format(string, sizeof(string), " Stromkosten: -$140");SendClientMessage(i, COLOR_GRAD2, string);SendClientMessage(i, COLOR_GRAD2,"|=================================|");}format(string, sizeof(string), " Steuern: -$%d", TaxValue);SendClientMessage(i, COLOR_GRAD2, string);format(string, sizeof(string), " Alter Kontostand: $%d", bankgeld);SendClientMessage(i, COLOR_GRAD2, string);format(string, sizeof(string), " Zinsen: $%d", zinsen);SendClientMessage(i, COLOR_GRAD2, string);SendClientMessage(i, COLOR_GRAD2,"|=================================|");format(string, sizeof(string), " Neuer Kontostand: $%d", PlayerInfo[i][pAccount]);SendClientMessage(i, COLOR_GRAD2, string);format(string, sizeof(string), "~y~PayDay");GameTextForPlayer(i, string, 5000, 1);rent = 0;PlayerPlayMusic(i);PlayerInfo[i][pPayDay] = 0;PlayerInfo[i][pPayCheck] = 0;PlayerInfo[i][pConnectTime] += 1;if(PlayerInfo[i][pDonateRank] > 0){ PlayerInfo[i][pPayDayHad] += 1; if(PlayerInfo[i][pPayDayHad] >= 5) { PlayerInfo[i][pExp]++; PlayerInfo[i][pPayDayHad] = 0;}}}}Checkprop();return 1;}Und wenn ich /payday mache bekommt man geld aber es wird nich angezeigt das payday is
-
Ersetz diese Zeile beim OtherTimer mit der hier:
if(PlayerInfo[i][pPaydayZeit] >= 60){PayDay(i);PlayerInfo[i][pPaydayZeit] = 0;} // Nun bekommt man einen Payday wenn die Zeit gleich oder mehr als 60 ist ;) -
Also wenn ich jetzt /payday mache
bekomme ich immernoch geld aber die meldung kommt nich...//Püü