SA-MP Forums Archive
Textdraw=>-need help some 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Textdraw=>-need help some error (/showthread.php?tid=83515)



Textdraw=>-need help some error - Joe2009 - 25.06.2009

Код:
C:\Documents and Settings\Elar\My Documents\Server\Server\gamemodes\RPG.pwn(5625) : error 010: invalid function or declaration
C:\Documents and Settings\Elar\My Documents\Server\Server\gamemodes\RPG.pwn(23194) : warning 203: symbol is never used: "Textdraw0"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.



Re: Textdraw=>-need help some error - Correlli - 25.06.2009

Post line 5625.


Re: Textdraw=>-need help some error - Joe2009 - 25.06.2009

Код:
line 5625 Textdraw0 = TextDrawCreate(90.000000,433.000000,"ESTONIAN RPG "2009"");



Re: Textdraw=>-need help some error - Correlli - 25.06.2009

pawn Код:
Textdraw0 = TextDrawCreate(90.000000,433.000000,"ESTONIAN RPG 2009");



Re: Textdraw=>-need help some error - Joe2009 - 25.06.2009

Same Error

Код:
C:\Documents and Settings\Elar\My Documents\Server\Server\gamemodes\RPG.pwn(5625) : error 010: invalid function or declaration
C:\Documents and Settings\Elar\My Documents\Server\Server\gamemodes\RPG.pwn(23194) : warning 203: symbol is never used: "Textdraw0"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.



Re: Textdraw=>-need help some error - Joe2009 - 25.06.2009

plz help



Re: Textdraw=>-need help some error - Joe2009 - 25.06.2009

//On top of script:
Код:
new Text:Textdraw0;
Код:
//In OnGameModeInit or any other place, we procced to create our textdraw:
Textdraw0 = TextDrawCreate(90.000000,433.000000,"ESTONIAN RPG "2009"");
TextDrawAlignment(Textdraw0,2);
TextDrawBackgroundColor(Textdraw0,0x0000ff33);
TextDrawFont(Textdraw0,2);
TextDrawLetterSize(Textdraw0,0.299999,0.699999);
TextDrawColor(Textdraw0,0x00ffff99);
TextDrawSetOutline(Textdraw0,1);
TextDrawSetProportional(Textdraw0,1);
TextDrawSetShadow(Textdraw0,4);
If I But That in my gamemode pwn file i get error plz help


Re: Textdraw=>-need help some error - StrickenKid - 25.06.2009

because its on the inside of the first " " use ' ' instead, so:
Код:
TextDrawCreate(90.000000,433.000000,"ESTONIAN RPG '2009'");
and the warning just means you haven't used the td yet.