30.06.2012, 07:10
So i've tried to make a textdraw,everything works right,here is the code:
new Text:Textdraw1;
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
Textdraw1 = TextDrawCreate(476 ,451 , "Textdraw String");
TextDrawFont(Textdraw1 , 0);
TextDrawLetterSize(Textdraw1 , 0.6, 4.2);
TextDrawColor(Textdraw1 , 0x19fa0dFF);
TextDrawSetOutline(Textdraw1 , true);
TextDrawSetProportional(Textdraw1 , true);
TextDrawSetShadow(Textdraw1 , 255);
TextDrawShowForAll(Textdraw1);
return 1;
}
and TextDrawShowForPlayer(playerid, Textdraw1); on player connect and i've tried adding it to the on player spawn too...
the problem is that my text will not show up
and i dont know what is wrong, i get no error,no warning...clean code...
new Text:Textdraw1;
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
Textdraw1 = TextDrawCreate(476 ,451 , "Textdraw String");
TextDrawFont(Textdraw1 , 0);
TextDrawLetterSize(Textdraw1 , 0.6, 4.2);
TextDrawColor(Textdraw1 , 0x19fa0dFF);
TextDrawSetOutline(Textdraw1 , true);
TextDrawSetProportional(Textdraw1 , true);
TextDrawSetShadow(Textdraw1 , 255);
TextDrawShowForAll(Textdraw1);
return 1;
}
and TextDrawShowForPlayer(playerid, Textdraw1); on player connect and i've tried adding it to the on player spawn too...
the problem is that my text will not show up
