Help!!! +1 REP]
#1

Код:
GwTD[playerid][0] = CreatePlayerTextDraw(playerid,677.000000, 451.000000, "_");
	PlayerTextDrawBackgroundColor(playerid,GwTD[playerid][0], 255);
	PlayerTextDrawFont(playerid,GwTD[playerid][0], 1);
	PlayerTextDrawLetterSize(playerid,GwTD[playerid][0], 0.500000, -2.549998);
	PlayerTextDrawColor(playerid,GwTD[playerid][0], -1);
	PlayerTextDrawSetOutline(playerid,GwTD[playerid][0], 0);
	PlayerTextDrawSetProportional(playerid,GwTD[playerid][0], 1);
	PlayerTextDrawSetShadow(playerid,GwTD[playerid][0], 1);
	PlayerTextDrawUseBox(playerid,GwTD[playerid][0], 1);
	PlayerTextDrawBoxColor(playerid,GwTD[playerid][0], 84215295);
	PlayerTextDrawTextSize(playerid,GwTD[playerid][0], -23.000000, 0.000000);

	GwTD[playerid][1] = CreatePlayerTextDraw(playerid,677.000000, 435.000000, "_");
	PlayerTextDrawBackgroundColor(playerid,GwTD[playerid][1], 255);
	PlayerTextDrawFont(playerid,GwTD[playerid][1], 1);
	PlayerTextDrawLetterSize(playerid,GwTD[playerid][1], 0.500000, 0.299998);
	PlayerTextDrawColor(playerid,GwTD[playerid][1], -1);
	PlayerTextDrawSetOutline(playerid,GwTD[playerid][1], 0);
	PlayerTextDrawSetProportional(playerid,GwTD[playerid][1], 1);
	PlayerTextDrawSetShadow(playerid,GwTD[playerid][1], 1);
	PlayerTextDrawUseBox(playerid,GwTD[playerid][1], 1);
	PlayerTextDrawBoxColor(playerid,GwTD[playerid][1], 505290495);
	PlayerTextDrawTextSize(playerid,GwTD[playerid][1], -23.000000, 0.000000);

	GwTD[playerid][2] = CreatePlayerTextDraw(playerid,677.000000, 434.500000, "_");
	PlayerTextDrawBackgroundColor(playerid,GwTD[playerid][2], 255);
	PlayerTextDrawFont(playerid,GwTD[playerid][2], 1);
	PlayerTextDrawLetterSize(playerid,GwTD[playerid][2], 0.500000, -0.649999);
	PlayerTextDrawColor(playerid,GwTD[playerid][2], -1);
	PlayerTextDrawSetOutline(playerid,GwTD[playerid][2], 0);
	PlayerTextDrawSetProportional(playerid,GwTD[playerid][2], 1);
	PlayerTextDrawSetShadow(playerid,GwTD[playerid][2], 1);
	PlayerTextDrawUseBox(playerid,GwTD[playerid][2], 1);
	PlayerTextDrawBoxColor(playerid,GwTD[playerid][2], 1179010810);
	PlayerTextDrawTextSize(playerid,GwTD[playerid][2], -23.000000, 0.000000);

	GwTD[playerid][3] = CreatePlayerTextDraw(playerid,5.000000, 405.000000, "Kills: ~w~0");
	PlayerTextDrawBackgroundColor(playerid,GwTD[playerid][3], 255);
	PlayerTextDrawFont(playerid,GwTD[playerid][3], 1);
	PlayerTextDrawLetterSize(playerid,GwTD[playerid][3], 0.250000, 0.899900);
	PlayerTextDrawColor(playerid,GwTD[playerid][3], 1958212351);
	PlayerTextDrawSetOutline(playerid,GwTD[playerid][3], 1);
	PlayerTextDrawSetProportional(playerid,GwTD[playerid][3], 1);

	GwTD[playerid][4] = CreatePlayerTextDraw(playerid,296.000000, 438.000000, "GANGWAR");
	PlayerTextDrawBackgroundColor(playerid,GwTD[playerid][4], 255);
	PlayerTextDrawFont(playerid,GwTD[playerid][4], 1);
	PlayerTextDrawLetterSize(playerid,GwTD[playerid][4], 0.289999, 0.699998);
	PlayerTextDrawColor(playerid,GwTD[playerid][4], -1);
	PlayerTextDrawSetOutline(playerid,GwTD[playerid][4], 1);
	PlayerTextDrawSetProportional(playerid,GwTD[playerid][4], 1);

	GwTD[playerid][5] = CreatePlayerTextDraw(playerid,5.000000, 415.000000, "Deaths:~w~ 0");
	PlayerTextDrawBackgroundColor(playerid,GwTD[playerid][5], 255);
	PlayerTextDrawFont(playerid,GwTD[playerid][5], 1);
	PlayerTextDrawLetterSize(playerid,GwTD[playerid][5], 0.250000, 0.899900);
	PlayerTextDrawColor(playerid,GwTD[playerid][5], 1958212351);
	PlayerTextDrawSetOutline(playerid,GwTD[playerid][5], 1);
	PlayerTextDrawSetProportional(playerid,GwTD[playerid][5], 1);

	GwTD[playerid][6] = CreatePlayerTextDraw(playerid,313.000000, 418.000000, "04:48");
	PlayerTextDrawBackgroundColor(playerid,GwTD[playerid][6], 255);
	PlayerTextDrawFont(playerid,GwTD[playerid][6], 1);
	PlayerTextDrawLetterSize(playerid,GwTD[playerid][6], 0.330000, 0.799998);
	PlayerTextDrawColor(playerid,GwTD[playerid][6], -1);
	PlayerTextDrawSetOutline(playerid,GwTD[playerid][6], 1);
	PlayerTextDrawSetProportional(playerid,GwTD[playerid][6], 1);

	GwTD[playerid][7] = CreatePlayerTextDraw(playerid,177.000000, 426.000000, "l                                      l");
	PlayerTextDrawBackgroundColor(playerid,GwTD[playerid][7], 842150500);
	PlayerTextDrawFont(playerid,GwTD[playerid][7], 1);
	PlayerTextDrawLetterSize(playerid,GwTD[playerid][7], 0.500000, 2.799998);
	PlayerTextDrawColor(playerid,GwTD[playerid][7], 1684300820);
	PlayerTextDrawSetOutline(playerid,GwTD[playerid][7], 0);
	PlayerTextDrawSetProportional(playerid,GwTD[playerid][7], 1);
	PlayerTextDrawSetShadow(playerid,GwTD[playerid][7], 1);

	GwTD[playerid][8] = CreatePlayerTextDraw(playerid,292.000000, 413.000000, "LD_POKE:cd10d");
	PlayerTextDrawBackgroundColor(playerid,GwTD[playerid][8], 255);
	PlayerTextDrawFont(playerid,GwTD[playerid][8], 4);
	PlayerTextDrawLetterSize(playerid,GwTD[playerid][8], 0.500000, -1.549998);
	PlayerTextDrawColor(playerid,GwTD[playerid][8], 50);
	PlayerTextDrawSetOutline(playerid,GwTD[playerid][8], 0);
	PlayerTextDrawSetProportional(playerid,GwTD[playerid][8], 1);
	PlayerTextDrawSetShadow(playerid,GwTD[playerid][8], 1);
	PlayerTextDrawUseBox(playerid,GwTD[playerid][8], 1);
	PlayerTextDrawBoxColor(playerid,GwTD[playerid][8], 84215295);
	PlayerTextDrawTextSize(playerid,GwTD[playerid][8], 57.000000, 18.000000);


	GwTD[playerid][10] = CreatePlayerTextDraw(playerid,131.000000, 413.000000, "LD_POKE:cd10d");
	PlayerTextDrawBackgroundColor(playerid,GwTD[playerid][10], 255);
	PlayerTextDrawFont(playerid,GwTD[playerid][10], 4);
	PlayerTextDrawLetterSize(playerid,GwTD[playerid][10], 0.500000, -1.549998);
	PlayerTextDrawColor(playerid,GwTD[playerid][10], 50);
	PlayerTextDrawSetOutline(playerid,GwTD[playerid][10], 0);
	PlayerTextDrawSetProportional(playerid,GwTD[playerid][10], 1);
	PlayerTextDrawSetShadow(playerid,GwTD[playerid][10], 1);
	PlayerTextDrawUseBox(playerid,GwTD[playerid][10], 1);
	PlayerTextDrawBoxColor(playerid,GwTD[playerid][10], 84215295);
	PlayerTextDrawTextSize(playerid,GwTD[playerid][10], 57.000000, 18.000000);

	GwTD[playerid][11] = CreatePlayerTextDraw(playerid,296.000000, 416.000000, "ld_grav:timer");
	PlayerTextDrawBackgroundColor(playerid,GwTD[playerid][11], 255);
	PlayerTextDrawFont(playerid,GwTD[playerid][11], 4);
	PlayerTextDrawLetterSize(playerid,GwTD[playerid][11], 0.500000, -1.549998);
	PlayerTextDrawColor(playerid,GwTD[playerid][11], -1);
	PlayerTextDrawSetOutline(playerid,GwTD[playerid][11], 0);
	PlayerTextDrawSetProportional(playerid,GwTD[playerid][11], 1);
	PlayerTextDrawSetShadow(playerid,GwTD[playerid][11], 1);
	PlayerTextDrawUseBox(playerid,GwTD[playerid][11], 1);
	PlayerTextDrawBoxColor(playerid,GwTD[playerid][11], 84215295);
	PlayerTextDrawTextSize(playerid,GwTD[playerid][11], 14.000000, 12.000000);

	GwTD[playerid][12] = CreatePlayerTextDraw(playerid,136.000000, 417.000000, "0 / 26");
	PlayerTextDrawBackgroundColor(playerid,GwTD[playerid][12], 255);
	PlayerTextDrawFont(playerid,GwTD[playerid][12], 1);
	PlayerTextDrawLetterSize(playerid,GwTD[playerid][12], 0.269999, 1.100000);
	PlayerTextDrawColor(playerid,GwTD[playerid][12], -1);
	PlayerTextDrawSetOutline(playerid,GwTD[playerid][12], 1);
	PlayerTextDrawSetProportional(playerid,GwTD[playerid][12], 1);

	GwTD[playerid][13] = CreatePlayerTextDraw(playerid,468.000000, 416.000000, "hud:radar_gangg");
	PlayerTextDrawBackgroundColor(playerid,GwTD[playerid][13], 255);
	PlayerTextDrawFont(playerid,GwTD[playerid][13], 4);
	PlayerTextDrawLetterSize(playerid,GwTD[playerid][13], 0.509998, -1.549998);
	PlayerTextDrawColor(playerid,GwTD[playerid][13], -1);
	PlayerTextDrawSetOutline(playerid,GwTD[playerid][13], 0);
	PlayerTextDrawSetProportional(playerid,GwTD[playerid][13], 1);
	PlayerTextDrawSetShadow(playerid,GwTD[playerid][13], 1);
	PlayerTextDrawUseBox(playerid,GwTD[playerid][13], 1);
	PlayerTextDrawBoxColor(playerid,GwTD[playerid][13], 84215295);
	PlayerTextDrawTextSize(playerid,GwTD[playerid][13], 11.000000, 12.000000);

	GwTD[playerid][14] = CreatePlayerTextDraw(playerid,170.000000, 416.000000, "hud:radar_gangn");
	PlayerTextDrawBackgroundColor(playerid,GwTD[playerid][14], 255);
	PlayerTextDrawFont(playerid,GwTD[playerid][14], 4);
	PlayerTextDrawLetterSize(playerid,GwTD[playerid][14], 0.479999, -2.449997);
	PlayerTextDrawColor(playerid,GwTD[playerid][14], -1);
	PlayerTextDrawSetOutline(playerid,GwTD[playerid][14], 0);
	PlayerTextDrawSetProportional(playerid,GwTD[playerid][14], 1);
	PlayerTextDrawSetShadow(playerid,GwTD[playerid][14], 1);
	PlayerTextDrawUseBox(playerid,GwTD[playerid][14], 1);
	PlayerTextDrawBoxColor(playerid,GwTD[playerid][14], 84215295);
	PlayerTextDrawTextSize(playerid,GwTD[playerid][14], 12.000000, 12.000000);

	GwTD[playerid][15] = CreatePlayerTextDraw(playerid,188.000000, 435.000000, "hud:radar_girlfriend");
	PlayerTextDrawBackgroundColor(playerid,GwTD[playerid][15], 255);
	PlayerTextDrawFont(playerid,GwTD[playerid][15], 4);
	PlayerTextDrawLetterSize(playerid,GwTD[playerid][15], 0.479999, -1.849997);
	PlayerTextDrawColor(playerid,GwTD[playerid][15], -1);
	PlayerTextDrawSetOutline(playerid,GwTD[playerid][15], 0);
	PlayerTextDrawSetProportional(playerid,GwTD[playerid][15], 1);
	PlayerTextDrawSetShadow(playerid,GwTD[playerid][15], 1);
	PlayerTextDrawUseBox(playerid,GwTD[playerid][15], 1);
	PlayerTextDrawBoxColor(playerid,GwTD[playerid][15], 84215295);
	PlayerTextDrawTextSize(playerid,GwTD[playerid][15], 10.000000, 10.000000);

	GwTD[playerid][16] = CreatePlayerTextDraw(playerid,451.000000, 435.000000, "hud:radar_girlfriend");
	PlayerTextDrawBackgroundColor(playerid,GwTD[playerid][16], 255);
	PlayerTextDrawFont(playerid,GwTD[playerid][16], 4);
	PlayerTextDrawLetterSize(playerid,GwTD[playerid][16], 0.479999, -1.849997);
	PlayerTextDrawColor(playerid,GwTD[playerid][16], -1);
	PlayerTextDrawSetOutline(playerid,GwTD[playerid][16], 0);
	PlayerTextDrawSetProportional(playerid,GwTD[playerid][16], 1);
	PlayerTextDrawSetShadow(playerid,GwTD[playerid][16], 1);
	PlayerTextDrawUseBox(playerid,GwTD[playerid][16], 1);
	PlayerTextDrawBoxColor(playerid,GwTD[playerid][16], 84215295);
	PlayerTextDrawTextSize(playerid,GwTD[playerid][16], 10.000000, 10.000000);

	GwTD[playerid][18] = CreatePlayerTextDraw(playerid,419.000000, 435.000000, "600");
	PlayerTextDrawBackgroundColor(playerid,GwTD[playerid][18], 255);
	PlayerTextDrawFont(playerid,GwTD[playerid][18], 1);
	PlayerTextDrawLetterSize(playerid,GwTD[playerid][18], 0.340000, 1.000000);
	PlayerTextDrawColor(playerid,GwTD[playerid][18], -1);
	PlayerTextDrawSetOutline(playerid,GwTD[playerid][18], 1);
	PlayerTextDrawSetProportional(playerid,GwTD[playerid][18], 1);

	GwTD[playerid][19] = CreatePlayerTextDraw(playerid,208.000000, 435.000000, "354");
	PlayerTextDrawBackgroundColor(playerid,GwTD[playerid][19], 255);
	PlayerTextDrawFont(playerid,GwTD[playerid][19], 1);
	PlayerTextDrawLetterSize(playerid,GwTD[playerid][19], 0.340000, 1.000000);
	PlayerTextDrawColor(playerid,GwTD[playerid][19], -1);
	PlayerTextDrawSetOutline(playerid,GwTD[playerid][19], 1);
	PlayerTextDrawSetProportional(playerid,GwTD[playerid][19], 1);

	GwTD[playerid][21] = CreatePlayerTextDraw(playerid,6.000000, 435.000000, "THE GANG NAM STYLE GANG OMG OMG");
	PlayerTextDrawBackgroundColor(playerid,GwTD[playerid][21], 255);
	PlayerTextDrawFont(playerid,GwTD[playerid][21], 1);
	PlayerTextDrawLetterSize(playerid,GwTD[playerid][21], 0.159999, 1.000000);
	PlayerTextDrawColor(playerid,GwTD[playerid][21], -1);
	PlayerTextDrawSetOutline(playerid,GwTD[playerid][21], 1);
	PlayerTextDrawSetProportional(playerid,GwTD[playerid][21], 1);

	GwTD[playerid][22] = CreatePlayerTextDraw(playerid,262.000000, 410.000000, "~b~8");
	PlayerTextDrawBackgroundColor(playerid,GwTD[playerid][22], 255);
	PlayerTextDrawFont(playerid,GwTD[playerid][22], 2);
	PlayerTextDrawLetterSize(playerid,GwTD[playerid][22], 0.539999, 1.600000);
	PlayerTextDrawColor(playerid,GwTD[playerid][22], -1);
	PlayerTextDrawSetOutline(playerid,GwTD[playerid][22], 1);
	PlayerTextDrawSetProportional(playerid,GwTD[playerid][22], 1);

	GwTD[playerid][24] = CreatePlayerTextDraw(playerid,252.000000, 423.000000, "Points                       Points");
	PlayerTextDrawBackgroundColor(playerid,GwTD[playerid][24], 150);
	PlayerTextDrawFont(playerid,GwTD[playerid][24], 2);
	PlayerTextDrawLetterSize(playerid,GwTD[playerid][24], 0.240000, 0.699999);
	PlayerTextDrawColor(playerid,GwTD[playerid][24], 50);
	PlayerTextDrawSetOutline(playerid,GwTD[playerid][24], 0);
	PlayerTextDrawSetProportional(playerid,GwTD[playerid][24], 1);
	PlayerTextDrawSetShadow(playerid,GwTD[playerid][24], 1);

	GwTD[playerid][25] = CreatePlayerTextDraw(playerid,463.000000, 413.000000, "LD_POKE:cd10d");
	PlayerTextDrawBackgroundColor(playerid,GwTD[playerid][25], 255);
	PlayerTextDrawFont(playerid,GwTD[playerid][25], 4);
	PlayerTextDrawLetterSize(playerid,GwTD[playerid][25], 0.500000, -1.549998);
	PlayerTextDrawColor(playerid,GwTD[playerid][25], 50);
	PlayerTextDrawSetOutline(playerid,GwTD[playerid][25], 0);
	PlayerTextDrawSetProportional(playerid,GwTD[playerid][25], 1);
	PlayerTextDrawSetShadow(playerid,GwTD[playerid][25], 1);
	PlayerTextDrawUseBox(playerid,GwTD[playerid][25], 1);
	PlayerTextDrawBoxColor(playerid,GwTD[playerid][25], 84215295);
	PlayerTextDrawTextSize(playerid,GwTD[playerid][25], 57.000000, 18.000000);

	GwTD[playerid][9] = CreatePlayerTextDraw(playerid,267.000000, 426.000000, "l             l");
	PlayerTextDrawBackgroundColor(playerid,GwTD[playerid][9], 842150500);
	PlayerTextDrawFont(playerid,GwTD[playerid][9], 1);
	PlayerTextDrawLetterSize(playerid,GwTD[playerid][9], 0.500000, 2.799998);
	PlayerTextDrawColor(playerid,GwTD[playerid][9], 1684300820);
	PlayerTextDrawSetOutline(playerid,GwTD[playerid][9], 0);
	PlayerTextDrawSetProportional(playerid,GwTD[playerid][9], 1);
	PlayerTextDrawSetShadow(playerid,GwTD[playerid][9], 1);

	GwTD[playerid][20] = CreatePlayerTextDraw(playerid,363.000000, 410.000000, "~g~8");
	PlayerTextDrawBackgroundColor(playerid,GwTD[playerid][20], 255);
	PlayerTextDrawFont(playerid,GwTD[playerid][20], 2);
	PlayerTextDrawLetterSize(playerid,GwTD[playerid][20], 0.539999, 1.600000);
	PlayerTextDrawColor(playerid,GwTD[playerid][20], -1);
	PlayerTextDrawSetOutline(playerid,GwTD[playerid][20], 1);
	PlayerTextDrawSetProportional(playerid,GwTD[playerid][20], 1);

	GwTD[playerid][17] = CreatePlayerTextDraw(playerid,520.000000, 435.000000, "THE GANG NAM STYLE GANG OMG OMG");
	PlayerTextDrawBackgroundColor(playerid,GwTD[playerid][17], 255);
	PlayerTextDrawFont(playerid,GwTD[playerid][17], 1);
	PlayerTextDrawLetterSize(playerid,GwTD[playerid][17], 0.159999, 1.000000);
	PlayerTextDrawColor(playerid,GwTD[playerid][17], -1);
	PlayerTextDrawSetOutline(playerid,GwTD[playerid][17], 1);
	PlayerTextDrawSetProportional(playerid,GwTD[playerid][17], 1);

	GwTD[playerid][23] = CreatePlayerTextDraw(playerid,482.000000, 417.000000, "0 / 26");
	PlayerTextDrawBackgroundColor(playerid,GwTD[playerid][23], 255);
	PlayerTextDrawFont(playerid,GwTD[playerid][23], 1);
	PlayerTextDrawLetterSize(playerid,GwTD[playerid][23], 0.259999, 1.100000);
	PlayerTextDrawColor(playerid,GwTD[playerid][23], -1);
	PlayerTextDrawSetOutline(playerid,GwTD[playerid][23], 1);
	PlayerTextDrawSetProportional(playerid,GwTD[playerid][23], 1);
