How can i make TextDrawShowForAll?
#1

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);
Reply
#2

Код:
  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 (:
Reply
#3

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)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)