Thank you for helping!
#1

Код:
lockscreen[0] = TextDrawCreate(507.333404, 216.533294, "LD_SPAC:light");
	TextDrawLetterSize(lockscreen[0], 0.000000, 0.000000);
	TextDrawTextSize(lockscreen[0], 19.333324, 19.081485);
	TextDrawAlignment(lockscreen[0], 1);
	TextDrawColor(lockscreen[0], 255);
	TextDrawSetShadow(lockscreen[0], 0);
	TextDrawSetOutline(lockscreen[0], 0);
	TextDrawFont(lockscreen[0], 4);
Код:
C:\Users\Nathan\Desktop\Downtown Roleplay\filterscripts\base.pwn(6) : error 017: undefined symbol "lockscreen"
C:\Users\Nathan\Desktop\Downtown Roleplay\filterscripts\base.pwn(6) : warning 215: expression has no effect
C:\Users\Nathan\Desktop\Downtown Roleplay\filterscripts\base.pwn(6) : error 001: expected token: ";", but found "]"
C:\Users\Nathan\Desktop\Downtown Roleplay\filterscripts\base.pwn(6) : error 029: invalid expression, assumed zero
C:\Users\Nathan\Desktop\Downtown Roleplay\filterscripts\base.pwn(6) : fatal error 107: too many error messages on one line

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


4 Errors.
And if you remove that line, it does it for the next and next and next
Reply
#2

Could you show how you have defined lockscreen please.

Make sure its something like:
new Text:lockscreen
Reply
#3

If you only have 1 textdraw, then you can't (have to) do it like that, simply do:

pawn Код:
new Text:lockscreen;

lockscreen = TextDrawCreate(507.333404, 216.533294, "LD_SPAC:light");
TextDrawLetterSize(lockscreen, 0.000000, 0.000000);
TextDrawTextSize(lockscreen, 19.333324, 19.081485);
TextDrawAlignment(lockscreen, 1);
TextDrawColor(lockscreen, 255);
TextDrawSetShadow(lockscreen, 0);
TextDrawSetOutline(lockscreen, 0);
TextDrawFont(lockscreen, 4);
Reply
#4

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
If you only have 1 textdraw, then you don't have to do that, simply do:

pawn Код:
new Text:lockscreen;

lockscreen = TextDrawCreate(507.333404, 216.533294, "LD_SPAC:light");
TextDrawLetterSize(lockscreen, 0.000000, 0.000000);
TextDrawTextSize(lockscreen, 19.333324, 19.081485);
TextDrawAlignment(lockscreen, 1);
TextDrawColor(lockscreen, 255);
TextDrawSetShadow(lockscreen, 0);
TextDrawSetOutline(lockscreen, 0);
TextDrawFont(lockscreen, 4);
nope there's 8 plus other types..

here: https://sampforum.blast.hk/showthread.php?tid=570163
Reply
#5

Quote:
Originally Posted by Sledgehammer
Посмотреть сообщение
Could you show how you have defined lockscreen please.

Make sure its something like:
new Text:lockscreen
there's 8
Reply
#6

Do you have the following code in your script:

new Text:lockscreen[8];

If not, add it before creating the textdraw.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)