[Pomoc]Respekti

Započeo dakias
26. Jan. 2013. Zaključano
267
pregleda
12
postova
Daki
3
Hustler
26. Jan. 2013.
Skripta koju koristim: EGRP final version
Detaljan opis problema: Ne stizu respekti na platu,stize plata ali respekti ne dolaze.
Dio skripte:
public PayDay()  // PLATA
{
new string;
foreach (Player, i)
{
new playername2;
GetPlayerName(i, playername2, sizeof(playername2));
    if(PlayerInfo == 2) // ako nije na vreme podigao platu
{
if (PlayerInfo == 1)
{
PlayerInfo = 0;
SendClientMessage(i, COLOR_LIGHTRED, "Niste platili racune, platite ih ili idete u zatvor.");
}
}
    if(PlayerInfo == 3) // ako nije na vreme podigao platu
{
if (PlayerInfo == 1)
{
PlayerInfo = 0;
SendClientMessage(i, COLOR_LIGHTRED, "Niste platili racune, platite ih ili idete u zatvor.");
}
}
    if(PlayerInfo == 4) // ako nije na vreme podigao platu
{
if (PlayerInfo == 1)
{
PlayerInfo = 0;

SendClientMessage(i, COLOR_LIGHTRED, "Niste platili racune, idete u zatvor.");
GameTextForPlayer(i, "~r~Uhapsen!", 2000, 1);
new rand = random(sizeof(gRandomJailSpawns));
SetPlayerPos(i, gRandomJailSpawns, gRandomJailSpawns, gRandomJailSpawns);
PlayerInfo = 1;
SafeJBC_ResetPlayerWeapons(i);
WantedPoints = 0;
PlayerInfo = 100;
format(string, sizeof(string), "Uhapseni ste na %d sekundi.  Kaucija: Nedostupna", PlayerInfo);
SendClientMessage(i, COLOR_WHITE, string);
}
}

if(PlayerInfo >= 5) // ako ispunjava uslove za platu
{
if(MoneyMessage==1)
{
SendClientMessage(i, COLOR_LIGHTRED, "Niste uspjeli da vratite dug, idete u zatvor.");
GameTextForPlayer(i, "~r~Uhapsen!", 2000, 1);
new rand = random(sizeof(gRandomJailSpawns));
SetPlayerPos(i, gRandomJailSpawns, gRandomJailSpawns, gRandomJailSpawns);
PlayerInfo = 1;
SafeJBC_ResetPlayerWeapons(i);
SafeJBC_ResetPlayerMoney(i);
WantedPoints = 0;
PlayerInfo = 240;
format(string, sizeof(string), "Uhapseni ste na %d sekundi.  Kaucija: Nedostupna", PlayerInfo);
SendClientMessage(i, COLOR_WHITE, string);
}
// *****************************************************************************
    new stringd;
    PlayerInfo = 1;
format(stringd, sizeof(stringd), "{FF0000}Stigli su vam racuni !\n{FFFF00}Idite u opstinu,\n{FFFF00}da platite\n{0000CC}ROK ZA UPLATU 20min.");
ShowPlayerDialog( i, PLATA, DIALOG_STYLE_MSGBOX, "{FFFFFF}Izvestaj banke :", stringd, "Uredu", "" );
}
else
{
PlayerInfo = 0;
    SendClientMessage(i, COLOR_WHITE, "* Niste igrali dovoljno dugo da biste dobili racune.");
}

}
SaveAccounts();
return 1;
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
Johnâ„¢
5
Godfather
26. Jan. 2013.
Recimo stavi ovako:

public PayDay()  // PLATA
{
new string;
foreach (Player, i)
{
new playername2;
GetPlayerName(i, playername2, sizeof(playername2));
    if(PlayerInfo == 2) // ako nije na vreme podigao platu
{
if (PlayerInfo == 1)
{
PlayerInfo = 0;
SendClientMessage(i, COLOR_LIGHTRED, "Niste platili racune, platite ih ili idete u zatvor.");
}
}
    if(PlayerInfo == 3) // ako nije na vreme podigao platu
{
if (PlayerInfo == 1)
{
PlayerInfo = 0;
SendClientMessage(i, COLOR_LIGHTRED, "Niste platili racune, platite ih ili idete u zatvor.");
}
}
    if(PlayerInfo == 4) // ako nije na vreme podigao platu
{
if (PlayerInfo == 1)
{
PlayerInfo = 0;

SendClientMessage(i, COLOR_LIGHTRED, "Niste platili racune, idete u zatvor.");
GameTextForPlayer(i, "~r~Uhapsen!", 2000, 1);
new rand = random(sizeof(gRandomJailSpawns));
SetPlayerPos(i, gRandomJailSpawns, gRandomJailSpawns, gRandomJailSpawns);
PlayerInfo = 1;
SafeJBC_ResetPlayerWeapons(i);
WantedPoints = 0;
PlayerInfo = 100;
format(string, sizeof(string), "Uhapseni ste na %d sekundi.  Kaucija: Nedostupna", PlayerInfo);
SendClientMessage(i, COLOR_WHITE, string);
}
}

if(PlayerInfo >= 5) // ako ispunjava uslove za platu
{
if(MoneyMessage==1)
{
SendClientMessage(i, COLOR_LIGHTRED, "Niste uspjeli da vratite dug, idete u zatvor.");
GameTextForPlayer(i, "~r~Uhapsen!", 2000, 1);
new rand = random(sizeof(gRandomJailSpawns));
SetPlayerPos(i, gRandomJailSpawns, gRandomJailSpawns, gRandomJailSpawns);
PlayerInfo = 1;
SafeJBC_ResetPlayerWeapons(i);
SafeJBC_ResetPlayerMoney(i);
WantedPoints = 0;
PlayerInfo = 240;
format(string, sizeof(string), "Uhapseni ste na %d sekundi.  Kaucija: Nedostupna", PlayerInfo);
SendClientMessage(i, COLOR_WHITE, string);
}
// *****************************************************************************
PlayerInfo++;
    new stringd;
    PlayerInfo = 1;
format(stringd, sizeof(stringd), "{FF0000}Stigli su vam racuni !\n{FFFF00}Idite u opstinu,\n{FFFF00}da platite\n{0000CC}ROK ZA UPLATU 20min.");
ShowPlayerDialog( i, PLATA, DIALOG_STYLE_MSGBOX, "{FFFFFF}Izvestaj banke :", stringd, "Uredu", "" );
}
else
{
PlayerInfo = 0;
    SendClientMessage(i, COLOR_WHITE, "* Niste igrali dovoljno dugo da biste dobili racune.");
}

}
SaveAccounts();
return 1;
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
Daki
3
Hustler
26. Jan. 2013.
Izadje ovaj error nakon koga nemogu pokrenuti kucni server:
C:\Users\Soko\Desktop\Miami RP [0.3e]\gamemodes\EGRPG.pwn(26451) : error 017: undefined symbol "pRespect"
[Bp]D.N
5
Kingpin
26. Jan. 2013.
pRespect pod enum.
Johnâ„¢
5
Godfather
26. Jan. 2013.
Postaj pInfo enum.
Daki
3
Hustler
26. Jan. 2013.
U ovom redu je error,a ja nemam blage veze sa skriptanjem i neznam sta vam znaci to enum i kako to da stavim 😄
	PlayerInfo++;
Johnâ„¢
5
Godfather
26. Jan. 2013.
Pritisni CTRL + F i upiši unutra enum pInfo i onda će ti nać' taj enum i ti postaj ovakav kod:

enum pInfo
{
// Tu ce ti bit pAdmin, pLevel i ostale varijable
}
Daki
3
Hustler
26. Jan. 2013.
Error je nestao videmo da li ce plata stici :/
Alen-Mata
4
Shot Caller
26. Jan. 2013.
Kad stavis pod enum,stavi obavezno , na kraju ovako
pRespect,
Daki
3
Hustler
26. Jan. 2013.
Namestio sam radi hvala puno na pomoci!!!!!!!!!!!!!!!
Alen-Mata
4
Shot Caller
26. Jan. 2013.
moze lock  😎
Blaeks_Biofor
5
Forum Don
27. Jan. 2013.
lock na zahtev 2 autora xd

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha