SA-MP Forums Archive
Textdraw Problem - 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: Textdraw Problem (/showthread.php?tid=126751)



Textdraw Problem - jesuschristlordandsavior - 09.02.2010

Ok so I am trying to add some text draws to my game mode but on compile I get tons of errors.
Код:
public OnGameModeInit()
{
    Textdraw0 = TextDrawCreate(15.000000, 433.000000, "www.biohazardgaming.net");
    TextDrawBackgroundColor(Textdraw0, 255);
    TextDrawFont(Textdraw0, 1);
    TextDrawLetterSize(Textdraw0, 0.519999, 1.200000);
    TextDrawColor(Textdraw0, -16776961);
    TextDrawSetOutline(Textdraw0, 1);
    TextDrawSetProportional(Textdraw0, 1);

    Textdraw1 = TextDrawCreate(255.000000, 432.000000, "Server Scripters: [BIO]KyleJ, [PRO]Pie, and Trey");
    TextDrawBackgroundColor(Textdraw1, 255);
    TextDrawFont(Textdraw1, 1);
    TextDrawLetterSize(Textdraw1, 0.409999, 1.399999);
    TextDrawColor(Textdraw1, 16711935);
    TextDrawSetOutline(Textdraw1, 1);
    TextDrawSetProportional(Textdraw1, 1);
    return 1;  
}
What'd I do wrong?



Re: Textdraw Problem - Babul - 10.02.2010

your textdraw creation compiles well. post your errors please...


Re: Textdraw Problem - Calgon - 10.02.2010

Did you define (near the top):

pawn Код:
new Text: Textdraw0, Text: Textdraw1;