PayDay

Započeo brian.amx
13. Maj 2013. Zaključano
522
pregleda
14
postova
Ramiz
3
Hustler
13. Maj 2013.
Skripta koju koristim: Edit CL:RP
Detaljan opis problema: Pa PayDay nekada dodje a nekada ne, ne znam do cega je :/
Dio skripte:
public PayDay()
{
new rent = 0;
new namjernice = 13 + random(75);
new tmpintrate;
Tax += TaxValue;
new string;
new a;
new b;
new c;
new e;
new coordstring;
new coordstring1;
new coordstring2;
new coordstring3;
new coordstring4;
new coordstring5;
new coordstring6;
new coordstring7;
new coordstring8;
new vozilostring;
new nivostring;
new payday;
new isplata;
new account,interest;
for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
{
if(PlayerInfo >= 0)
  {
  if(PlayerInfo >= 30)
      {
account = PlayerInfo;
  PlayerInfo -= TaxValue;
new checks = PlayerInfo / 50;
if(PlayerInfo != 0)
{
if(PlayerInfo == 1) { isplata = 250; }
else if(PlayerInfo == 2) { isplata = 200; }
else if(PlayerInfo == 3) { isplata = 325; }
else if(PlayerInfo == 4) { isplata = 350; }
else if(PlayerInfo == 5) { isplata = 375; }
else if(PlayerInfo == 6) { isplata = 375; }
else if(PlayerInfo == 7) { isplata = 375; }
else if(PlayerInfo == 8) { isplata = 400; }
else if(PlayerInfo == 9) { isplata = 400; }
else if(PlayerInfo == 10) { isplata = 425; }
else if(PlayerInfo == 11) { isplata = 425; }
else if(PlayerInfo == 12) { isplata = 500; }
else if(PlayerInfo == 13) { isplata = 500; }
else if(PlayerInfo == 14) { isplata = 550; }
else if(PlayerInfo == 16) { isplata = 625; }
else if(PlayerInfo == 17) { isplata = 625; }
else if(PlayerInfo == 18) { isplata = 670; }
else if(PlayerInfo == 20) { isplata = 720; }
else if(PlayerInfo == 21) { isplata = 850; }
else if(PlayerInfo == 22) { isplata = 850; }
else if(PlayerInfo == 23) { isplata = 900; }
else if(PlayerInfo == 24) { isplata = 975; }
}
else { isplata = 0; }
        PlayerInfo++;
    new nxtlevel = PlayerInfo+1;
new expamount = nxtlevel*levelexp;
if(PlayerInfo >= expamount)
{
PlayerInfo = 0;
format(nivostring,sizeof(nivostring),"\n{FFFFFF}Nivo+ | Cestitamo, vas novi nivo je: %d",nxtlevel);
PlayerInfo++;
}
  if(MoneyMessage==1)
{
SetTimerEx("TuglPleyerKontrelajbl", 2000, false, "i", playerid);
SendClientMessage(playerid, COLOR_LIGHTRED, "{FF0000}Niste uspjeli da vratite dug, idete u zatvor.");
GameTextForPlayer(playerid, "~r~Uhapsen!", 2000, 1);
new rand = random(sizeof(gRandomJailSpawns));
SetPlayerPos(playerid, gRandomJailSpawns, gRandomJailSpawns, gRandomJailSpawns);
PlayerInfo = 1;
SafeResetPlayerWeapons(playerid);
SafeResetPlayerMoney(playerid);
WantedPoints = 0;
PlayerInfo = 300;
format(string, sizeof(string), "[NL:RP]: {FF0000}Uhapseni ste na {FFFFFF}%d {FF0000}sekundi.", PlayerInfo);
SendClientMessage(playerid, COLOR_WHITE, string);
}
  new ebill = (PlayerInfo/10000)*(PlayerInfo);
    account += checks;
interest = (PlayerInfo/1000)*(tmpintrate);
PlayerInfo = account+interest;
format(a, sizeof(a), "{B7FF00}Prihodi:\n");
format(b, sizeof(b), "  {B7FF00}Osnovica: $%d\n",isplata);
format(c, sizeof(c), "  {B7FF00}Zarada: $%d\n",checks);
format(e, sizeof(e), "  {B7FF00}Ukupno: $%d\n",isplata + checks);
format(coordstring, sizeof(coordstring),  " %s%s%s%s", a,b,c,e);
if(PlayerInfo != 255 || PlayerInfo != 255)
{
format(coordstring1, sizeof(coordstring1), " {48E31C}Racun za struju: {FFFFFF}-$%d\n", ebill);
}
format(coordstring2, sizeof(coordstring2), "\n\n{EA0C0C}Rashodi: \n", account - checks);
format(coordstring3, sizeof(coordstring3), "  {EA0C0C}Takse: -$%d\n",TaxValue);
format(coordstring4, sizeof(coordstring4), "  {EA0C0C}Namjernice: -$%d\n",namjernice);
format(coordstring5, sizeof(coordstring5), "  {EA0C0C}Rent: -$%d\n",rent);
format(coordstring6, sizeof(coordstring6), "{FFB405}Staro stanje racuna: $%d", PlayerInfo-isplata);
format(coordstring7, sizeof(coordstring7), "\n{FFB405}Trenutno stanje racuna: $%d", PlayerInfo+isplata + checks-namjernice-rent);
if(PlayerInfo != 0)
{
format(coordstring8, sizeof(coordstring8), "  {17C1FF}Kredit: -$500\n");
PlayerInfo -= 500;
PlayerInfo -= 500;
}
  if(PlayerInfo > 0)
    {
    PlayerInfo -= ebill;
    SBizzInfo += ebill;
}
else
{
  ebill = 0;
}
if(PlayerInfo != 0)
{
        if(PlayerInfo != 0)
        {
PlayerInfo -= 1;
}
}
if(PlayerInfo != 999)
{
  if(Carlist > 0)
    {
format(vozilostring, sizeof(vozilostring), "  \n{FFB405}Registracija vozila traje jos: %dPD",Carlist);
Carlist--;
}
else
{
format(vozilostring, sizeof(vozilostring), "  \n{FFB405}Registracija vaseg vozila je istekla",Carlist);
Carlist--;
}
}
if(PlayerInfo > 0)
{
PlayerInfo--;
}
if(PlayerInfo > 0)
{
PlayerInfo--;
}
format(payday, 1250,"%s%s%s%s%s%s%s%s%s%s%s%s%s",a,b,c,e,coordstring8,coordstring2,coordstring3,coordstring4,coordstring5,coordstring6,coordstring7,vozilostring,nivostring);
ShowPlayerDialog(playerid, 667, DIALOG_STYLE_MSGBOX, "Plata", payday , "U redu", "");
FarmerPickup = 0;
TraktorFarmerPickup = 0;
PlayerInfo += isplata + checks -TaxValue-namjernice-rent;
rent = 0;
PlayerInfo = 0;
PlayerInfo = 0;
PlayerInfo++;
PlayerInfo--;
}
else
{
    SendClientMessage(playerid, COLOR_WHITE, "[NL:RP]: {FF0000}Niste igrali dovoljno dugo da biste dobili platu.");
    return 1;
}
}
}
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):
Champa22
5
Underboss
13. Maj 2013.
Pa vidis da pise ako imas paydaya vise od trideset da ti ide payday

