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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: TextDraw error (/showthread.php?tid=75135)



TextDraw error - RenisiL - 29.04.2009

Post Delete


Re: TextDraw error - afei - 29.04.2009

You have to tell the script what you mean with "string" like you did for Hours, Minutes, Seconds etc.. But note that you have to add the string size.


Re: TextDraw error - RenisiL - 29.04.2009

but how


Re: TextDraw error - afei - 29.04.2009

Код:
new string[128];
At the top of your code


Re: TextDraw error - RenisiL - 29.04.2009

now 10 error
Quote:

new Hours;
new Minutes;
new Seconds;
new Days;
new Months;
new Years;
new string[128];
gettime(Hours, Minutes, Seconds);
getdate(Years, Months, Days);
format(string, sizeof(string), "Naujas: ~N~ Website: www.gta-team.gan.lt ~N~ Script Version: v4.4.9 ~N~ Date: %d / %d / %d ~N~ Time: %d: %d: %d.", Months, Days, Years, Hours, Minutes, Seconds);
Textdraw6 = TextDrawCreate(323, 155, string);
TextDrawUseBox(Textdraw6, 1);
TextDrawBoxColor(Textdraw6, 0x00000099);
TextDrawTextSize(Textdraw6, 230.0,440.0);
TextDrawAlignment(Textdraw6, 2);
TextDrawFont(Textdraw6, 1);
TextDrawLetterSize(Textdraw6, 0.4, 1.26);
TextDrawColor(Textdraw6, 0xFF3300FF);
TextDrawSetProportional(Textdraw6, 1);




Re: TextDraw error - afei - 29.04.2009

Quote:
Originally Posted by RenisiL
now 10 error
Quote:

new Hours;
new Minutes;
new Seconds;
new Days;
new Months;
new Years;
new string[128];
gettime(Hours, Minutes, Seconds);
getdate(Years, Months, Days);
format(string, sizeof(string), "Naujas: ~N~ Website: www.gta-team.gan.lt ~N~ Script Version: v4.4.9 ~N~ Date: %d / %d / %d ~N~ Time: %d: %d: %d.", Months, Days, Years, Hours, Minutes, Seconds);
Textdraw6 = TextDrawCreate(323, 155, string);
TextDrawUseBox(Textdraw6, 1);
TextDrawBoxColor(Textdraw6, 0x00000099);
TextDrawTextSize(Textdraw6, 230.0,440.0);
TextDrawAlignment(Textdraw6, 2);
TextDrawFont(Textdraw6, 1);
TextDrawLetterSize(Textdraw6, 0.4, 1.26);
TextDrawColor(Textdraw6, 0xFF3300FF);
TextDrawSetProportional(Textdraw6, 1);

and which ?


Re: TextDraw error - RenisiL - 29.04.2009

D:\VISKAS~1\Serveris\Server1\GAMEMO~1\LT-SF.pwn(16 : error 017: undefined symbol "Textdraw6"
D:\VISKAS~1\Serveris\Server1\GAMEMO~1\LT-SF.pwn(169) : error 017: undefined symbol "Textdraw6"
D:\VISKAS~1\Serveris\Server1\GAMEMO~1\LT-SF.pwn(170) : error 017: undefined symbol "Textdraw6"
Quote:

D:\VISKAS~1\Serveris\Server1\GAMEMO~1\LT-SF.pwn(171) : error 017: undefined symbol "Textdraw6"
D:\VISKAS~1\Serveris\Server1\GAMEMO~1\LT-SF.pwn(172) : error 017: undefined symbol "Textdraw6"
D:\VISKAS~1\Serveris\Server1\GAMEMO~1\LT-SF.pwn(173) : error 017: undefined symbol "Textdraw6"
D:\VISKAS~1\Serveris\Server1\GAMEMO~1\LT-SF.pwn(174) : error 017: undefined symbol "Textdraw6"
D:\VISKAS~1\Serveris\Server1\GAMEMO~1\LT-SF.pwn(175) : error 017: undefined symbol "Textdraw6"
D:\VISKAS~1\Serveris\Server1\GAMEMO~1\LT-SF.pwn(176) : error 017: undefined symbol "Textdraw6"
D:\VISKAS~1\Serveris\Server1\GAMEMO~1\LT-SF.pwn(526) : error 001: expected token: ",", but found ";"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


10 Errors.




Re: TextDraw error - afei - 29.04.2009

Put this somewhere in your script above the code
Код:
new Text:Textdraw6;

Quote:

D:\VISKAS~1\Serveris\Server1\GAMEMO~1\LT-SF.pwn(526) : error 001: expected token: ",", but found ";"

This error seems not to belong to the code above but go into the line and try to find for a ";" which should be a "," or post the code..


Re: TextDraw error - RenisiL - 29.04.2009

Thankx


Re: TextDraw error - RenisiL - 11.12.2009

Quote:
Originally Posted by RenisiL
error
Код:
D:\VISKAS~1\Serveris\Server1\GAMEMO~1\LT-SF.pwn(166) : error 017: undefined symbol "string"
D:\VISKAS~1\Serveris\Server1\GAMEMO~1\LT-SF.pwn(166) : error 017: undefined symbol "string"
D:\VISKAS~1\Serveris\Server1\GAMEMO~1\LT-SF.pwn(166) : error 029: invalid expression, assumed zero
D:\VISKAS~1\Serveris\Server1\GAMEMO~1\LT-SF.pwn(166) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Код:
 new Hours;
  new Minutes;
  new Seconds;
  new Days;
  new Months;
  new Years;
  gettime(Hours, Minutes, Seconds);
  getdate(Years, Months, Days);
  format(string, sizeof(string), "Naujas: ~N~ Website: www.gta-team.gan.lt ~n~ Script Version: v4.4.9 ~N~ Date: %d / %d / %d ~N~ Time: %d: %d: %d.", Months, Days, Years, Hours, Minutes, Seconds);
  Textdraw6 = TextDrawCreate(323, 155, string);
  TextDrawUseBox(Textdraw6, 1);
  TextDrawBoxColor(Textdraw6, 0x00000099);
  TextDrawTextSize(Textdraw6, 230.0,440.0);
  TextDrawAlignment(Textdraw6, 2);
  TextDrawFont(Textdraw6, 1);
  TextDrawLetterSize(Textdraw6, 0.4, 1.26);
  TextDrawColor(Textdraw6, 0xFF3300FF);
  TextDrawSetProportional(Textdraw6, 1);
why error