TextDraw error
#1

Post Delete
Reply
#2

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.
Reply
#3

but how
Reply
#4

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

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);

Reply
#6

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 ?
Reply
#7

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.

Reply
#8

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..
Reply
#9

Thankx
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)