Код:
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(1034) : error 010: invalid function or declaration
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(1046) : error 010: invalid function or declaration
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(1058) : error 010: invalid function or declaration
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(1070) : error 010: invalid function or declaration
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(1078) : error 010: invalid function or declaration
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(1086) : error 010: invalid function or declaration
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(1094) : error 010: invalid function or declaration
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(1102) : error 010: invalid function or declaration
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(1111) : error 010: invalid function or declaration
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(1124) : error 010: invalid function or declaration
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(1136) : error 010: invalid function or declaration
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(1148) : error 010: invalid function or declaration
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(1156) : error 010: invalid function or declaration
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(1168) : error 010: invalid function or declaration
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(1180) : error 010: invalid function or declaration
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(1192) : error 010: invalid function or declaration
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(1204) : error 010: invalid function or declaration
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(1212) : error 010: invalid function or declaration
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(1220) : error 010: invalid function or declaration
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(1228) : error 010: invalid function or declaration
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(1236) : error 010: invalid function or declaration
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(1245) : error 010: invalid function or declaration
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(1257) : error 010: invalid function or declaration
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(1266) : error 010: invalid function or declaration
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(1274) : error 010: invalid function or declaration
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(1282) : error 010: invalid function or declaration

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


26 Errors.
Reply
#2

