22.03.2014, 11:48
I have a problem in my script with textdraws so I can't see any textdraw so what's the problem?
public OnGameModeInit()
{
This is your textdraw's name > ForumURL = TextDrawCreate(550.000000, 440.000000, "<< COD TDM >>"); //COD TDM is the text of the textdraw
TextDrawBackgroundColor(ForumURL, 255);
TextDrawFont(ForumURL, 2);
TextDrawLetterSize(ForumURL, 0.280000, 1.399999);
TextDrawColor(ForumURL, 3394815);
TextDrawSetOutline(ForumURL, 1);
TextDrawSetProportional(ForumURL, 1);
CODTDM = TextDrawCreate(550.000000, 313.000000, "/stats /cmds /ghelp");
TextDrawBackgroundColor(CODTDM, 255);
TextDrawFont(CODTDM, 2);
TextDrawLetterSize(CODTDM, 0.280000, 1.399999);
TextDrawColor(CODTDM, 3394815);
TextDrawSetOutline(CODTDM, 1);
TextDrawSetProportional(CODTDM, 1);
return 1;
}
public OnPlayerSpawn(playerid)
{
TextDrawShowForPlayer(playerid, ForumURL); < To show the textdraw
TextDrawShowForPlayer(playerid, CODTDM); < same
}
public OnGameModeInit()
{
TimeTD = TextDrawCreate(630.000000,428.000000,"Time");
TextDrawFont(TimeTD,3);
TextDrawSetShadow(TimeTD,0);
TextDrawSetOutline(TimeTD,1);
TextDrawAlignment(TimeTD,3);
TextDrawLetterSize(TimeTD,0.399999,1.500000);
TextDrawColor(TimeTD,COLOR_RED);
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, TimeTD);
}
public OnGameModeInit()
{
TimeTD = TextDrawCreate(630.000000,428.000000,"Time");
TextDrawFont(TimeTD,3);
TextDrawSetShadow(TimeTD,0);
TextDrawSetOutline(TimeTD,1);
TextDrawAlignment(TimeTD,3);
TextDrawLetterSize(TimeTD,0.399999,1.500000);
TextDrawColor(TimeTD,COLOR_RED);
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, TimeTD);
TimeTD = TextDrawCreate(630.000000,428.000000,"Time");
TextDrawFont(TimeTD,3);
TextDrawSetShadow(TimeTD,0);
TextDrawSetOutline(TimeTD,1);
TextDrawAlignment(TimeTD,3);
TextDrawLetterSize(TimeTD,0.399999,1.500000);
TextDrawColor(TimeTD,COLOR_RED);
}
public OnGameModeInit() { TimeTD = TextDrawCreate(500.000000,415.000000,"Time"); TextDrawFont(TimeTD,3); TextDrawSetShadow(TimeTD,0); TextDrawSetOutline(TimeTD,1); TextDrawAlignment(TimeTD,3); TextDrawLetterSize(TimeTD,0.399999,1.500000); TextDrawColor(TimeTD,COLOR_RED); } public OnPlayerConnect(playerid) { TextDrawShowForPlayer(playerid, TimeTD); }
public OnGameModeInit()
{
TimeTD = TextDrawCreate(630.000000,428.000000,"Time");
TextDrawFont(TimeTD,3);
TextDrawSetShadow(TimeTD,0);
TextDrawSetOutline(TimeTD,1);
TextDrawAlignment(TimeTD,3);
TextDrawLetterSize(TimeTD,0.399999,1.500000);
TextDrawColor(TimeTD,COLOR_RED);
}
public OnPlayerSpawn(playerid)
{
TextDrawShowForPlayer(playerid, TimeTD);
TimeTD = TextDrawCreate(630.000000,428.000000,"Time");
TextDrawFont(TimeTD,3);
TextDrawSetShadow(TimeTD,0);
TextDrawSetOutline(TimeTD,1);
TextDrawAlignment(TimeTD,3);
TextDrawLetterSize(TimeTD,0.399999,1.500000);
TextDrawColor(TimeTD,COLOR_RED);
}
new Text:TimeTD; public OnGameModeInit() { TimeTD = TextDrawCreate(500.000000,415.000000,"Time"); TextDrawFont(TimeTD,3); TextDrawSetShadow(TimeTD,0); TextDrawSetOutline(TimeTD,1); TextDrawAlignment(TimeTD,3); TextDrawLetterSize(TimeTD,0.399999,1.500000); TextDrawColor(TimeTD,COLOR_RED); } public OnPlayerConnect(playerid) { TextDrawShowForPlayer(playerid, TimeTD); }
new Text:TimeTD;