how to define this
#1

Hy all , i try to add a new texdraw with my name server but after i was create the script i recive this erors on i compile the gm :

Код:
C:\DOCUME~1\home\Desktop\GAMEMO~1\GAMEMO~1\gf.pwn(14999) : error 017: undefined symbol "Textdrawsite2"
C:\DOCUME~1\home\Desktop\GAMEMO~1\GAMEMO~1\gf.pwn(14999) : warning 215: expression has no effect
C:\DOCUME~1\home\Desktop\GAMEMO~1\GAMEMO~1\gf.pwn(14999) : error 001: expected token: ";", but found "]"
C:\DOCUME~1\home\Desktop\GAMEMO~1\GAMEMO~1\gf.pwn(14999) : error 029: invalid expression, assumed zero
C:\DOCUME~1\home\Desktop\GAMEMO~1\GAMEMO~1\gf.pwn(14999) : 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 this is the texdraw :

Код:
for( new i; i < MAX_PLAYERS; ++i )
   {
	    Textdrawsite2[i] = TextDrawCreate(578.000000, 430.000000, "PONS");
		TextDrawAlignment(Textdrawsite2[i], 2);
		TextDrawBackgroundColor(Textdrawsite2[i], 255);
		TextDrawFont(Textdrawsite2[i], 3);
		TextDrawLetterSize(Textdrawsite2[i], 0.399999, 1.500000);
		TextDrawColor(Textdrawsite2[i], 0x1E90FFFF);
		TextDrawSetOutline(Textdrawsite2[i], 0);
		TextDrawSetProportional(Textdrawsite2[i], 1);
		TextDrawSetShadow(Textdrawsite2[i], 0);
		Textdrawsite3[i] = TextDrawCreate(607.000000, 430.000000, ".RO");
		TextDrawAlignment(Textdrawsite3[i], 2);
		TextDrawBackgroundColor(Textdrawsite3[i], 255);
		TextDrawFont(Textdrawsite3[i], 3);
		TextDrawLetterSize(Textdrawsite3[i], 0.400000, 1.500000);
		TextDrawColor(Textdrawsite3[i], 120);
		TextDrawSetOutline(Textdrawsite3[i], 0);
		TextDrawSetProportional(Textdrawsite3[i], 1);
		TextDrawSetShadow(Textdrawsite3[i], 0);
	}
Reply
#2

pawn Код:
new Text:Textdrawsite2;
I think
pawn Код:
for( new i; i < MAX_PLAYERS; ++i )
is not useful..
Reply
#3

i resolve with this :

Код:
new Text:Textdrawsite2[MAX_PLAYERS];
new Text:Textdrawsite3[MAX_PLAYERS];
ty all , TC
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)