Move this code to "OnPlayerConnect"
Код:
public OnPlayerConnect(playerid)
{
 ... // your textdraws
}
Reply
#3

Where do you put them ?

P.S It's need to be moved under OnGameModeInit and use TextDrawShowForPlayer(playerid, textdrawname0);
Reply
#4

Quote:
Originally Posted by Tadas
Посмотреть сообщение
Where do you put them ?

P.S It's need to be putted under OnGameModeInit
It can't be under OnGameModeInit, he needs the playerid, he uses "GwTD[playerid][0]"
Reply
#5

Quote:
Originally Posted by Conradus
Посмотреть сообщение
It can't be under OnGameModeInit, he needs the playerid, he uses "GwTD[playerid][0]"
Oh yeah
Reply
#6

Код:
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(6141) : error 017: undefined symbol "GwTD"
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(6141) : error 017: undefined symbol "playerid"
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(6141) : error 029: invalid expression, assumed zero
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(6141) : fatal error 107: too many error messages on one line

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


4 Errors.
this is line 6141

Код:
GwTD[playerid][0] = CreatePlayerTextDraw(playerid,677.000000, 451.000000, "_");
Reply
#7

Bumb!!
Reply
#8

Try to do like that:
as example put these codes:
pawn Код:
//On top of your script
new Text:GwTD0;
//Under OnGameModeInit
GwTD0 = CreatePlayerTextDraw(playerid,677.000000, 451.000000, "_");
    PlayerTextDrawBackgroundColor(playerid,GwTD0, 255);
    PlayerTextDrawFont(playerid,GwTD0, 1);
    PlayerTextDrawLetterSize(playerid,GwTD0, 0.500000, -2.549998);
    PlayerTextDrawColor(playerid,GwTD0, -1);
    PlayerTextDrawSetOutline(playerid,GwTD0, 0);
    PlayerTextDrawSetProportional(playerid,GwTD0, 1);
    PlayerTextDrawSetShadow(playerid,GwTD0, 1);
    PlayerTextDrawUseBox(playerid,GwTD0, 1);
    PlayerTextDrawBoxColor(playerid,GwTD0, 84215295);
    PlayerTextDrawTextSize(playerid,GwTD0, -23.000000, 0.000000);
