06.02.2013, 23:14
Hi... How's it going ? Good? 
I am creating PlayerTextDraw and just can't succeed... Problem is, I create everything and then "playerid" problem come... So, if anyone knows how to solve it I will be very happy!
Some codes...
Regards, Matko!

I am creating PlayerTextDraw and just can't succeed... Problem is, I create everything and then "playerid" problem come... So, if anyone knows how to solve it I will be very happy!
Some codes...
pawn Код:
new Text:Textdraw1; // there are more but I think one is enough
public Statsoff(playerid)
{
TextDrawHideForPlayer(playerid,Textdraw1); // there are more down
///
}
public ShowStats(playerid,targetid)
{
TextDrawShowForPlayer(playerid,Textdraw1);
}
public ShowStats2(playerid,targetid) // there are more of these but I only posted this to know how I hide textdraw
{
TextDrawHideForPlayer(playerid,Textdraw1);
}
// on game mode init
Textdraw1 = TextDrawCreate(10.000000, 159.000000, "Ime:"); // this is the problem!!!
TextDrawBackgroundColor(Textdraw1, 255); // whenever I try to put playerid I get errors
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 0.609999, 1.700000);
TextDrawColor(Textdraw1, 869072810);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);