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



Textdraw Error... - a.z.a.r - 19.01.2013

after this thread https://sampforum.blast.hk/showthread.php?tid=408812
i had again error...

now my error is
this:-

pawn Код:
D:\ROCKST~1\GTASAN~1\WINDOW~1\GAMEMO~1\Night.pwn(122) : error 017: undefined symbol "TextDraw0"
D:\ROCKST~1\GTASAN~1\WINDOW~1\GAMEMO~1\Night.pwn(123) : error 017: undefined symbol "TextDraw1"
D:\ROCKST~1\GTASAN~1\WINDOW~1\GAMEMO~1\Night.pwn(124) : error 017: undefined symbol "TextDraw2"
D:\ROCKST~1\GTASAN~1\WINDOW~1\GAMEMO~1\Night.pwn(125) : error 017: undefined symbol "TextDraw3"
D:\ROCKST~1\GTASAN~1\WINDOW~1\GAMEMO~1\Night.pwn(126) : error 017: undefined symbol "TextDraw4"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
these lines are on onplayerconnect:-

pawn Код:
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid,TextDraw0);
TextDrawShowForPlayer(playerid,TextDraw1);
TextDrawShowForPlayer(playerid,TextDraw2);
TextDrawShowForPlayer(playerid,TextDraw3);
TextDrawShowForPlayer(playerid,TextDraw4);
return 1;
}
and yes i have
pawn Код:
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
new Text:Textdraw4;
on the top


Re: Textdraw Error... - Infinity90 - 19.01.2013

pawn Код:
// Do you have:
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
new Text:Textdraw4;
// Below your includes?
Put this below your includes:
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
new Text:Textdraw4;


Re: Textdraw Error... - SilverKiller - 19.01.2013

pawn Код:
new Text:TextDraw0;
new Text:TextDraw1;
new Text:TextDraw2;
new Text:TextDraw3;
new Text:TextDraw4;
Replace this with the old one, and for the errors, your Things doesn't have The captials in the New TextDraw

As, the defines are Textdraw, and the one is TextDraw, notice the capital D? this will work.


Re: Textdraw Error... - mineralo - 19.01.2013

pawn Код:
new Text:TextDraw0;
new Text:TextDraw1;
new Text:TextDraw2;
new Text:TextDraw3;
new Text:TextDraw4;
you had to write D with big size


Re: Textdraw Error... - SilverKiller - 19.01.2013

Quote:
Originally Posted by mineralo
Посмотреть сообщение
pawn Код:
new Text:TextDraw0;
new Text:TextDraw1;
new Text:TextDraw2;
new Text:TextDraw3;
new Text:TextDraw4;
you had to write D with big size
I already said that before.


Re: Textdraw Error... - a.z.a.r - 19.01.2013

omg rlly thx gaiz!