Show text for Player And got errors?
#1

Um I'm a noob be aware of that and I'm having a small problem with my text thing, like I want the text to show on the screen! My code:
pawn Код:
txt1 = TextDrawCreate(10.0, 415.0,"~r~Call of Duty: Seals");
And I'm getting 1 Error.

pawn Код:
C:\Users\Administration\Desktop\Mah Script\gamemodes\MyScript.pwn(1451) : error 017: undefined symbol "txt1"
What could it be?
Reply
#2

Did you do that at the start of your script:
pawn Код:
new Text:txt1;
Reply
#3

No I didn't! I did now and it didn't work with the above, so I added this but Its not what I want cuz I want the big text infront of him!
pawn Код:
{
    new Text:txt1;
    txt1 = TextDrawCreate(10.0, 415.0,"~r~Call of Duty");
    TextDrawBoxColor(txt1,0x222222BB);
        TextDrawLetterSize(txt1,0.3,1.0);
        TextDrawTextSize(txt1,400.0,40.0);
        TextDrawFont(txt1, 2);
        TextDrawShowForPlayer(playerid,txt1);
Reply
#4

Take a look at the examples here: https://sampwiki.blast.hk/wiki/TextDrawCreate
What do you mean with "in front of him"?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)