TextDraw problem
#1

Hi,
I read team names from file with Dini, and I want display all players with textdraw, but the TextDraw not display the team names. If I use SendClientMessageToAll() or SendClientMessage() function, no problem, the team names is display. Please help!

This is the script:
Код:
new teamnames[3][16];
new string[16];
format(string, 16, "%s", dini_Get(CONFIG_FILE, "Team1"));
for(new i; i <= strlen(string); i++)
{
    teamnames[TEAM_1][i] = string[i];
}
format(string, 16, "%s", dini_Get(CONFIG_FILE, "Team2"));
for(new i; i <= strlen(string); i++)
{
    teamnames[TEAM_2][i] = string[i];
}
Код:
new Text: Textdraw;
new string[128];
format(string, 128, "~w~Pontok:~n~~g~%s: ~w~%i~n~~b~~h~~h~~h~%s: ~w~%i", teamnames[TEAM_1], teamscores[TEAM_1], teamnames[TEAM_2], teamscores[TEAM_2]);
Textdraw = TextDrawCreate(499.000000,97.000000, string);
TextDrawAlignment(Textdraw,0);
TextDrawBackgroundColor(Textdraw,0x00000066);
TextDrawFont(Textdraw,1);
TextDrawLetterSize(Textdraw,0.499999,1.900000);
TextDrawSetOutline(Textdraw,1);
TextDrawSetProportional(Textdraw,1);
TextDrawSetShadow(Textdraw,10);
Reply


Messages In This Thread
TextDraw problem - by [DrM]spatrik - 23.07.2010, 13:18

Forum Jump:


Users browsing this thread: 1 Guest(s)