SA-MP Forums Archive
small textdraw problem +rep who helps - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: small textdraw problem +rep who helps (/showthread.php?tid=594870)



small textdraw problem +rep who helps - ahmedraed - 24.11.2015

any idea how to solve this?! wired isn't it"?
Quote:

warning 213: tag mismatch

Quote:

TextDrawShowForPlayer(playerid, da);

Quote:

format(str, SOS, "%i",pInfo[playerid][Deaths]);
PlayerTextDrawSetString(playerid, da, str);




Re: small textdraw problem +rep who helps - jlalt - 24.11.2015

find: new da;
and replace it with:
PHP код:
new Text:da



Re: small textdraw problem +rep who helps - sanamalik400 - 24.11.2015

maybe this
Quote:

new Text:da;

Quote:

new str[64];
format(str, SOS, "%i",pInfo[playerid][Deaths]);
PlayerTextDrawSetString(playerid, da, str);




Re: small textdraw problem +rep who helps - ahmedraed - 24.11.2015

Nope, not working any other ideas please?!
Quote:

PlayerTextDrawSetString(playerid, da, str);

saying : warning 213: tag mismatch


Re: small textdraw problem +rep who helps - MeCom - 24.11.2015

Quote:
Originally Posted by ahmedraed
Посмотреть сообщение
Nope, not working any other ideas please?!

saying : warning 213: tag mismatch
Код:
TextDrawSetString(da, str);



Re: small textdraw problem +rep who helps - ahmedraed - 24.11.2015

Quote:
Originally Posted by MeCom
Посмотреть сообщение
Код:
TextDrawSetString(da, str);
i know this..the problem is it will show all the server the Deaths for only 1player..


Re: small textdraw problem +rep who helps - Vince - 24.11.2015

PlayerTextDraw has the PlayerText: tag.


Re: small textdraw problem +rep who helps - MeCom - 24.11.2015

Quote:
Originally Posted by ahmedraed
Посмотреть сообщение
i know this..the problem is it will show all the server the Deaths for only 1player..
Код:
new PlayerText:da[MAX_PLAYERS];

da[playerid] = CreatePlayerTextDraw(playerid, 320.0, 240.0, " ");
format(str, sizeof(str), "%i",pInfo[playerid][Deaths]);
PlayerTextDrawSetString(playerid, da[playerid], str);
PlayerTextDrawShow(playerid, da[playerid]);



Re: small textdraw problem +rep who helps - ahmedraed - 25.11.2015

decided to remove it :v