Zaključano

[Pomoc]PayDay sreze bankovni racun

pre 13 godina
842
pregleda
6
postova
Ova tema je zaključana. Samo moderatori i administratori mogu odgovarati.
Kalibar .300
Underboss
pre 13 godina
Skripta koju koristim: CLRP
Detaljan opis problema: Ja sada imam $1000 na banci, i kada dobijem PayDay(npr.: $100), onda u banci trebam imati $1100, a imam $100. Kako popraviti.
Dio skripte:
public PayDay()
{
new string;
new account,interest;
new rent = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
    if(PlayerInfo > 0)
    {
    if(MoneyMessage==1)
{
    SendClientMessage(i, COLOR_LIGHTRED, "You failed to pay your debt, Jail time.");
    GameTextForPlayer(i, "~r~Busted!", 2000, 1);
    SetPlayerInterior(i, 6);
    PlayerInfo = 6;
  SetPlayerPos(i, 264.6288,77.5742,1001.0391);
            PlayerInfo = 1;
            SafeResetPlayerWeapons(i);
            SafeResetPlayerMoney(i);
WantedPoints = 0;
PlayerInfo = 240;
format(string, sizeof(string), "You are jailed for %d seconds.  Bail: Unable", PlayerInfo);
SendClientMessage(i, COLOR_WHITE, string);
}
new playername2;
GetPlayerName(i, playername2, sizeof(playername2));
account = PlayerInfo;
new key = PlayerInfo;
if(key != 255)
{
rent = HouseInfo;
if(strcmp(playername2, HouseInfo, true) == 0)
{
rent = 0;
}
else if(rent > GetPlayerMoney(i))
{
PlayerInfo = 255;
SendClientMessage(i, COLOR_WHITE, "You have been evicted.");
rent = 0;
}
HouseInfo = HouseInfo+rent;
}
new tmpintrate;
if (key != 255 && strcmp(playername2, HouseInfo, true) == 0)
{
    if(PlayerInfo > 0) { tmpintrate = intrate+4; }
else { tmpintrate = intrate+2; }//HouseInfo
}
else
{
    if(PlayerInfo > 0) { tmpintrate = 3; }
else { tmpintrate = 1; }
}
if(PlayerInfo >= 5)
{
    Tax += TaxValue;//Should work for every player online
    PlayerInfo -= TaxValue;
new checks = PlayerInfo / 5;
if(PlayerInfo > 0)
{
    new bonus = PlayerInfo / 10;
    checks += bonus;
}
    new ebill = (PlayerInfo/10000)*(PlayerInfo);
    //ConsumingMoney = 1;
    //SafeGivePlayerMoney(i, checks);
    account += checks;
    if(PlayerInfo > 0)
    {
    PlayerInfo -= ebill;
    SBizzInfo += ebill;
}
else
{
    ebill = 0;
}
interest = (PlayerInfo/1000)*(tmpintrate);
PlayerInfo++;
                    PlayerInfo = random(100)+100;
                    PlayerInfo -= random(10)+10;
SendClientMessage(i, COLOR_GREEN, "|------------------Placa-------------------------|");
format(string, sizeof(string), "  Placa: $%d  Taxe: -$%d", PlayerInfo, TaxValue);
SendClientMessage(i, COLOR_YELLOW2, string);
if(PlayerInfo != 255 || PlayerInfo != 255)
{
    format(string, sizeof(string), "  Cijena struje: -$%d", ebill);
SendClientMessage(i, COLOR_YELLOW2, string);
}
format(string, sizeof(string), "  Stanje: $%d", account - checks);
SendClientMessage(i, COLOR_YELLOW2, string);
format(string, sizeof(string), "  Interest Rate: 0.%d percent",tmpintrate);
SendClientMessage(i, COLOR_YELLOW2, string);
format(string, sizeof(string), "  Interest Gained $%d", interest);
SendClientMessage(i, COLOR_YELLOW2, string);
format(string, sizeof(string), "  Rent: -$%d", rent);
SendClientMessage(i, COLOR_YELLOW2, string);
SendClientMessage(i, COLOR_GREEN, "|------------------Novo stanje--------------------|");
format(string, sizeof(string), "  Novo stanje: $%d", PlayerInfo);
SendClientMessage(i, COLOR_YELLOW2, string);
SendClientMessage(i, COLOR_GREEN, "|-------------------------------------------------|");
format(string, sizeof(string), "~y~PayDay");
GameTextForPlayer(i, string, 5000, 1);
rent = 0;
PlayerInfo = 0;
PlayerInfo = 0;
PlayerInfo += 1;
if(FarmerVar == 0)
{
FarmerPickup = 0;
}
if(DrugFarmerVar == 0)
{
DrugFarmerPickup = 0;
}
if(SmugglerWork == 0)
{
PayDaySecure = 0;
}
if(PlayerInfo > 0)
{
    PlayerInfo += 1;
    if(PlayerInfo >= 5)
    {
        PlayerInfo++;
        PlayerInfo = 0;
    }
}
}
else
{
    SendClientMessage(i, COLOR_WHITE, "* You haven't played long enough to obtain a PayDay.");
}
}
}
}
SaveAccounts();
Checkprop();
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):
troll3d
Made Man
pre 13 godina
PlayerInfo += random(100)+100;
Kalibar .300
Underboss
pre 13 godina
Billie Joe Armstrong wrote on February 19, 2012, 9:20 pm:
PlayerInfo += random(100)+100;

Sta s time, ako vec imam ?
troll3d
Made Man
pre 13 godina
nemaš + prije =
Kalibar .300
Underboss
pre 13 godina
Vidicu dali radi. Sutra javim
troll3d
Made Man
pre 13 godina
Nema tu radi ili ne , radit će ti , imaš listu aritmetičkih simbola za PAWN prouči ih.

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava