(POMOC) Oko TD-ova stanja novca u banci

Započeo Shadow_BS, Februar 05, 2016, 19:36:46 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: UP samo sto je edit
Detaljan opis problema: da li bi mi neko mogao dati kodove i dje sta da ubacim za td banke, ono sto se nalazi ispod para plave boje :)
Dio skripte: //
Neke slike/video za lakse dobivanje pomoci(neobavezno): http://www.4shared.com/photo/6xHc6kXu/sa-mp-048.html (evo sliak kako izgleda)

onplayerupdate stavi ovo[pawn]
   for(new i = 0; i < MAX_PLAYERS; i++)
   {
       if(IsPlayerConnected(i))
      {
         new strkesa[256];
         format(strkesa, sizeof(strkesa), "~b~Banka:~w~%d$", PlayerInfo[pNovacBanka]);
         TextDrawSetString(BankaNovac, strkesa);

      }
   }
[/pawn]
ovo u ostale new
[pawn]
new Text:BankaNovac[MAX_PLAYERS] = {Text:INVALID_TEXT_DRAW, ...};[/pawn]
onplayerdisconnect
[pawn]TextDrawDestroy(BankaNovac[playerid]);[/pawn]
onplayerspawn
[pawn]TextDrawShowForPlayer(playerid,BankaNovac[playerid]);[/pawn]
medju ostale td-ove
[pawn]  BankaNovac[playerid] = TextDrawCreate(501.600128, 119.466667, "");
    TextDrawLetterSize(BankaNovac[playerid], 0.281999, 1.226666);
    TextDrawAlignment(BankaNovac[playerid], 1);
    TextDrawColor(BankaNovac[playerid], -1);
    TextDrawSetShadow(BankaNovac[playerid], 0);
    TextDrawSetOutline(BankaNovac[playerid], 0);
    TextDrawBackgroundColor(BankaNovac[playerid], 51);
    TextDrawFont(BankaNovac[playerid], 2);
    TextDrawSetProportional(BankaNovac[playerid], 1);

[/pawn]


C:\Users\Nikolic\Desktop\PANDA!\za mapanje\UPMOD\gamemodes\bs-rp.pwn(8353) : error 017: undefined symbol "playerid"
C:\Users\Nikolic\Desktop\PANDA!\za mapanje\UPMOD\gamemodes\bs-rp.pwn(8354) : error 017: undefined symbol "playerid"
C:\Users\Nikolic\Desktop\PANDA!\za mapanje\UPMOD\gamemodes\bs-rp.pwn(8355) : error 017: undefined symbol "playerid"
C:\Users\Nikolic\Desktop\PANDA!\za mapanje\UPMOD\gamemodes\bs-rp.pwn(8356) : error 017: undefined symbol "playerid"
C:\Users\Nikolic\Desktop\PANDA!\za mapanje\UPMOD\gamemodes\bs-rp.pwn(8357) : error 017: undefined symbol "playerid"
C:\Users\Nikolic\Desktop\PANDA!\za mapanje\UPMOD\gamemodes\bs-rp.pwn(8358) : error 017: undefined symbol "playerid"
C:\Users\Nikolic\Desktop\PANDA!\za mapanje\UPMOD\gamemodes\bs-rp.pwn(8359) : error 017: undefined symbol "playerid"

    BankaNovac[playerid] = TextDrawCreate(501.600128, 119.466667, "");
    TextDrawLetterSize(BankaNovac[playerid], 0.281999, 1.226666);
    TextDrawAlignment(BankaNovac[playerid], 1);
    TextDrawColor(BankaNovac[playerid], 16711935);
    TextDrawSetShadow(BankaNovac[playerid], 0);
    TextDrawSetOutline(BankaNovac[playerid], 0);
    TextDrawBackgroundColor(BankaNovac[playerid], 51);
    TextDrawFont(BankaNovac[playerid], 2);
    TextDrawSetProportional(BankaNovac[playerid], 1);

@Arkoo
Poslednja Izmena: Februar 06, 2016, 12:35:08 POSLE PODNE od Shadow_BS

stavio sam on playerspawn ovaj td a sad kad udjem nema ga ?

Ubaci td medju ostale gdje je playerid definisan

Mos mi reci kako da promjenim velicinu slova i kak oda promjenim boju ono Banka: posto nezz kako jer je string ? Inace sad radi tnx

u ovom dijelu mijenjas
[pawn]
format(strkesa, sizeof(strkesa), "~b~Banka:~w~%d$", PlayerInfo[pNovacBanka]);[/pawn] // ~b~ oznacava boju u ovom slucaju b-blue(plava)sad ako hoces zelenu umjesto b stavis g evo ti primjere boja
~r~    red
~g~    green
~b~    blue
~w~    white
~y~    yellow
~p~    purple
~l~    black
~h~    lighter color