SA-MP Forums Archive
TextDraws - 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)
+--- Thread: TextDraws (/showthread.php?tid=456986)



TextDraws - BodyBoardVEVO - 08.08.2013

Hai, with this textdraw i cant compile GM, it crash PAWNO.

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;
}



Re: TextDraws - [D]ry[D]esert - 08.08.2013

I these textdraws are fine.
try to hide them using '/*' and '*/' and if it crashs again, then you have another problem.


Re: TextDraws - AlexPro99 - 08.08.2013

i don't see errors(try to change color in 0xFFFFFFFF)..
you can use my tool for create textdraws http://www.mediafire.com/download/hs...+Help+v1.2.exe
topic: https://sampforum.blast.hk/showthread.php?tid=444444


Re: TextDraws - BodyBoardVEVO - 08.08.2013

Yes, i fixed. But not with your suggestions
Anyways, thanks for reply.