23.03.2014, 01:23
pawn Код:
format(RobberyText, sizeof(RobberyText), "~r~Robbery ~w~In ~g~Progress ~w~~n~Stay In The ~y~24/7");
Robbery In Progress
Stay In The 24/7
How it is:
Robbery
In
Progress
Stay
In
The
24/7
format(RobberyText, sizeof(RobberyText), "~r~Robbery ~w~In ~g~Progress ~w~~n~Stay In The ~y~24/7");
GameTextForPlayer(playerid, "~r~Robbery ~w~In ~g~Progress ~w~~n~Stay In The ~y~24/7", 3500, 3);
public OnGameModeInit()
{
// your Textdraws
return 1;
}
// In the robbery command
TextDrawShowForPlayer(playerid, Textdraw);
pawn Код:
pawn Код:
|
Oh well, you formatted the message which you don't need so..
|
new RobberyText[80];
format(RobberyText, sizeof(RobberyText), "~r~Robbery ~w~In ~g~Progress ~w~ ~n~Stay In The ~y~24/7");
TextDrawSetString(TextMessage, RobberyText);
public OnGameModeInit()
{
RobberyText = TextDrawCreate(247.000000, 226.000000, "~r~Robbery ~w~In ~g~Progress ~w~ ~n~Stay In The ~y~24/7");
TextDrawBackgroundColor(RobberyText, 255);
TextDrawFont(RobberyText, 1);
TextDrawLetterSize(RobberyText, 0.309899, 1.199900);
TextDrawColor(RobberyText, -1);
TextDrawSetOutline(RobberyText, 0);
TextDrawSetProportional(RobberyText, 1);
TextDrawSetShadow(RobberyText, 1);
TextDrawSetSelectable(RobberyText, 0);
return 1;
}
CMD:robbery(playerid, params[])
{
TextDrawShowForPlayer(playerid, RobberyText);
return 1;
}
I just told you that you don't need to format the message,
pawn Код:
|
I just told you that you don't need to format the message,
pawn Код:
|