problem with textdraws
#1

i am making some textdraws but i am getting errors on compiling them.
the code for the textdraws:

new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;


Textdraw0 = TextDrawCreate(35.199993, 206.079986, "LD_SPAC:white");
TextDrawLetterSize(Textdraw0, 0.000000, 0.000000);
TextDrawTextSize(Textdraw0, 138.400054, 109.013320);
TextDrawAlignment(Textdraw0, 2);
TextDrawColor(Textdraw0, 255);
TextDrawSetShadow(Textdraw0, 0);
TextDrawSetOutline(Textdraw0, 0);
TextDrawFont(Textdraw0, 4);
TextDrawSetSelectable(Textdraw0, true);

Textdraw1 = TextDrawCreate(43.999958, 220.266693, "Gramas:");
TextDrawLetterSize(Textdraw1, 0.449999, 1.600000);
TextDrawAlignment(Textdraw1, 1);
TextDrawColor(Textdraw1, 16711935);
TextDrawSetShadow(Textdraw1, 3);
TextDrawSetOutline(Textdraw1, 0);
TextDrawBackgroundColor(Textdraw1, 51);
TextDrawFont(Textdraw1, 1);
TextDrawSetProportional(Textdraw1, 1);

Textdraw2 = TextDrawCreate(41.599975, 236.693283, "Fertelizada:");
TextDrawLetterSize(Textdraw2, 0.449999, 1.600000);
TextDrawAlignment(Textdraw2, 1);
TextDrawColor(Textdraw2, 16711935);
TextDrawSetShadow(Textdraw2, 0);
TextDrawSetOutline(Textdraw2, 1);
TextDrawBackgroundColor(Textdraw2, 51);
TextDrawFont(Textdraw2, 1);
TextDrawSetProportional(Textdraw2, 1);

anyone can give me a tip? thanks
Reply
#2

Maybe, would be good to give the error as we'll ?
But it's not from that !
Reply
#3

sorry for that: error 010: invalid function or declaration
C:\Users\rui\Documents\garage\gamemodes\tyhrefwdsq .pwn(1759) : error 010: invalid function or declaration
C:\Users\rui\Documents\garage\gamemodes\tyhrefwdsq .pwn(1769) : error 010: invalid function or declaration
C:\Users\rui\Documents\garage\gamemodes\tyhrefwdsq .pwn(1779) : warning 203: symbol is never used: "Textdraw0"
C:\Users\rui\Documents\garage\gamemodes\tyhrefwdsq .pwn(1779) : warning 203: symbol is never used: "Textdraw1"
C:\Users\rui\Documents\garage\gamemodes\tyhrefwdsq .pwn(1779) : warning 203: symbol is never used: "Textdraw2"


these errors
Reply
#4

Which lines are "1759" & "1769" Can you show them ?
Reply
#5

there Textdraw1 = TextDrawCreate(43.999958, 220.266693, "Gramas:"); 59
Textdraw2 = TextDrawCreate(41.599975, 236.693283, "Fertelizada:"); 69
Reply
#6

Make sure that this:

pawn Код:
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
Is at the top of your script, before main () and after #include <a_samp>

And make sure that this:

pawn Код:
Textdraw0 = TextDrawCreate(35.199993, 206.079986, "LD_SPAC:white");
TextDrawLetterSize(Textdraw0, 0.000000, 0.000000);
TextDrawTextSize(Textdraw0, 138.400054, 109.013320);
TextDrawAlignment(Textdraw0, 2);
TextDrawColor(Textdraw0, 255);
TextDrawSetShadow(Textdraw0, 0);
TextDrawSetOutline(Textdraw0, 0);
TextDrawFont(Textdraw0, 4);
TextDrawSetSelectable(Textdraw0, true);

Textdraw1 = TextDrawCreate(43.999958, 220.266693, "Gramas:");
TextDrawLetterSize(Textdraw1, 0.449999, 1.600000);
TextDrawAlignment(Textdraw1, 1);
TextDrawColor(Textdraw1, 16711935);
TextDrawSetShadow(Textdraw1, 3);
TextDrawSetOutline(Textdraw1, 0);
TextDrawBackgroundColor(Textdraw1, 51);
TextDrawFont(Textdraw1, 1);
TextDrawSetProportional(Textdraw1, 1);

Textdraw2 = TextDrawCreate(41.599975, 236.693283, "Fertelizada:");
TextDrawLetterSize(Textdraw2, 0.449999, 1.600000);
TextDrawAlignment(Textdraw2, 1);
TextDrawColor(Textdraw2, 16711935);
TextDrawSetShadow(Textdraw2, 0);
TextDrawSetOutline(Textdraw2, 1);
TextDrawBackgroundColor(Textdraw2, 51);
TextDrawFont(Textdraw2, 1);
TextDrawSetProportional(Textdraw2, 1);
Is under the OnGameModeInit function.
Reply
#7

Quote:
Originally Posted by DanishHaq
Посмотреть сообщение
Make sure that this:

pawn Код:
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
Is at the top of your script, before main () and after #include <a_samp>

And make sure that this:

pawn Код:
Textdraw0 = TextDrawCreate(35.199993, 206.079986, "LD_SPAC:white");
TextDrawLetterSize(Textdraw0, 0.000000, 0.000000);
TextDrawTextSize(Textdraw0, 138.400054, 109.013320);
TextDrawAlignment(Textdraw0, 2);
TextDrawColor(Textdraw0, 255);
TextDrawSetShadow(Textdraw0, 0);
TextDrawSetOutline(Textdraw0, 0);
TextDrawFont(Textdraw0, 4);
TextDrawSetSelectable(Textdraw0, true);

Textdraw1 = TextDrawCreate(43.999958, 220.266693, "Gramas:");
TextDrawLetterSize(Textdraw1, 0.449999, 1.600000);
TextDrawAlignment(Textdraw1, 1);
TextDrawColor(Textdraw1, 16711935);
TextDrawSetShadow(Textdraw1, 3);
TextDrawSetOutline(Textdraw1, 0);
TextDrawBackgroundColor(Textdraw1, 51);
TextDrawFont(Textdraw1, 1);
TextDrawSetProportional(Textdraw1, 1);

Textdraw2 = TextDrawCreate(41.599975, 236.693283, "Fertelizada:");
TextDrawLetterSize(Textdraw2, 0.449999, 1.600000);
TextDrawAlignment(Textdraw2, 1);
TextDrawColor(Textdraw2, 16711935);
TextDrawSetShadow(Textdraw2, 0);
TextDrawSetOutline(Textdraw2, 1);
TextDrawBackgroundColor(Textdraw2, 51);
TextDrawFont(Textdraw2, 1);
TextDrawSetProportional(Textdraw2, 1);
Is under the OnGameModeInit function.
thanks but i want to make textdraws to when i enter a checkpont that appears to the player you know? how i do it?
Reply
#8

In the public onplayerentercheckpoint use TextDrawShowForPlayer
Reply
#9

thanks lemoi you help me too rep for you both
Reply
#10

You're welcome, we need to help eachother some times
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)