pawn Код:
#include <a_samp>
new Text:TD100;
new Text:TD101;
new Text:TD102;
new Text:TD103;
public OnGameModeInit()
{
TD100 = TextDrawCreate(252.000000, 333.000000, "San Fierro");
TextDrawBackgroundColor(TD100, 255);
TextDrawFont(TD100, 0);
TextDrawLetterSize(TD100, 0.869999, 4.099998);
TextDrawColor(TD100, -65281);
TextDrawSetOutline(TD100, 1);
TextDrawSetProportional(TD100, 1);
TD101 = TextDrawCreate(221.000000, 372.000000, "Cops");
TextDrawBackgroundColor(TD101, 255);
TextDrawFont(TD101, 2);
TextDrawLetterSize(TD101, 0.500000, 1.000000);
TextDrawColor(TD101, 65535);
TextDrawSetOutline(TD101, 1);
TextDrawSetProportional(TD101, 1);
TD102 = TextDrawCreate(283.000000, 372.000000, "And");
TextDrawBackgroundColor(TD102, 255);
TextDrawFont(TD102, 3);
TextDrawLetterSize(TD102, 0.500000, 1.000000);
TextDrawColor(TD102, -1);
TextDrawSetOutline(TD102, 1);
TextDrawSetProportional(TD102, 1);
TD103 = TextDrawCreate(320.000000, 372.000000, "Robbers");
TextDrawBackgroundColor(TD103, 255);
TextDrawFont(TD103, 2);
TextDrawLetterSize(TD103, 0.500000, 1.000000);
TextDrawColor(TD103, -16776961);
TextDrawSetOutline(TD103, 1);
TextDrawSetProportional(TD103, 1);
return 1;
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid,TD100);
TextDrawShowForPlayer(playerid,TD101);
TextDrawShowForPlayer(playerid,TD102);
TextDrawShowForPlayer(playerid,TD103);
return 1;
}
public OnPlayerSpawn(playerid)
{
TextDrawHideForPlayer(playerid, TD100);
TextDrawHideForPlayer(playerid, TD101);
TextDrawHideForPlayer(playerid, TD102);
TextDrawHideForPlayer(playerid, TD103);
return 1;
}
I these textdraws are fine.
try to hide them using '/*' and '*/' and if it crashs again, then you have another problem.
i don't see errors(try to change color in 0xFFFFFFFF)..
Yes, i fixed. But not with your suggestions