[ Warning ] Tag mismatch ...


Započeo uinatsvima_, Jul 23, 2018, 12:07:17 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Warning
Dio skripte:
forward Banka_Update();
public Banka_Update()
{
	foreach(new playerid : Player)
	{
	    if(PlayerInfo[playerid][pBankovniRacun] == 0)
		{
		    new strall[126];
		    format(strall, sizeof(strall), "no account",PlayerInfo[playerid][pBankovniRacun]);
			PlayerTextDrawSetString(playerid, Banka[playerid], strall); // NA OVOJ BACA
		}
		if(PlayerInfo[playerid][pBankovniRacun] == 1)
		{
			new strall[126];
			format(strall, sizeof(strall), "%d",PlayerInfo[playerid][pNovacBanka]);
			PlayerTextDrawSetString(playerid, Banka[playerid], strall); // NA OVOJ bacA
		}
	}
	return 1;
}
forward Zlato_Update();
public Zlato_Update()
{
	foreach(new playerid : Player)
	{
	    new strall[126];
	    format(strall, sizeof(strall), "%d",PlayerInfo[playerid][pZlato]);
		PlayerTextDrawSetString(playerid, Zlato[playerid], strall); // NA OVOJ BACA
	}
	return 1;
}

Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]vaš odgovor[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): link slike
Poslednja Izmena: Jul 23, 2018, 15:46:27 POSLE PODNE od Bašovski

Banka[playerid] i Zlato[playerid] su player textdrawi ili obični?
Provjeri kreiranje, ili ga pošalji ovdje.

Banka i Zlato su mi u [playerid] :)

Banka[playerid] = TextDrawCreate(568.659057, 437.350036, "124991222");
	TextDrawLetterSize(Banka[playerid], 0.146529, 0.859166);
	TextDrawAlignment(Banka[playerid], 1);
	TextDrawColor(Banka[playerid], -1);
	TextDrawSetShadow(Banka[playerid], 0);
	TextDrawSetOutline(Banka[playerid], 0);
	TextDrawBackgroundColor(Banka[playerid], 255);
	TextDrawFont(Banka[playerid], 2);
	TextDrawSetProportional(Banka[playerid], 1);
	TextDrawSetShadow(Banka[playerid], 0);

	Zlato[playerid] = TextDrawCreate(517.071655, 437.750061, "12222");
	TextDrawLetterSize(Zlato[playerid], 0.146529, 0.859166);
	TextDrawAlignment(Zlato[playerid], 1);
	TextDrawColor(Zlato[playerid], -1);
	TextDrawSetShadow(Zlato[playerid], 0);
	TextDrawSetOutline(Zlato[playerid], 0);
	TextDrawBackgroundColor(Zlato[playerid], 255);
	TextDrawFont(Zlato[playerid], 2);
	TextDrawSetProportional(Zlato[playerid], 1);
	TextDrawSetShadow(Zlato[playerid], 0);

TextDrawSetString(Banka[playerid], strall);

TextDrawSetString(Zlato[playerid], strall);

Citat: Slade poslato Jul 23, 2018, 12:18:25 POSLE PODNE
TextDrawSetString(Banka[playerid], strall);

TextDrawSetString(Zlato[playerid], strall);

Radi, hvala @Slade ali imam još jedan problem, stavio sam kada se spawna igrač da mi se prikazuje Banka i zlato td ali se ne prikazuje

   	TextDrawShowForPlayer(playerid,Banka[playerid]);
    TextDrawShowForPlayer(playerid,Zlato[playerid]);