small textdraw problem +rep who helps
#1

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

Reply
#2

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

maybe this
Quote:

new Text:da;

Quote:

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

Reply
#4

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

PlayerTextDrawSetString(playerid, da, str);

saying : warning 213: tag mismatch
Reply
#5

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

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

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..
Reply
#7

PlayerTextDraw has the PlayerText: tag.
Reply
#8

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]);
Reply
#9

decided to remove it :v
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)