PDA

View Full Version : Show text for Player And got errors?


Eminem 2ka9
08/08/2012, 08:09 PM
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: txt1 = TextDrawCreate(10.0, 415.0,"~r~Call of Duty: Seals"); And I'm getting 1 Error.

C:\Users\Administration\Desktop\Mah Script\gamemodes\MyScript.pwn(1451) : error 017: undefined symbol "txt1"

What could it be?

[DOG]irinel1996
08/08/2012, 08:13 PM
Did you do that at the start of your script:

new Text:txt1;

Eminem 2ka9
08/08/2012, 08:24 PM
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! {
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);

[DOG]irinel1996
08/08/2012, 08:51 PM
Take a look at the examples here: http://wiki.sa-mp.com/wiki/TextDrawCreate
What do you mean with "in front of him"?