Btw:
Prestanite stavljati ovo skripta koju koristim : moja
Stvarno pravite g lupost ako ocete da vam se pomogne stavite mod
Ionako kae stavite opis servera vidjeti ce se jeli edit ili nije!
Ramiz
3
Hustler
13. Maj 2013.
Quote from May 13, 2013, 4:36 pm:
Pa vidis da pise ako imas paydaya vise od trideset da ti ide payday

Btw:
Prestanite stavljati ovo skripta koju koristim : moja
Stvarno pravite g lupost ako ocete da vam se pomogne stavite mod
Ionako kae stavite opis servera vidjeti ce se jeli edit ili nije!


Sine, sta tebe muci?
Slusaj ovako:

Ovo sa PayDay bodovima radi, al' gledaj, stavio sam pod
public SyncTime()
PayDay()
al' nekada dodje ono radi PD, a nekada uopste ne dodje, samo Sada je 16:00 sati. (NPR.) a nista payday, iako imam normu i sve, ono na, al' ne dolazi, i ako ne mozes pomoc ne mjesaj se 😉
Blaeks_Biofor
5
Forum Don
13. Maj 2013.
ako nekad dodje a nekad ne, znaci da je tajmer ispravan i da pokrece, e gledaj sada, velika je mogucnost da ti nisi bio aktivan dovoljno dugo za primanje plate, ako me razumes ?
Ramiz
3
Hustler
13. Maj 2013.
Blaeks wrote on May 13, 2013, 4:49 pm:
ako nekad dodje a nekad ne, znaci da je tajmer ispravan i da pokrece, e gledaj sada, velika je mogucnost da ti nisi bio aktivan dovoljno dugo za primanje plate, ako me razumes ?


