
Tema koju ste postavili nije po pravilima foruma.
Razlog zakljucavanja: Formular
Molimo Vas da procitate glavna pravila foruma kao i pravila ovog podforuma.
Naš forum je uspješno migriran na novu platformu. Svi vaši podaci, računi i sadržaj su prebačeni na GTABLKN.

Ja sam Ivo Dev, bager koji razgrće sve oko skripti – poznat i kao Zbager
UpdateBankTD(playerid) {
new tmp_str;
if(PlayerInfo == 0)
{
PlayerTextDrawSetString(playerid, tvoj td, "NO ACC.");
}
else
{
format(tmp_str, sizeof tmp_str, "~w~%d", PlayerInfo);
PlayerTextDrawSetString(playerid, tvoj td, tmp_str);
}
}
Ja sam Ivo Dev, bager koji razgrće sve oko skripti – poznat i kao Zbager
Ja sam Ivo Dev, bager koji razgrće sve oko skripti – poznat i kao Zbager
new PlayerText:BankaPlayerTD;
BankaPlayerTD = CreatePlayerTextDraw(playerid, Float:x, Float:y, text[])l;
PlayerTextDrawLetterSize(playerid, BankaPlayerTD, 0.222999, 1.149375);
PlayerTextDrawAlignment(playerid, BankaPlayerTD, 1);
PlayerTextDrawColor(playerid, BankaPlayerTD, -1);
PlayerTextDrawSetShadow(playerid, BankaPlayerTD, 0);
PlayerTextDrawSetOutline(playerid, BankaPlayerTD, 1);
PlayerTextDrawBackgroundColor(playerid, BankaPlayerTD, 51);
PlayerTextDrawFont(playerid, BankaPlayerTD, 1);
PlayerTextDrawSetProportional(playerid, BankaPlayerTD, 1);
PlayerTextDrawSetString(playerid, BankaPlayerTD, bnkstring); //azuriraj mi tekst TD-a
forward TDUpdate(playerid);
public TDUpdate(playerid)
{
// Datum i vremenung
new string;
new year, month, day, hours, minutes, sec;
getdate(year, month, day);
gettime(hours, minutes, sec);
// Formatiraj datum
format(string, sizeof(string), "%02d/%02d/%02d", day, month, year);
TextDrawSetString(Igtd10, string);
PlayerTextDrawSetString
// Formatiranje vremena
format(string, sizeof(string), "%02d:%02d", hours, minutes);
TextDrawSetString(Igtd11, string);
// BANKA
new bnkstring;
format(bnkstring, sizeof(bnkstring), "Banka: %d", PlayerInfo);
new PlayerText:BankaPlayerTD; // ovo dodajes obicno na vrh skripte gde su ti deklarisane varijable ako radis u jednom fajlu, ako modularno radis onda u modulu za toj
forward TDUpdate(playerid);
public TDUpdate(playerid)
{
// Datum i vremenung
new string;
new year, month, day, hours, minutes, sec;
getdate(year, month, day);
gettime(hours, minutes, sec);
// Formatiraj datum
format(string, sizeof(string), "%02d/%02d/%02d", day, month, year);
//TextDrawSetString(Igtd10, string); //ovo ti je public, ne mere tako
PlayerTextDrawSetString(playerid, PlayerText:text, string[]); // ovo ti je za playera, izmeni po
svojim paramtrima
// Formatiranje vremena
format(string, sizeof(string), "%02d:%02d", hours, minutes);
//TextDrawSetString(Igtd11, string); // isti slucaj kao za formatiranje datuma, ne smes
public!!!!!
// ovo je banka brale
new bnkstring;
format(bnkstring, sizeof(bnkstring), "Banka: %d", PlayerInfo);
// textdraw
BankaPlayerTD = CreatePlayerTextDraw(playerid, Float:x, Float:y, text[])l;
PlayerTextDrawLetterSize(playerid, BankaPlayerTD, 0.222999, 1.149375);
PlayerTextDrawAlignment(playerid, BankaPlayerTD, 1);
PlayerTextDrawColor(playerid, BankaPlayerTD, -1);
PlayerTextDrawSetShadow(playerid, BankaPlayerTD, 0);
PlayerTextDrawSetOutline(playerid, BankaPlayerTD, 1);
PlayerTextDrawBackgroundColor(playerid, BankaPlayerTD, 51);
PlayerTextDrawFont(playerid, BankaPlayerTD, 1);
PlayerTextDrawSetProportional(playerid, BankaPlayerTD, 1);
PlayerTextDrawSetString(playerid, BankaPlayerTD, bnkstring); //azuriraj mi tekst TD-a
}
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava