TextDraw problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: TextDraw problem (
/showthread.php?tid=162418)
TextDraw problem -
[DrM]spatrik - 23.07.2010
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);