Why is my code so fucked up?
#1

Why the fuck do I get undefined symbol on PlayerTextDraw....

Код:
C:\Users\andrei\Desktop\Scripting SA-MP\Basic RP Script Scratch FIX\gamemodes\U1.pwn(630) : error 017: undefined symbol "PlayerTextDrawLetterSize"
C:\Users\andrei\Desktop\Scripting SA-MP\Basic RP Script Scratch FIX\gamemodes\U1.pwn(631) : error 017: undefined symbol "PlayerTextDrawTextSize"
C:\Users\andrei\Desktop\Scripting SA-MP\Basic RP Script Scratch FIX\gamemodes\U1.pwn(632) : error 017: undefined symbol "PlayerTextDrawAlignment"
C:\Users\andrei\Desktop\Scripting SA-MP\Basic RP Script Scratch FIX\gamemodes\U1.pwn(633) : error 017: undefined symbol "PlayerTextDrawColor"
C:\Users\andrei\Desktop\Scripting SA-MP\Basic RP Script Scratch FIX\gamemodes\U1.pwn(634) : error 017: undefined symbol "PlayerTextDrawUseBox"
C:\Users\andrei\Desktop\Scripting SA-MP\Basic RP Script Scratch FIX\gamemodes\U1.pwn(635) : error 017: undefined symbol "PlayerTextDrawBoxColor"
C:\Users\andrei\Desktop\Scripting SA-MP\Basic RP Script Scratch FIX\gamemodes\U1.pwn(636) : error 017: undefined symbol "PlayerTextDrawSetShadow"
C:\Users\andrei\Desktop\Scripting SA-MP\Basic RP Script Scratch FIX\gamemodes\U1.pwn(637) : error 017: undefined symbol "PlayerTextDrawSetOutline"
C:\Users\andrei\Desktop\Scripting SA-MP\Basic RP Script Scratch FIX\gamemodes\U1.pwn(638) : error 017: undefined symbol "PlayerTextDrawFont"
C:\Users\andrei\Desktop\Scripting SA-MP\Basic RP Script Scratch FIX\gamemodes\U1.pwn(640) : error 017: undefined symbol "CreatePlayerTextDraw"