//And as example under OnPlayerConnect
TextDrawShowForPlayer(playerid, GwTD0);
And if it works do it with others textdraws
Reply
#9

Quote:
Originally Posted by Tadas
Посмотреть сообщение
Try to do like that:
as example put these codes:
pawn Код:
//On top of your script
new Text:GwTD0;
//Under OnGameModeInit
GwTD0 = CreatePlayerTextDraw(playerid,677.000000, 451.000000, "_");
    PlayerTextDrawBackgroundColor(playerid,GwTD0, 255);
    PlayerTextDrawFont(playerid,GwTD0, 1);
    PlayerTextDrawLetterSize(playerid,GwTD0, 0.500000, -2.549998);
    PlayerTextDrawColor(playerid,GwTD0, -1);
    PlayerTextDrawSetOutline(playerid,GwTD0, 0);
    PlayerTextDrawSetProportional(playerid,GwTD0, 1);
    PlayerTextDrawSetShadow(playerid,GwTD0, 1);
    PlayerTextDrawUseBox(playerid,GwTD0, 1);
    PlayerTextDrawBoxColor(playerid,GwTD0, 84215295);
    PlayerTextDrawTextSize(playerid,GwTD0, -23.000000, 0.000000);
//And as example under OnPlayerConnect
TextDrawShowForPlayer(playerid, GwTD0);
And if it works do it with others textdraws
this is just bound to fail.
we are dealing with player-textdraws, the way you declared the var
Код:
new Text:GwTD0;
is jsut wrong, it should be
Код:
new PlayerText:GwTD0[MAX_PLAYERS];

now that aside...

Quote:
Originally Posted by VanSiera
Посмотреть сообщение
Код:
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(6141) : error 017: undefined symbol "GwTD"
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(6141) : error 017: undefined symbol "playerid"
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(6141) : error 029: invalid expression, assumed zero
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(6141) : fatal error 107: too many error messages on one line

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


4 Errors.
this is line 6141

Код:
GwTD[playerid][0] = CreatePlayerTextDraw(playerid,677.000000, 451.000000, "_");
just what others have said before,
player-textdraws are to be created in OnPlayerConnect.

So you have to move your code to OnPlayerConnect

also, about undefined symbol "GwTD"
i assume it's supposed to be a global var for the textdraws.
it should be created at the top of your script, outside of everything, global.

pawn Код:
new PlayerText:GwTD[MAX_PLAYERS][YOUR_SIZE_HERE]
Reply
#10

use it under onplayerconnect?
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)