PDA

View Full Version : Text Draw doesn't work.


printer
09/12/2011, 09:06 AM
OnGameModeInit

foreach(Player, playerid)
{
firetraining[playerid] = TextDrawCreate(555.000000, 325.000000, "Welcome!");
TextDrawBackgroundColor(firetraining[playerid], 255);
TextDrawFont(firetraining[playerid], 1);
TextDrawLetterSize(firetraining[playerid], 0.219999, 1.000000);
TextDrawColor(firetraining[playerid], -1);
TextDrawSetOutline(firetraining[playerid], 0);
TextDrawSetProportional(firetraining[playerid], 1);
TextDrawSetShadow(firetraining[playerid], 1);
TextDrawUseBox(firetraining[playerid], 1);
TextDrawBoxColor(firetraining[playerid], 168430456);
TextDrawTextSize(firetraining[playerid], 629.000000, 41.000000);
}

OnPlayerSpawn
TextDrawShowForPlayer(playerid, firetraining[playerid]);

Text draw doesn't work at all, help please!

[MG]Dimi
09/12/2011, 09:09 AM
//Top of script
new Text:firetraining[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
firetraining[playerid] = TextDrawCreate(555.000000, 325.000000, "Welcome!");
TextDrawBackgroundColor(firetraining[playerid], 255);
TextDrawFont(firetraining[playerid], 1);
TextDrawLetterSize(firetraining[playerid], 0.219999, 1.000000);
TextDrawColor(firetraining[playerid], -1);
TextDrawSetOutline(firetraining[playerid], 0);
TextDrawSetProportional(firetraining[playerid], 1);
TextDrawSetShadow(firetraining[playerid], 1);
TextDrawUseBox(firetraining[playerid], 1);
TextDrawBoxColor(firetraining[playerid], 168430456);
TextDrawTextSize(firetraining[playerid], 629.000000, 41.000000);
TextDrawShowForPlayer(playerid, firetraining[playerid]);
}

printer
09/12/2011, 09:14 AM
Dimi;1561536']//Top of script
new Text:firetraining[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
firetraining[playerid] = TextDrawCreate(555.000000, 325.000000, "Welcome!");
TextDrawBackgroundColor(firetraining[playerid], 255);
TextDrawFont(firetraining[playerid], 1);
TextDrawLetterSize(firetraining[playerid], 0.219999, 1.000000);
TextDrawColor(firetraining[playerid], -1);
TextDrawSetOutline(firetraining[playerid], 0);
TextDrawSetProportional(firetraining[playerid], 1);
TextDrawSetShadow(firetraining[playerid], 1);
TextDrawUseBox(firetraining[playerid], 1);
TextDrawBoxColor(firetraining[playerid], 168430456);
TextDrawTextSize(firetraining[playerid], 629.000000, 41.000000);
TextDrawShowForPlayer(playerid, firetraining[playerid]);
}

Still doesn't appear.

eеe
09/12/2011, 09:22 AM
OnGameModeInit

foreach(Player, playerid)
{
firetraining[playerid] = TextDrawCreate(555.000000, 325.000000, "Welcome!");
TextDrawBackgroundColor(firetraining[playerid], 255);
TextDrawFont(firetraining[playerid], 1);
TextDrawLetterSize(firetraining[playerid], 0.219999, 1.000000);
TextDrawColor(firetraining[playerid], -1);
TextDrawSetOutline(firetraining[playerid], 0);
TextDrawSetProportional(firetraining[playerid], 1);
TextDrawSetShadow(firetraining[playerid], 1);
TextDrawUseBox(firetraining[playerid], 1);
TextDrawBoxColor(firetraining[playerid], 168430456);
TextDrawTextSize(firetraining[playerid], 629.000000, 41.000000);
}

OnPlayerSpawn
TextDrawShowForPlayer(playerid, firetraining[playerid]);

Text draw doesn't work at all, help please!
Change this to

//Top of script
new Text:firetraining;

public OnGameModeInIt()
{
firetraining = TextDrawCreate(555.000000, 325.000000, "Welcome!");
TextDrawBackgroundColor(firetraining, 255);
TextDrawFont(firetraining, 1);
TextDrawLetterSize(firetraining, 0.219999, 1.000000);
TextDrawColor(firetraining, -1);
TextDrawSetOutline(firetraining, 0);
TextDrawSetProportional(firetraining, 1);
TextDrawSetShadow(firetraining, 1);
TextDrawUseBox(firetraining, 1);
TextDrawBoxColor(firetraining, 168430456);
TextDrawTextSize(firetraining, 629.000000, 41.000000);

}
public OnPlayerConnect(playerid)
{
//This is used to show the player the textdraw when they connect.
TextDrawShowForPlayer(playerid, firetraining);
}

This wasn't tested just typed lemme know if it works or not

printer
09/12/2011, 09:31 AM
Change this to

//Top of script
new Text:firetraining;

public OnGameModeInIt()
{
firetraining = TextDrawCreate(555.000000, 325.000000, "Welcome!");
TextDrawBackgroundColor(firetraining, 255);
TextDrawFont(firetraining, 1);
TextDrawLetterSize(firetraining, 0.219999, 1.000000);
TextDrawColor(firetraining, -1);
TextDrawSetOutline(firetraining, 0);
TextDrawSetProportional(firetraining, 1);
TextDrawSetShadow(firetraining, 1);
TextDrawUseBox(firetraining, 1);
TextDrawBoxColor(firetraining, 168430456);
TextDrawTextSize(firetraining, 629.000000, 41.000000);

}
public OnPlayerConnect(playerid)
{
//This is used to show the player the textdraw when they connect.
TextDrawShowForPlayer(playerid, firetraining);
}

This wasn't tested just typed lemme know if it works or not

THANKS!

eеe
09/12/2011, 09:33 AM
THANKS!
Please add +rep