Код:
loginscreen[0][playerid] = CreatePlayerTextDraw(playerid, 174.415802, 6.166666, "usebox");
	PlayerTextDrawLetterSize(playerid, loginscreen[0][playerid], 0.000000, 47.970371);
	PlayerTextDrawTextSize(playerid, loginscreen[0][playerid], -1.062957, 0.000000);
	PlayerTextDrawAlignment(playerid, loginscreen[0][playerid], 1);
	PlayerTextDrawColor(playerid, loginscreen[0][playerid], 0);
	PlayerTextDrawUseBox(playerid, loginscreen[0][playerid], true);
	PlayerTextDrawBoxColor(playerid, loginscreen[0][playerid], 102);
	PlayerTextDrawSetShadow(playerid, loginscreen[0][playerid], 0);
	PlayerTextDrawSetOutline(playerid, loginscreen[0][playerid], 0);
	PlayerTextDrawFont(playerid, loginscreen[0][playerid], 0);

	loginscreen[1][playerid] = CreatePlayerTextDraw(playerid, 25.768669, 56.583335, "SA:MP:");
	PlayerTextDrawLetterSize(playerid, loginscreen[1][playerid], 0.449999, 1.600000);
	PlayerTextDrawAlignment(playerid, loginscreen[1][playerid], 1);
	PlayerTextDrawColor(playerid, loginscreen[1][playerid], -1);
	PlayerTextDrawSetShadow(playerid, loginscreen[1][playerid], 0);
	PlayerTextDrawSetOutline(playerid, loginscreen[1][playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, loginscreen[1][playerid], 51);
	PlayerTextDrawFont(playerid, loginscreen[1][playerid], 1);
	PlayerTextDrawSetProportional(playerid, loginscreen[1][playerid], 1);

	loginscreen[2][playerid] = CreatePlayerTextDraw(playerid, 83.865356, 54.833374, "Reborn");
	PlayerTextDrawLetterSize(playerid, loginscreen[2][playerid], 0.457026, 2.124999);
	PlayerTextDrawTextSize(playerid, loginscreen[2][playerid], 149.926773, -1210.417236);
	PlayerTextDrawAlignment(playerid, loginscreen[2][playerid], 1);
	PlayerTextDrawColor(playerid, loginscreen[2][playerid], -1523963137);
	PlayerTextDrawSetShadow(playerid, loginscreen[2][playerid], 0);
	PlayerTextDrawSetOutline(playerid, loginscreen[2][playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, loginscreen[2][playerid], 51);
	PlayerTextDrawFont(playerid, loginscreen[2][playerid], 1);
	PlayerTextDrawSetProportional(playerid, loginscreen[2][playerid], 1);

	loginscreen[3][playerid] = CreatePlayerTextDraw(playerid, 50.600296, 83.416687, "RPG");
	PlayerTextDrawLetterSize(playerid, loginscreen[3][playerid], 0.782648, 3.991663);
	PlayerTextDrawAlignment(playerid, loginscreen[3][playerid], 1);
	PlayerTextDrawColor(playerid, loginscreen[3][playerid], -1);
	PlayerTextDrawSetShadow(playerid, loginscreen[3][playerid], 0);
	PlayerTextDrawSetOutline(playerid, loginscreen[3][playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, loginscreen[3][playerid], 51);
	PlayerTextDrawFont(playerid, loginscreen[3][playerid], 2);
	PlayerTextDrawSetProportional(playerid, loginscreen[3][playerid], 1);

	loginscreen[4][playerid] = CreatePlayerTextDraw(playerid, 174.884338, 5.000000, "usebox");
	PlayerTextDrawLetterSize(playerid, loginscreen[4][playerid], 0.000000, 48.099998);
	PlayerTextDrawTextSize(playerid, loginscreen[4][playerid], 166.199127, 0.000000);
	PlayerTextDrawAlignment(playerid, loginscreen[4][playerid], 1);
	PlayerTextDrawColor(playerid, loginscreen[4][playerid], 0);
	PlayerTextDrawUseBox(playerid, loginscreen[4][playerid], true);
	PlayerTextDrawBoxColor(playerid, loginscreen[4][playerid], -16776961);
	PlayerTextDrawSetShadow(playerid, loginscreen[4][playerid], 0);
	PlayerTextDrawSetOutline(playerid, loginscreen[4][playerid], 0);
	PlayerTextDrawFont(playerid, loginscreen[4][playerid], 0);

	loginscreen[5][playerid] = CreatePlayerTextDraw(playerid, 171.604675, 2.666666, "usebox");
	PlayerTextDrawLetterSize(playerid, loginscreen[5][playerid], 0.000000, -0.446296);
	PlayerTextDrawTextSize(playerid, loginscreen[5][playerid], -0.125915, 0.000000);
	PlayerTextDrawAlignment(playerid, loginscreen[5][playerid], 1);
	PlayerTextDrawColor(playerid, loginscreen[5][playerid], 0);
	PlayerTextDrawUseBox(playerid, loginscreen[5][playerid], true);
	PlayerTextDrawBoxColor(playerid, loginscreen[5][playerid], -16776961);
	PlayerTextDrawSetShadow(playerid, loginscreen[5][playerid], 0);
	PlayerTextDrawSetOutline(playerid, loginscreen[5][playerid], 0);
	PlayerTextDrawFont(playerid, loginscreen[5][playerid], 0);

	loginscreen[6][playerid] = CreatePlayerTextDraw(playerid, 5.748167, 5.583333, "usebox");
	PlayerTextDrawLetterSize(playerid, loginscreen[6][playerid], 0.000000, 48.942592);
	PlayerTextDrawTextSize(playerid, loginscreen[6][playerid], 1.279646, 0.000000);
	PlayerTextDrawAlignment(playerid, loginscreen[6][playerid], 1);
	PlayerTextDrawColor(playerid, loginscreen[6][playerid], 0);
	PlayerTextDrawUseBox(playerid, loginscreen[6][playerid], true);
	PlayerTextDrawBoxColor(playerid, loginscreen[6][playerid], -16776961);
	PlayerTextDrawSetShadow(playerid, loginscreen[6][playerid], 0);
	PlayerTextDrawSetOutline(playerid, loginscreen[6][playerid], 0);
	PlayerTextDrawFont(playerid, loginscreen[6][playerid], 0);

	loginscreen[7][playerid] = CreatePlayerTextDraw(playerid, 171.604675, 155.500000, "usebox");
	PlayerTextDrawLetterSize(playerid, loginscreen[7][playerid], 0.000000, -1.159260);
	PlayerTextDrawTextSize(playerid, loginscreen[7][playerid], 1.748168, 0.000000);
	PlayerTextDrawAlignment(playerid, loginscreen[7][playerid], 1);
	PlayerTextDrawColor(playerid, loginscreen[7][playerid], 0);
	PlayerTextDrawUseBox(playerid, loginscreen[7][playerid], true);
	PlayerTextDrawBoxColor(playerid, loginscreen[7][playerid], 102);
	PlayerTextDrawSetShadow(playerid, loginscreen[7][playerid], 0);
	PlayerTextDrawSetOutline(playerid, loginscreen[7][playerid], 0);
	PlayerTextDrawFont(playerid, loginscreen[7][playerid], 0);

	loginscreen[8][playerid] = CreatePlayerTextDraw(playerid, 59.970718, 253.166732, "LOGIN");
	PlayerTextDrawLetterSize(playerid, loginscreen[8][playerid], 0.449999, 1.600000);
	PlayerTextDrawAlignment(playerid, loginscreen[8][playerid], 1);
	PlayerTextDrawColor(playerid, loginscreen[8][playerid], -1);
	PlayerTextDrawSetShadow(playerid, loginscreen[8][playerid], 0);
	PlayerTextDrawSetOutline(playerid, loginscreen[8][playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, loginscreen[8][playerid], 51);
	PlayerTextDrawFont(playerid, loginscreen[8][playerid], 1);
	PlayerTextDrawSetProportional(playerid, loginscreen[8][playerid], 1);
	PlayerTextDrawSetSelectable(playerid, loginscreen[8][playerid], true);

	loginscreen[9][playerid] = CreatePlayerTextDraw(playerid, 51.068817, 285.833282, "REGISTER");
	PlayerTextDrawLetterSize(playerid, loginscreen[9][playerid], 0.449999, 1.600000);
	PlayerTextDrawAlignment(playerid, loginscreen[9][playerid], 1);
	PlayerTextDrawColor(playerid, loginscreen[9][playerid], -1);
	PlayerTextDrawSetShadow(playerid, loginscreen[9][playerid], 0);
	PlayerTextDrawSetOutline(playerid, loginscreen[9][playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, loginscreen[9][playerid], 51);
	PlayerTextDrawFont(playerid, loginscreen[9][playerid], 1);
	PlayerTextDrawSetProportional(playerid, loginscreen[9][playerid], 1);
	PlayerTextDrawSetSelectable(playerid, loginscreen[9][playerid], true);

	loginscreen[10][playerid] = CreatePlayerTextDraw(playerid, 150.863861, 141.166625, "by dot32 Team");
	PlayerTextDrawLetterSize(playerid, loginscreen[10][playerid], 0.137963, 1.115831);
	PlayerTextDrawAlignment(playerid, loginscreen[10][playerid], 2);
	PlayerTextDrawColor(playerid, loginscreen[10][playerid], -1523963137);
	PlayerTextDrawSetShadow(playerid, loginscreen[10][playerid], 0);
	PlayerTextDrawSetOutline(playerid, loginscreen[10][playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, loginscreen[10][playerid], 51);
	PlayerTextDrawFont(playerid, loginscreen[10][playerid], 1);
	PlayerTextDrawSetProportional(playerid, loginscreen[10][playerid], 1);

	loginscreen[11][playerid] = CreatePlayerTextDraw(playerid, 585.777404, 137.416656, "usebox");
	PlayerTextDrawLetterSize(playerid, loginscreen[11][playerid], 0.000000, 21.559455);
	PlayerTextDrawTextSize(playerid, loginscreen[11][playerid], 281.455352, 0.000000);
	PlayerTextDrawAlignment(playerid, loginscreen[11][playerid], 1);
	PlayerTextDrawColor(playerid, loginscreen[11][playerid], 0);
	PlayerTextDrawUseBox(playerid, loginscreen[11][playerid], true);
	PlayerTextDrawBoxColor(playerid, loginscreen[11][playerid], 102);
	PlayerTextDrawSetShadow(playerid, loginscreen[11][playerid], 0);
	PlayerTextDrawSetOutline(playerid, loginscreen[11][playerid], 0);
	PlayerTextDrawFont(playerid, loginscreen[11][playerid], 0);

	loginscreen[12][playerid] = CreatePlayerTextDraw(playerid, 286.860931, 138.000000, "usebox");
	PlayerTextDrawLetterSize(playerid, loginscreen[12][playerid], 0.000000, 21.461107);
	PlayerTextDrawTextSize(playerid, loginscreen[12][playerid], 282.392395, 0.000000);
	PlayerTextDrawAlignment(playerid, loginscreen[12][playerid], 1);
	PlayerTextDrawColor(playerid, loginscreen[12][playerid], 0);
	PlayerTextDrawUseBox(playerid, loginscreen[12][playerid], true);
	PlayerTextDrawBoxColor(playerid, loginscreen[12][playerid], -1523963137);
	PlayerTextDrawSetShadow(playerid, loginscreen[12][playerid], 0);
	PlayerTextDrawSetOutline(playerid, loginscreen[12][playerid], 0);
	PlayerTextDrawFont(playerid, loginscreen[12][playerid], 0);

	loginscreen[13][playerid] = CreatePlayerTextDraw(playerid, 585.308959, 138.000000, "usebox");
	PlayerTextDrawLetterSize(playerid, loginscreen[13][playerid], 0.000000, 21.461111);
	PlayerTextDrawTextSize(playerid, loginscreen[13][playerid], 580.840454, 0.000000);
	PlayerTextDrawAlignment(playerid, loginscreen[13][playerid], 1);
	PlayerTextDrawColor(playerid, loginscreen[13][playerid], 0);
	PlayerTextDrawUseBox(playerid, loginscreen[13][playerid], true);
	PlayerTextDrawBoxColor(playerid, loginscreen[13][playerid], -1523963137);
	PlayerTextDrawSetShadow(playerid, loginscreen[13][playerid], 0);
	PlayerTextDrawSetOutline(playerid, loginscreen[13][playerid], 0);
	PlayerTextDrawFont(playerid, loginscreen[13][playerid], 0);

	loginscreen[14][playerid] = CreatePlayerTextDraw(playerid, 354.670562, 136.500000, "ANNOUNCEMENTS:");
	PlayerTextDrawLetterSize(playerid, loginscreen[14][playerid], 0.449999, 1.600000);
	PlayerTextDrawAlignment(playerid, loginscreen[14][playerid], 2);
	PlayerTextDrawColor(playerid, loginscreen[14][playerid], -1);
	PlayerTextDrawSetShadow(playerid, loginscreen[14][playerid], 0);
	PlayerTextDrawSetOutline(playerid, loginscreen[14][playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, loginscreen[14][playerid], 51);
	PlayerTextDrawFont(playerid, loginscreen[14][playerid], 3);
	PlayerTextDrawSetProportional(playerid, loginscreen[14][playerid], 1);

	loginscreen[15][playerid] = CreatePlayerTextDraw(playerid, 583.903381, 157.833343, "usebox");
	PlayerTextDrawLetterSize(playerid, loginscreen[15][playerid], 0.000000, -1.094444);
	PlayerTextDrawTextSize(playerid, loginscreen[15][playerid], 283.797973, 0.000000);
	PlayerTextDrawAlignment(playerid, loginscreen[15][playerid], 1);
	PlayerTextDrawColor(playerid, loginscreen[15][playerid], 0);
	PlayerTextDrawUseBox(playerid, loginscreen[15][playerid], true);
	PlayerTextDrawBoxColor(playerid, loginscreen[15][playerid], -1523963137);
	PlayerTextDrawSetShadow(playerid, loginscreen[15][playerid], 0);
	PlayerTextDrawSetOutline(playerid, loginscreen[15][playerid], 0);
	PlayerTextDrawFont(playerid, loginscreen[15][playerid], 0);

	loginscreen[16][playerid] = CreatePlayerTextDraw(playerid, 561.288696, 135.333404, "LD_CHAT:badchat");
	PlayerTextDrawLetterSize(playerid, loginscreen[16][playerid], 0.000000, 0.000000);
	PlayerTextDrawTextSize(playerid, loginscreen[16][playerid], 17.335281, 15.750005);
	PlayerTextDrawAlignment(playerid, loginscreen[16][playerid], 1);
	PlayerTextDrawColor(playerid, loginscreen[16][playerid], -1);
	PlayerTextDrawSetShadow(playerid, loginscreen[16][playerid], 0);
	PlayerTextDrawSetOutline(playerid, loginscreen[16][playerid], 0);
	PlayerTextDrawFont(playerid, loginscreen[16][playerid], 4);

	loginscreen[17][playerid] = CreatePlayerTextDraw(playerid, 288.608978, 167.416732, "LD_DUAL:shoot");
	PlayerTextDrawLetterSize(playerid, loginscreen[17][playerid], 0.000000, 0.000000);
	PlayerTextDrawTextSize(playerid, loginscreen[17][playerid], 4.685194, 5.833321);
	PlayerTextDrawAlignment(playerid, loginscreen[17][playerid], 1);
	PlayerTextDrawColor(playerid, loginscreen[17][playerid], -1);
	PlayerTextDrawSetShadow(playerid, loginscreen[17][playerid], 0);
	PlayerTextDrawSetOutline(playerid, loginscreen[17][playerid], 0);
	PlayerTextDrawFont(playerid, loginscreen[17][playerid], 4);

	loginscreen[18][playerid] = CreatePlayerTextDraw(playerid, 288.203399, 201.083389, "LD_DUAL:shoot");
	PlayerTextDrawLetterSize(playerid, loginscreen[18][playerid], 0.000000, 0.000000);
	PlayerTextDrawTextSize(playerid, loginscreen[18][playerid], 4.685194, 5.833321);
	PlayerTextDrawAlignment(playerid, loginscreen[18][playerid], 1);
	PlayerTextDrawColor(playerid, loginscreen[18][playerid], -1);
	PlayerTextDrawSetShadow(playerid, loginscreen[18][playerid], 0);
	PlayerTextDrawSetOutline(playerid, loginscreen[18][playerid], 0);
	PlayerTextDrawFont(playerid, loginscreen[18][playerid], 4);

	loginscreen[19][playerid] = CreatePlayerTextDraw(playerid, 288.266326, 238.833389, "LD_DUAL:shoot");
	PlayerTextDrawLetterSize(playerid, loginscreen[19][playerid], 0.000000, 0.000000);
	PlayerTextDrawTextSize(playerid, loginscreen[19][playerid], 4.685194, 5.833321);
	PlayerTextDrawAlignment(playerid, loginscreen[19][playerid], 1);
	PlayerTextDrawColor(playerid, loginscreen[19][playerid], -1);
	PlayerTextDrawSetShadow(playerid, loginscreen[19][playerid], 0);
	PlayerTextDrawSetOutline(playerid, loginscreen[19][playerid], 0);
	PlayerTextDrawFont(playerid, loginscreen[19][playerid], 4);

	loginscreen[20][playerid] = CreatePlayerTextDraw(playerid, 297.979309, 165.666717, "Test first announcement.");
	PlayerTextDrawLetterSize(playerid, loginscreen[20][playerid], 0.260717, 0.853331);
	PlayerTextDrawAlignment(playerid, loginscreen[20][playerid], 1);
	PlayerTextDrawColor(playerid, loginscreen[20][playerid], -1);
	PlayerTextDrawSetShadow(playerid, loginscreen[20][playerid], 0);
	PlayerTextDrawSetOutline(playerid, loginscreen[20][playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, loginscreen[20][playerid], 51);
	PlayerTextDrawFont(playerid, loginscreen[20][playerid], 2);
	PlayerTextDrawSetProportional(playerid, loginscreen[20][playerid], 1);

	loginscreen[21][playerid] = CreatePlayerTextDraw(playerid, 298.510742, 198.750030, "Test second announcement.");
	PlayerTextDrawLetterSize(playerid, loginscreen[21][playerid], 0.260717, 0.853331);
	PlayerTextDrawAlignment(playerid, loginscreen[21][playerid], 1);
	PlayerTextDrawColor(playerid, loginscreen[21][playerid], -1);
	PlayerTextDrawSetShadow(playerid, loginscreen[21][playerid], 0);
	PlayerTextDrawSetOutline(playerid, loginscreen[21][playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, loginscreen[21][playerid], 51);
	PlayerTextDrawFont(playerid, loginscreen[21][playerid], 2);
	PlayerTextDrawSetProportional(playerid, loginscreen[21][playerid], 1);

	loginscreen[22][playerid] = CreatePlayerTextDraw(playerid, 298.573669, 235.916687, "Test third announcement.");
	PlayerTextDrawLetterSize(playerid, loginscreen[22][playerid], 0.260717, 0.853331);
	PlayerTextDrawAlignment(playerid, loginscreen[22][playerid], 1);
	PlayerTextDrawColor(playerid, loginscreen[22][playerid], -1);
	PlayerTextDrawSetShadow(playerid, loginscreen[22][playerid], 0);
	PlayerTextDrawSetOutline(playerid, loginscreen[22][playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, loginscreen[22][playerid], 51);
	PlayerTextDrawFont(playerid, loginscreen[22][playerid], 2);
	PlayerTextDrawSetProportional(playerid, loginscreen[22][playerid], 1);
Reply
#2

Bad scripter ! fix it ! :v -.*
Reply
#3

Quote:
Originally Posted by ItzzWesty
Посмотреть сообщение
Bad scripter ! fix it ! :v -.*
Can you point out the mistake in that code?
Reply
#4

Where did you put those ?
Reply
#5

Quote:
Originally Posted by ThatFag
Посмотреть сообщение
Where did you put those ?
Onplayerconnect



#EDIT, my players.inc was the issue.
Reply
#6

While making threads give it a suitable title not something that express your feeling.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)