Problem sa prikazivanjem novca u banci

Započeo Alden, Januar 23, 2019, 21:50:24 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 5 gostiju pregledaju ovu temu.

Problem(error/warning):Problem sa prikazivanjem novca u banci
Dio skripte: [pawn]FUNCTION: MiniStatsUpdate(i)
{
   
   new zlt[64], bnk[64];
   format(bnk, 64, "~w~$%d", PI[pAccount]);
     format(zlt, 64, "~w~%dg", PI[pZlato]);
        PlayerTextDrawSetString(i, TDEditor_TD[10], bnk);
   PlayerTextDrawSetString(i, TDEditor_TD[9], zlt);

}
[/pawn]
Evo i textdraw[pawn]
   TDEditor_TD[9] = TextDrawCreate(587.235839, 131.452072, "~w~100g");
   TextDrawLetterSize(TDEditor_TD[9], 0.400000, 1.600000);
   TextDrawAlignment(TDEditor_TD[9], 1);
   TextDrawColor(TDEditor_TD[9], -1);
   TextDrawSetShadow(TDEditor_TD[9], 0);
   TextDrawSetOutline(TDEditor_TD[9], 0);
   TextDrawBackgroundColor(TDEditor_TD[9], 255);
   TextDrawFont(TDEditor_TD[9], 2);
   TextDrawSetProportional(TDEditor_TD[9], 1);
   TextDrawSetShadow(TDEditor_TD[9], 0);

   TDEditor_TD[10] = TextDrawCreate(543.137634, 121.281616, "~w~$100000");
   TextDrawLetterSize(TDEditor_TD[10], 0.400000, 1.600000);
   TextDrawAlignment(TDEditor_TD[10], 1);
   TextDrawColor(TDEditor_TD[10], -1);
   TextDrawSetShadow(TDEditor_TD[10], 0);
   TextDrawSetOutline(TDEditor_TD[10], 0);
   TextDrawBackgroundColor(TDEditor_TD[10], 255);
   TextDrawFont(TDEditor_TD[10], 2);
   TextDrawSetProportional(TDEditor_TD[10], 1);
   TextDrawSetShadow(TDEditor_TD[10], 0);[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):Evo koje warninge izbacije

C:\Users\AldenH\Desktop\Samp\gamemodes\GAMEM.pwn(112777) : warning 213: tag mismatch     //    PlayerTextDrawSetString(i, TDEditor_TD[10], bnk);
C:\Users\AldenH\Desktop\Samp\gamemodes\GAMEM.pwn(112778) : warning 213: tag mismatch     //    PlayerTextDrawSetString(i, TDEditor_TD[9], zlt);
C:\Users\AldenH\Desktop\Samp\gamemodes\GAMEM.pwn(114676) : warning 213: tag mismatch     //    format(zlt, 64, "~w~%dg", PI[i][pZlato]);

Slika/video ingame problema(obavezno ako je ingame problem):/


Citat: Tayson Pawno poslato Januar 23, 2019, 22:10:13 POSLE PODNE
Pokusaj ovo PlayerTextDrawSetString izmeniti sa TextDrawSetString
[pawn]
   new zlt[64], bnk[64];
   format(bnk, 64, "~w~$%d", PI[pAccount]);
     format(zlt, 64, "~w~%dg", PI[pZlato]);
        TextDrawSetString(TDEditor_TD[10], bnk);
   TextDrawSetString(TDEditor_TD[9], zlt);[/pawn]
C:\Users\AldenH\Desktop\Samp\gamemodes\GAMEM.pwn(114676) : warning 213: tag mismatch
Sad mi izbacisamo jedan warning [pawn] 114676    ||  format(zlt, 64, "~w~%dg", PI[pZlato]);[/pawn]


Kako si stavio pZlato u enumu?
| Nick | Viserys Targaryen |


Citat: ð"ð"µð"­ð"®ð"· poslato Januar 23, 2019, 22:22:44 POSLE PODNE
[pawn]
   new zlt[64], bnk[64];
   format(bnk, 64, "~w~$%d", PI[pAccount]);
     format(zlt, 64, "~w~%dg", PI[pZlato]);
        TextDrawSetString(TDEditor_TD[10], bnk);
   TextDrawSetString(TDEditor_TD[9], zlt);[/pawn]
C:\Users\AldenH\Desktop\Samp\gamemodes\GAMEM.pwn(114676) : warning 213: tag mismatch
Sad mi izbacisamo jedan warning [pawn] 114676    ||  format(zlt, 64, "~w~%dg", PI[pZlato]);[/pawn]
Pokusaj ovako         new strall[126];
       format(strall, sizeof(strall), "~w~%d G",PI[pZlato]);

Citat: Tayson Pawno poslato Januar 23, 2019, 22:46:15 POSLE PODNE
Pokusaj ovako         new strall[126];
       format(strall, sizeof(strall), "~w~%d G",PI[pZlato]);

C:\Users\AldenH\Desktop\Samp\gamemodes\GAMEM.pwn(112777) : warning 213: tag mismatch
C:\Users\AldenH\Desktop\Samp\gamemodes\GAMEM.pwn(114679) : warning 213: tag mismatch


[pawn]
112774   new zlt[64], bnk[64];
112775   new strall[126];
112776    format(bnk, 64, "~w~$%d", PI[pAccount]);
112777    format(strall, sizeof(strall), "~w~%d G",PI[pZlato]);
112778     //format(zlt, 64, "~w~%dg", PI[pZlato]);
112779       TextDrawSetString(TDEditor_TD[10], bnk);
112780   TextDrawSetString(TDEditor_TD[9], zlt); [/pawn]


Citat: ð"ð"µð"­ð"®ð"· poslato Januar 23, 2019, 22:57:05 POSLE PODNE
C:\Users\AldenH\Desktop\Samp\gamemodes\GAMEM.pwn(112777) : warning 213: tag mismatch
C:\Users\AldenH\Desktop\Samp\gamemodes\GAMEM.pwn(114679) : warning 213: tag mismatch


[pawn]
112774   new zlt[64], bnk[64];
112775   new strall[126];
112776    format(bnk, 64, "~w~$%d", PI[pAccount]);
112777    format(strall, sizeof(strall), "~w~%d G",PI[pZlato]);
112778     //format(zlt, 64, "~w~%dg", PI[pZlato]);
112779       TextDrawSetString(TDEditor_TD[10], bnk);
112780   TextDrawSetString(TDEditor_TD[9], zlt); [/pawn]
Ne znam burazz vrati ono kako ti je bilo na jedan warning stvarno ne znam u cemu je problem mozda ti Neko pomogne Blokirao mi mozak..

Citat: Tayson Pawno poslato Januar 23, 2019, 23:05:40 POSLE PODNE
Ne znam burazz vrati ono kako ti je bilo na jedan warning stvarno ne znam u cemu je problem mozda ti Neko pomogne Blokirao mi mozak..

Hvala brt sto si pokusao  :)