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 1 gost pregledaju ovu temu.

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

}

Evo i textdraw
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);

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
new zlt[64], bnk[64];
 	format(bnk, 64, "~w~$%d", PI[i][pAccount]);
  	format(zlt, 64, "~w~%dg", PI[i][pZlato]);
        TextDrawSetString(TDEditor_TD[10], bnk);
	TextDrawSetString(TDEditor_TD[9], zlt);

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

Sad mi izbacisamo jedan warning
114676 	||  format(zlt, 64, "~w~%dg", PI[i][pZlato]);



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


Citat: ð"ð"µð"­ð"®ð"· poslato Januar 23, 2019, 22:22:44 POSLE PODNE
new zlt[64], bnk[64];
 	format(bnk, 64, "~w~$%d", PI[i][pAccount]);
  	format(zlt, 64, "~w~%dg", PI[i][pZlato]);
        TextDrawSetString(TDEditor_TD[10], bnk);
	TextDrawSetString(TDEditor_TD[9], zlt);

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

Sad mi izbacisamo jedan warning
114676 	||  format(zlt, 64, "~w~%dg", PI[i][pZlato]);

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


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



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


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

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  :)