SA-MP Forums Archive
How can i make TextDrawShowForAll? - 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: How can i make TextDrawShowForAll? (/showthread.php?tid=155056)



How can i make TextDrawShowForAll? - Ihsan_Cingisiz - 16.06.2010

Hello, i want to make a TextDrawShowForAll, not only the player i want that
everyone sees that you logged in.. Here is the script :

Quote:

new name[24];
new string9[256];
GetPlayerName(playerid, name,24);
format(string9,sizeof(string9),"%s has logged in", name);
TextDrawShowForAll(playerid, Textdraw9); // I need something like this ShowForAll makes a error

Textdraw9 = TextDrawCreate(511.000000, 270.000000, string9);
TextDrawBackgroundColor(Textdraw9, 255);
TextDrawFont(Textdraw9, 1);
TextDrawLetterSize(Textdraw9, 0.190000, 0.899999);
TextDrawColor(Textdraw9, -1);
TextDrawSetOutline(Textdraw9, 1);
TextDrawSetProportional(Textdraw9, 1);

Nevermind, i found it XD.. It's not TextDrawShowForAll(playerid, Textdraw9); but TextDrawShowForAll(Textdraw9);


Re: How can i make TextDrawShowForAll? - Naxix - 16.06.2010

Код:
  new name[24];
  new string9[256];
  GetPlayerName(playerid, name,24);
  format(string9,sizeof(string9),"%s has logged in", name);
  Textdraw9 = TextDrawCreate(511.000000, 270.000000, string9);
  TextDrawBackgroundColor(Textdraw9, 255);
  TextDrawFont(Textdraw9, 1);
  TextDrawLetterSize(Textdraw9, 0.190000, 0.899999);
  TextDrawColor(Textdraw9, -1);
  TextDrawSetOutline(Textdraw9, 1);
  TextDrawSetProportional(Textdraw9, 1);
  TextDrawShowForAll(playerid, Textdraw9);
Try this then, as the function is right (:


Re: How can i make TextDrawShowForAll? - Ihsan_Cingisiz - 17.06.2010

Quote:
Originally Posted by Naxix
Код:
 new name[24];
 new string9[256];
 GetPlayerName(playerid, name,24);
 format(string9,sizeof(string9),"%s has logged in", name);
 Textdraw9 = TextDrawCreate(511.000000, 270.000000, string9);
 TextDrawBackgroundColor(Textdraw9, 255);
 TextDrawFont(Textdraw9, 1);
 TextDrawLetterSize(Textdraw9, 0.190000, 0.899999);
 TextDrawColor(Textdraw9, -1);
 TextDrawSetOutline(Textdraw9, 1);
 TextDrawSetProportional(Textdraw9, 1);
 TextDrawShowForAll(playerid, Textdraw9);
Try this then, as the function is right (:
This isn't right what you did, TextDrawShowForAll(playerid, Textdraw9); don't work because if you show it to all
you dont use only one playerid, so it was TextDrawShowForAll(Textdraw9)