Onplayerconnect help me pls :)
#1

TimeText[playerid] = TextDrawCreate(174.000000, 395.000000, " "); // Death Text
TextDrawAlignment(TimeText[playerid], 0);
TextDrawBackgroundColor(TimeText[playerid], 0x000000FF);
TextDrawFont(TimeText[playerid], 1);
TextDrawLetterSize(TimeText[playerid], 0.44, 1.9;
TextDrawColor(TimeText[playerid],0xffffff99);
TextDrawSetOutline(TimeText[playerid], 1);
TextDrawSetProportional(TimeText[playerid], 1);
TextDrawSetShadow(TimeText[playerid], 1);
return 1;

This is script but i have 4 errors
__________________________________________________ __________________________________________
(861) : error 017: undefined symbol "TimeText"
(861) : warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line

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


4 Errors.
Reply
#2

One of the errors is that you need to define the TimeText, do this by adding at the top of your script:

pawn Код:
new Text:TimeText;
Reply
#3

ok .. i add it
but again i see this errors.. i need on playerconnect with this black of up and down to you screen"
and here write somethink (name of server and somethink)
(sry bad english)
Reply
#4

Can you give me the errors? and their lines?
Reply
#5

bro this is all script

860 TimeText[playerid] = TextDrawCreate(174.000000, 395.000000, " "); // Death Text
861 TextDrawAlignment(TimeText[playerid], 0);
862 TextDrawBackgroundColor(TimeText[playerid], 0x000000FF);
863 TextDrawFont(TimeText[playerid], 1);
864 TextDrawLetterSize(TimeText[playerid], 0.44, 1.9;
865 TextDrawColor(TimeText[playerid],0xffffff99);
866 TextDrawSetOutline(TimeText[playerid], 1);
867 TextDrawSetProportional(TimeText[playerid], 1);
868 TextDrawSetShadow(TimeText[playerid], 1);
869 return 1;

This is script but i have 4 errors
__________________________________________________ __________________________________________
(860) : error 017: undefined symbol "TimeText"
(860) : warning 215: expression has no effect
(860) : error 001: expected token: ";", but found "]"
(860) : error 029: invalid expression, assumed zero
(860) : 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 Text:TimeText;
and i add this but again errors
Reply
#6

Oh I'm sorry, try new Text:TimeText[MAX_PLAYERS];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)