Ne care, slusaj, ja imam norme 50/30, ali, ne dodje nikome PD, citavome serveru, znaci niti pise da nisam igrao dovoljno dugo niti ista :S
Antonio_Leko
5
Kingpin
13. Maj 2013.
Fulao sam PDF 😄
Blaeks_Biofor
5
Forum Don
13. Maj 2013.
pa brate, daj mi taj deo gde se payday poziva,taj synctime
Ramiz
3
Hustler
13. Maj 2013.
public SyncTime()
{
new string;
new tmphour;
new tmpminute;
new tmpsecond;
gettime(tmphour, tmpminute, tmpsecond);
FixHour(tmphour);
tmphour = shifthour;
if ((tmphour > ghour) || (tmphour == 0 && ghour == 23))
{
ghour = tmphour;
format(string, sizeof(string), "{FFFFFF}[NL:RP]: {5291FF}Sada je {FFFFFF}%d:{FFFFFF}00 {5291FF}sati.",tmphour);
BroadCast(ZELENKASTA,string);
PayDay();
if (realtime)
{
SetWorldTime(tmphour);
}
}
return 1;
}
Blaeks_Biofor
5
Forum Don
13. Maj 2013.
e sad mi kazi, kad se ova funkcija pozove da li se prikaze ovo NL RP , sati je toliko i toliko ? posto mi treba svaki detalj
Ramiz
3
Hustler
13. Maj 2013.
Blaeks wrote on May 13, 2013, 6:32 pm:
e sad mi kazi, kad se ova funkcija pozove da li se prikaze ovo NL RP , sati je toliko i toliko ? posto mi treba svaki detalj

Da, prikaze se uvijek, Sada je 16:00 sati, Sada je 17:00 sati, jebeno uvijek, al' jebe PD :S
Blaeks_Biofor
5
Forum Don
13. Maj 2013.
pa pazi, ti si nekako drugacije definisao u ovoj payday funkciji playerid, nekako kroz maxplayers, zasto ne probas da printas preko foreacha ? tako ce ti gledati samo online igrace ?
Ramiz
3
Hustler
13. Maj 2013.
Blaeks wrote on May 13, 2013, 8:16 pm:
pa pazi, ti si nekako drugacije definisao u ovoj payday funkciji playerid, nekako kroz maxplayers, zasto ne probas da printas preko foreacha ? tako ce ti gledati samo online igrace ?

To sam bio stavio da ide posebno preko Playerid, pa onda ovo, pa ono, pa onda server crasha na PDu, stalno jebe...
Pokusao sam i sa Foreach-om al' nezz :S
Ramiz
3
Hustler
14. Maj 2013.
Hvala svima na "pomoci" xD
Rijesio sam problem
Blaeks_Biofor
5
Forum Don
14. Maj 2013.
problem resen, lock

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha