Show text for Player And got errors? - 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: Show text for Player And got errors? (
/showthread.php?tid=367120)
Show text for Player And got errors? -
Eminem 2ka9 - 08.08.2012
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?
Respuesta: Show text for Player And got errors? -
[DOG]irinel1996 - 08.08.2012
Did you do that at the start of your script:
Re: Show text for Player And got errors? -
Eminem 2ka9 - 08.08.2012
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);
Respuesta: Show text for Player And got errors? -
[DOG]irinel1996 - 08.08.2012
Take a look at the examples here:
https://sampwiki.blast.hk/wiki/TextDrawCreate
What do you mean with "in front of him"?