Skripta koju koristim:TR
Detaljan opis problema😛a ovako imam problem sa payday t.e platom kad dodje na pr 20:00 da mu dodje plate i da mu da platu , a sad na pr dodje 20:00 i ne mi dodje plata cekam do 20:05 i pa ne dodje ? Molim vas pomozite !!
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
[problem] payday
177
pregleda
5
postova
30. Jul 2014.
30. Jul 2014.
public SyncTime()
{
new string;
new tmphour;
new tmpminute;
new tmpsecond;
gettime(tmphour, tmpminute, tmpsecond);
FixHour(tmphour);
Smetki();
SyncTime();
DollahScoreUpdate();
tmphour = shifthour;
if ((tmphour > ghour) || (tmphour == 0 && ghour == 23))
{
format(string, sizeof(string), "(DT)Server: Sega e tocno %d:00 casot",tmphour);
BroadCast(COLOR_WHITE,string);
ghour = tmphour;
PayDay();
new rand = random(80);
if(rand < 77) { rand += 3; }
Lotto(rand);
if (realtime)
{
SetWorldTime(tmphour);
}
}
}public PayDay()
{
new string;
new coordstring;
new coordstring1;
new coordstring2;
new coordstring3;
new coordstring4;
new payday;
new account,interest;
new rent = 0;
foreach (Player, i)
{
if(PlayerInfo > 0)
{
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, "{6EF83C}INFO:{FFFFFF}Vekje ne rentate kukja.");
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);
account += checks;
if(PlayerInfo > 0)
{
PlayerInfo -= ebill;
SBizzInfo += ebill;
}
else
{
ebill = 0;
}
interest = (PlayerInfo/1000)*(tmpintrate);
PlayerInfo++;
PlayerInfo = account+interest;
format(coordstring, sizeof(coordstring), "Isplata: $%d\nTaksa: -$%d\n", checks, TaxValue);
/*if(PlayerInfo != 255 || PlayerInfo != 255)
{
format(coordstring1, sizeof(coordstring1), "{FFFFFF}Smetka za struja: -$%d\n", ebill);
}*/
format(coordstring1, sizeof(coordstring1), "Smetka: $%d\n", account - checks);
format(coordstring2, sizeof(coordstring2), "Kamata: 0.%d procenti\n",tmpintrate);
format(coordstring3, sizeof(coordstring3), "Interes: $%d\n", interest);
format(coordstring4, sizeof(coordstring4), "Nova smetka: $%d\n", PlayerInfo);
//format(coordstring5, sizeof(coordstring5), "Rent: -$%d\n", rent);
format(payday, 512,"%s%s%s%s%s",coordstring,coordstring1,coordstring2,coordstring3,coordstring4);
ShowPlayerDialog(i, 667, DIALOG_STYLE_MSGBOX, "Plata", payday , "OK", "");
format(string, sizeof(string), "~y~Plata");
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, "{6EF83C}INFO:{FFFFFF}Ne igravte dovolno za da dobiete plata.");
}
}
}
SaveAccounts();
return 1;
}30. Jul 2014.
LOCK
Molimo te da procitas pravila foruma te da onda otvoris temu po pravilima
Zasto ti je tema lockana:
Bumpati se moze kada prodje 24/h od vaseg prethodnog posta u temi.
PRAVILA:
GLAVNA PRAVILA BALKAN SAMP ZAJEDNICE - http://balkan-samp.com/forum/index.php?topic=7045.0
Razgovor u vezi PAWN Skriptanja - http://balkan-samp.com/forum/index.php?topic=11453.0
Molimo te da procitas pravila foruma te da onda otvoris temu po pravilima
Zasto ti je tema lockana:
Bumpati se moze kada prodje 24/h od vaseg prethodnog posta u temi.
PRAVILA:
GLAVNA PRAVILA BALKAN SAMP ZAJEDNICE - http://balkan-samp.com/forum/index.php?topic=7045.0
Razgovor u vezi PAWN Skriptanja - http://balkan-samp.com/forum/index.php?topic=11453.0
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava