12.01.2019, 00:03
Hello, when i give this comand below, he return me in game "Invalid Command" and in the server log, show something very strange, and i dont know why.
Command:
Error on Server Log
The function, I do not think that's the problem, but if is, here it is.
My Variables:
Someone can help me?
Command:
PHP код:
CMD:top(playerid)
{
LoadTOPTEN(playerid);
SendClientMessage(playerid, DebugColor, "Feito");
return 1;
}
Код:
[debug] Run time error 4: "Array index out of bounds" [debug] Attempted to read/write array element at index 14 in array of size 14 [debug] AMX backtrace: [debug] #0 0008d3e0 in ?? (0) from ScavengeSurvive.amx [debug] #1 00103fec in public cmd_top (0, 367595096) from ScavengeSurvive.amx [debug] #2 native CallLocalFunction () from samp-server.exe [debug] #3 000e1384 in ?? (0, 367595076) from ScavengeSurvive.amx [debug] #4 0000e798 in public OnPlayerCommandText (0, 367595076) from ScavengeSurvive.amx
PHP код:
LoadTOPTEN(playerid)
{
CaixasCTT[0] = TextDrawCreate(453.500000, 165.766662, "usebox");
TextDrawLetterSize(CaixasCTT[0], 0.000000, 19.426538);
TextDrawTextSize(CaixasCTT[0], 191.500000, 0.000000);
TextDrawAlignment(CaixasCTT[0], 1);
TextDrawColor(CaixasCTT[0], 0);
TextDrawUseBox(CaixasCTT[0], true);
TextDrawBoxColor(CaixasCTT[0], 102);
TextDrawSetShadow(CaixasCTT[0], 0);
TextDrawSetOutline(CaixasCTT[0], 0);
TextDrawFont(CaixasCTT[0], 0);
CaixasCTT[2] = TextDrawCreate(453.500000, 165.766662, "usebox");
TextDrawLetterSize(CaixasCTT[2], 0.000000, -0.123457);
TextDrawTextSize(CaixasCTT[2], 191.500000, 0.000000);
TextDrawAlignment(CaixasCTT[2], 1);
TextDrawColor(CaixasCTT[2], 0);
TextDrawUseBox(CaixasCTT[2], true);
TextDrawBoxColor(CaixasCTT[2], 65316);
TextDrawSetShadow(CaixasCTT[2], 0);
TextDrawSetOutline(CaixasCTT[2], 0);
TextDrawFont(CaixasCTT[2], 0);
CaixasCTT[3] = TextDrawCreate(452.500000, 185.677764, "usebox");
TextDrawLetterSize(CaixasCTT[3], 0.000000, -0.454938);
TextDrawTextSize(CaixasCTT[3], 191.500000, 0.000000);
TextDrawAlignment(CaixasCTT[3], 1);
TextDrawColor(CaixasCTT[3], -1);
TextDrawUseBox(CaixasCTT[3], true);
TextDrawBoxColor(CaixasCTT[3], -227);
TextDrawSetShadow(CaixasCTT[3], 0);
TextDrawSetOutline(CaixasCTT[3], 0);
TextDrawFont(CaixasCTT[3], 0);
CaixasCTT[4] = TextDrawCreate(452.000000, 207.833343, "usebox");
TextDrawLetterSize(CaixasCTT[4], 0.000000, -0.454938);
TextDrawTextSize(CaixasCTT[4], 191.000000, 0.000000);
TextDrawAlignment(CaixasCTT[4], 1);
TextDrawColor(CaixasCTT[4], -1);
TextDrawUseBox(CaixasCTT[4], true);
TextDrawBoxColor(CaixasCTT[4], -227);
TextDrawSetShadow(CaixasCTT[4], 0);
TextDrawSetOutline(CaixasCTT[4], 0);
TextDrawFont(CaixasCTT[4], 0);
CaixasCTT[5] = TextDrawCreate(453.500000, 226.500030, "usebox");
TextDrawLetterSize(CaixasCTT[5], 0.000000, -0.454938);
TextDrawTextSize(CaixasCTT[5], 191.500000, 0.000000);
TextDrawAlignment(CaixasCTT[5], 1);
TextDrawColor(CaixasCTT[5], -1);
TextDrawUseBox(CaixasCTT[5], true);
TextDrawBoxColor(CaixasCTT[5], -227);
TextDrawSetShadow(CaixasCTT[5], 0);
TextDrawSetOutline(CaixasCTT[5], 0);
TextDrawFont(CaixasCTT[5], 0);
CaixasCTT[6] = TextDrawCreate(454.000000, 244.544494, "usebox");
TextDrawLetterSize(CaixasCTT[6], 0.000000, -0.454938);
TextDrawTextSize(CaixasCTT[6], 192.000000, 0.000000);
TextDrawAlignment(CaixasCTT[6], 1);
TextDrawColor(CaixasCTT[6], -1);
TextDrawUseBox(CaixasCTT[6], true);
TextDrawBoxColor(CaixasCTT[6], -227);
TextDrawSetShadow(CaixasCTT[6], 0);
TextDrawSetOutline(CaixasCTT[6], 0);
TextDrawFont(CaixasCTT[6], 0);
CaixasCTT[7] = TextDrawCreate(453.500000, 258.233337, "usebox");
TextDrawLetterSize(CaixasCTT[7], 0.000000, -0.454938);
TextDrawTextSize(CaixasCTT[7], 191.500000, 0.000000);
TextDrawAlignment(CaixasCTT[7], 1);
TextDrawColor(CaixasCTT[7], -1);
TextDrawUseBox(CaixasCTT[7], true);
TextDrawBoxColor(CaixasCTT[7], -227);
TextDrawSetShadow(CaixasCTT[7], 0);
TextDrawSetOutline(CaixasCTT[7], 0);
TextDrawFont(CaixasCTT[7], 0);
CaixasCTT[8] = TextDrawCreate(453.500000, 271.922241, "usebox");
TextDrawLetterSize(CaixasCTT[8], 0.000000, -0.454938);
TextDrawTextSize(CaixasCTT[8], 191.500000, 0.000000);
TextDrawAlignment(CaixasCTT[8], 1);
TextDrawColor(CaixasCTT[8], -1);
TextDrawUseBox(CaixasCTT[8], true);
TextDrawBoxColor(CaixasCTT[8], -227);
TextDrawSetShadow(CaixasCTT[8], 0);
TextDrawSetOutline(CaixasCTT[8], 0);
TextDrawFont(CaixasCTT[8], 0);
CaixasCTT[9] = TextDrawCreate(453.500000, 285.611145, "usebox");
TextDrawLetterSize(CaixasCTT[9], 0.000000, -0.454938);
TextDrawTextSize(CaixasCTT[9], 191.500000, 0.000000);
TextDrawAlignment(CaixasCTT[9], 1);
TextDrawColor(CaixasCTT[9], -1);
TextDrawUseBox(CaixasCTT[9], true);
TextDrawBoxColor(CaixasCTT[9], -227);
TextDrawSetShadow(CaixasCTT[9], 0);
TextDrawSetOutline(CaixasCTT[9], 0);
TextDrawFont(CaixasCTT[9], 0);
CaixasCTT[10] = TextDrawCreate(453.500000, 300.544494, "usebox");
TextDrawLetterSize(CaixasCTT[10], 0.000000, -0.454938);
TextDrawTextSize(CaixasCTT[10], 191.500000, 0.000000);
TextDrawAlignment(CaixasCTT[10], 1);
TextDrawColor(CaixasCTT[10], -1);
TextDrawUseBox(CaixasCTT[10], true);
TextDrawBoxColor(CaixasCTT[10], -227);
TextDrawSetShadow(CaixasCTT[10], 0);
TextDrawSetOutline(CaixasCTT[10], 0);
TextDrawFont(CaixasCTT[10], 0);
CaixasCTT[11] = TextDrawCreate(453.500000, 315.477844, "usebox");
TextDrawLetterSize(CaixasCTT[11], 0.000000, -0.454938);
TextDrawTextSize(CaixasCTT[11], 191.500000, 0.000000);
TextDrawAlignment(CaixasCTT[11], 1);
TextDrawColor(CaixasCTT[11], -1);
TextDrawUseBox(CaixasCTT[11], true);
TextDrawBoxColor(CaixasCTT[11], -227);
TextDrawSetShadow(CaixasCTT[11], 0);
TextDrawSetOutline(CaixasCTT[11], 0);
TextDrawFont(CaixasCTT[11], 0);
CaixasCTT[12] = TextDrawCreate(454.000000, 331.033386, "usebox");
TextDrawLetterSize(CaixasCTT[12], 0.000000, -0.454938);
TextDrawTextSize(CaixasCTT[12], 192.000000, 0.000000);
TextDrawAlignment(CaixasCTT[12], 1);
TextDrawColor(CaixasCTT[12], -1);
TextDrawUseBox(CaixasCTT[12], true);
TextDrawBoxColor(CaixasCTT[12], -227);
TextDrawSetShadow(CaixasCTT[12], 0);
TextDrawSetOutline(CaixasCTT[12], 0);
TextDrawFont(CaixasCTT[12], 0);
ApText[0] = TextDrawCreate(211.000000, 171.733322, "NOME");
TextDrawLetterSize(ApText[0], 0.200999, 0.759999);
TextDrawAlignment(ApText[0], 1);
TextDrawColor(ApText[0], -1);
TextDrawSetShadow(ApText[0], 0);
TextDrawSetOutline(ApText[0], 1);
TextDrawBackgroundColor(ApText[0], 51);
TextDrawFont(ApText[0], 2);
TextDrawSetProportional(ApText[0], 1);
ApText[1] = TextDrawCreate(306.500000, 171.488876, "SCORE");
TextDrawLetterSize(ApText[1], 0.200999, 0.759999);
TextDrawAlignment(ApText[1], 1);
TextDrawColor(ApText[1], -1);
TextDrawSetShadow(ApText[1], 0);
TextDrawSetOutline(ApText[1], 1);
TextDrawBackgroundColor(ApText[1], 51);
TextDrawFont(ApText[1], 2);
TextDrawSetProportional(ApText[1], 1);
ApText[2] = TextDrawCreate(404.500000, 171.244430, "HIT RATE");
TextDrawLetterSize(ApText[2], 0.200999, 0.759999);
TextDrawAlignment(ApText[2], 1);
TextDrawColor(ApText[2], -1);
TextDrawSetShadow(ApText[2], 0);
TextDrawSetOutline(ApText[2], 1);
TextDrawBackgroundColor(ApText[2], 51);
TextDrawFont(ApText[2], 2);
TextDrawSetProportional(ApText[2], 1);
ApText[3] = TextDrawCreate(198.000000, 191.644439, "1.");
TextDrawLetterSize(ApText[3], 0.254999, 0.834666);
TextDrawAlignment(ApText[3], 1);
TextDrawColor(ApText[3], -2139062017);
TextDrawSetShadow(ApText[3], 0);
TextDrawSetOutline(ApText[3], 1);
TextDrawBackgroundColor(ApText[3], 51);
TextDrawFont(ApText[3], 2);
TextDrawSetProportional(ApText[3], 1);
ApText[4] = TextDrawCreate(198.000000, 212.555541, "2.");
TextDrawLetterSize(ApText[4], 0.212000, 0.697777);
TextDrawAlignment(ApText[4], 1);
TextDrawColor(ApText[4], -2139062017);
TextDrawSetShadow(ApText[4], 0);
TextDrawSetOutline(ApText[4], 1);
TextDrawBackgroundColor(ApText[4], 51);
TextDrawFont(ApText[4], 2);
TextDrawSetProportional(ApText[4], 1);
ApText[5] = TextDrawCreate(198.000000, 230.977783, "3.");
TextDrawLetterSize(ApText[5], 0.212000, 0.697777);
TextDrawAlignment(ApText[5], 1);
TextDrawColor(ApText[5], -2139062017);
TextDrawSetShadow(ApText[5], 0);
TextDrawSetOutline(ApText[5], 1);
TextDrawBackgroundColor(ApText[5], 51);
TextDrawFont(ApText[5], 2);
TextDrawSetProportional(ApText[5], 1);
ApText[6] = TextDrawCreate(198.000000, 246.288909, "4.");
TextDrawLetterSize(ApText[6], 0.212000, 0.697777);
TextDrawAlignment(ApText[6], 1);
TextDrawColor(ApText[6], -2139062017);
TextDrawSetShadow(ApText[6], 0);
TextDrawSetOutline(ApText[6], 1);
TextDrawBackgroundColor(ApText[6], 51);
TextDrawFont(ApText[6], 2);
TextDrawSetProportional(ApText[6], 1);
ApText[7] = TextDrawCreate(198.000000, 259.733367, "5.");
TextDrawLetterSize(ApText[7], 0.212000, 0.697777);
TextDrawAlignment(ApText[7], 1);
TextDrawColor(ApText[7], -2139062017);
TextDrawSetShadow(ApText[7], 0);
TextDrawSetOutline(ApText[7], 1);
TextDrawBackgroundColor(ApText[7], 51);
TextDrawFont(ApText[7], 2);
TextDrawSetProportional(ApText[7], 1);
ApText[8] = TextDrawCreate(198.000000, 273.177825, "6.");
TextDrawLetterSize(ApText[8], 0.212000, 0.697777);
TextDrawAlignment(ApText[8], 1);
TextDrawColor(ApText[8], -2139062017);
TextDrawUseBox(ApText[8], true);
TextDrawBoxColor(ApText[8], 0);
TextDrawSetShadow(ApText[8], 0);
TextDrawSetOutline(ApText[8], 1);
TextDrawBackgroundColor(ApText[8], 51);
TextDrawFont(ApText[8], 2);
TextDrawSetProportional(ApText[8], 1);
ApText[9] = TextDrawCreate(197.500000, 287.244506, "7.");
TextDrawLetterSize(ApText[9], 0.212000, 0.697777);
TextDrawAlignment(ApText[9], 1);
TextDrawColor(ApText[9], -2139062017);
TextDrawSetShadow(ApText[9], 0);
TextDrawSetOutline(ApText[9], 1);
TextDrawBackgroundColor(ApText[9], 51);
TextDrawFont(ApText[9], 2);
TextDrawSetProportional(ApText[9], 1);
ApText[10] = TextDrawCreate(197.500000, 302.555633, "8.");
TextDrawLetterSize(ApText[10], 0.212000, 0.697777);
TextDrawAlignment(ApText[10], 1);
TextDrawColor(ApText[10], -2139062017);
TextDrawSetShadow(ApText[10], 0);
TextDrawSetOutline(ApText[10], 1);
TextDrawBackgroundColor(ApText[10], 51);
TextDrawFont(ApText[10], 2);
TextDrawSetProportional(ApText[10], 1);
ApText[11] = TextDrawCreate(197.500000, 317.866760, "9.");
TextDrawLetterSize(ApText[11], 0.212000, 0.697777);
TextDrawAlignment(ApText[11], 1);
TextDrawColor(ApText[11], -2139062017);
TextDrawSetShadow(ApText[11], 0);
TextDrawSetOutline(ApText[11], 1);
TextDrawBackgroundColor(ApText[11], 51);
TextDrawFont(ApText[11], 2);
TextDrawSetProportional(ApText[11], 1);
ApText[12] = TextDrawCreate(196.000000, 332.555664, "10.");
TextDrawLetterSize(ApText[12], 0.212000, 0.697777);
TextDrawAlignment(ApText[12], 1);
TextDrawColor(ApText[12], -2139062017);
TextDrawSetShadow(ApText[12], 0);
TextDrawSetOutline(ApText[12], 1);
TextDrawBackgroundColor(ApText[12], 51);
TextDrawFont(ApText[12], 2);
TextDrawSetProportional(ApText[12], 1);
NomeJogador[0] = TextDrawCreate(209.500000, 189.777770, "Apollo");
TextDrawLetterSize(NomeJogador[0], 0.346500, 1.189333);
TextDrawAlignment(NomeJogador[0], 1);
TextDrawColor(NomeJogador[0], -1);
TextDrawSetShadow(NomeJogador[0], 0);
TextDrawSetOutline(NomeJogador[0], 1);
TextDrawBackgroundColor(NomeJogador[0], 51);
TextDrawFont(NomeJogador[0], 1);
TextDrawSetProportional(NomeJogador[0], 1);
NomeJogador[1] = TextDrawCreate(209.000000, 209.444458, "Apollo");
TextDrawLetterSize(NomeJogador[1], 0.346500, 1.189333);
TextDrawAlignment(NomeJogador[1], 1);
TextDrawColor(NomeJogador[1], -1);
TextDrawSetShadow(NomeJogador[1], 0);
TextDrawSetOutline(NomeJogador[1], 1);
TextDrawBackgroundColor(NomeJogador[1], 51);
TextDrawFont(NomeJogador[1], 1);
TextDrawSetProportional(NomeJogador[1], 1);
NomeJogador[2] = TextDrawCreate(209.000000, 227.866699, "Apollo");
TextDrawLetterSize(NomeJogador[2], 0.318500, 1.083555);
TextDrawAlignment(NomeJogador[2], 1);
TextDrawColor(NomeJogador[2], -1);
TextDrawSetShadow(NomeJogador[2], 0);
TextDrawSetOutline(NomeJogador[2], 1);
TextDrawBackgroundColor(NomeJogador[2], 51);
TextDrawFont(NomeJogador[2], 1);
TextDrawSetProportional(NomeJogador[2], 1);
NomeJogador[3] = TextDrawCreate(210.000000, 244.422271, "Apollo");
TextDrawLetterSize(NomeJogador[3], 0.283000, 0.921777);
TextDrawAlignment(NomeJogador[3], 1);
TextDrawColor(NomeJogador[3], -1);
TextDrawSetShadow(NomeJogador[3], 0);
TextDrawSetOutline(NomeJogador[3], 1);
TextDrawBackgroundColor(NomeJogador[3], 51);
TextDrawFont(NomeJogador[3], 1);
TextDrawSetProportional(NomeJogador[3], 1);
NomeJogador[4] = TextDrawCreate(210.000000, 258.488952, "Apollo");
TextDrawLetterSize(NomeJogador[4], 0.283000, 0.921777);
TextDrawAlignment(NomeJogador[4], 1);
TextDrawColor(NomeJogador[4], -1);
TextDrawSetShadow(NomeJogador[4], 0);
TextDrawSetOutline(NomeJogador[4], 1);
TextDrawBackgroundColor(NomeJogador[4], 51);
TextDrawFont(NomeJogador[4], 1);
TextDrawSetProportional(NomeJogador[4], 1);
NomeJogador[5] = TextDrawCreate(210.000000, 271.933410, "Apollo");
TextDrawLetterSize(NomeJogador[5], 0.283000, 0.921777);
TextDrawAlignment(NomeJogador[5], 1);
TextDrawColor(NomeJogador[5], -1);
TextDrawSetShadow(NomeJogador[5], 0);
TextDrawSetOutline(NomeJogador[5], 1);
TextDrawBackgroundColor(NomeJogador[5], 51);
TextDrawFont(NomeJogador[5], 1);
TextDrawSetProportional(NomeJogador[5], 1);
NomeJogador[6] = TextDrawCreate(210.000000, 286.000091, "Apollo");
TextDrawLetterSize(NomeJogador[6], 0.283000, 0.921777);
TextDrawAlignment(NomeJogador[6], 1);
TextDrawColor(NomeJogador[6], -1);
TextDrawSetShadow(NomeJogador[6], 0);
TextDrawSetOutline(NomeJogador[6], 1);
TextDrawBackgroundColor(NomeJogador[6], 51);
TextDrawFont(NomeJogador[6], 1);
TextDrawSetProportional(NomeJogador[6], 1);
NomeJogador[7] = TextDrawCreate(210.500000, 301.311218, "Apollo");
TextDrawLetterSize(NomeJogador[7], 0.283000, 0.921777);
TextDrawAlignment(NomeJogador[7], 1);
TextDrawColor(NomeJogador[7], -1);
TextDrawSetShadow(NomeJogador[7], 0);
TextDrawSetOutline(NomeJogador[7], 1);
TextDrawBackgroundColor(NomeJogador[7], 51);
TextDrawFont(NomeJogador[7], 1);
TextDrawSetProportional(NomeJogador[7], 1);
NomeJogador[8] = TextDrawCreate(210.500000, 316.622344, "Apollo");
TextDrawLetterSize(NomeJogador[8], 0.283000, 0.921777);
TextDrawAlignment(NomeJogador[8], 1);
TextDrawColor(NomeJogador[8], -1);
TextDrawSetShadow(NomeJogador[8], 0);
TextDrawSetOutline(NomeJogador[8], 1);
TextDrawBackgroundColor(NomeJogador[8], 51);
TextDrawFont(NomeJogador[8], 1);
TextDrawSetProportional(NomeJogador[8], 1);
NomeJogador[9] = TextDrawCreate(210.500000, 331.311248, "Apollo");
TextDrawLetterSize(NomeJogador[9], 0.283000, 0.921777);
TextDrawAlignment(NomeJogador[9], 1);
TextDrawColor(NomeJogador[9], -1);
TextDrawSetShadow(NomeJogador[9], 0);
TextDrawSetOutline(NomeJogador[9], 1);
TextDrawBackgroundColor(NomeJogador[9], 51);
TextDrawFont(NomeJogador[9], 1);
TextDrawSetProportional(NomeJogador[9], 1);
PlayerScore[0] = TextDrawCreate(319.000000, 189.533325, "100");
TextDrawLetterSize(PlayerScore[0], 0.346500, 1.189333);
TextDrawAlignment(PlayerScore[0], 2);
TextDrawColor(PlayerScore[0], -1);
TextDrawSetShadow(PlayerScore[0], 0);
TextDrawSetOutline(PlayerScore[0], 1);
TextDrawBackgroundColor(PlayerScore[0], 51);
TextDrawFont(PlayerScore[0], 1);
TextDrawSetProportional(PlayerScore[0], 1);
PlayerScore[1] = TextDrawCreate(319.500000, 209.200012, "100");
TextDrawLetterSize(PlayerScore[1], 0.346500, 1.189333);
TextDrawAlignment(PlayerScore[1], 2);
TextDrawColor(PlayerScore[1], -1);
TextDrawSetShadow(PlayerScore[1], 0);
TextDrawSetOutline(PlayerScore[1], 1);
TextDrawBackgroundColor(PlayerScore[1], 51);
TextDrawFont(PlayerScore[1], 1);
TextDrawSetProportional(PlayerScore[1], 1);
PlayerScore[2] = TextDrawCreate(319.000000, 228.244476, "100");
TextDrawLetterSize(PlayerScore[2], 0.318500, 1.083555);
TextDrawAlignment(PlayerScore[2], 2);
TextDrawColor(PlayerScore[2], -1);
TextDrawSetShadow(PlayerScore[2], 0);
TextDrawSetOutline(PlayerScore[2], 1);
TextDrawBackgroundColor(PlayerScore[2], 51);
TextDrawFont(PlayerScore[2], 1);
TextDrawSetProportional(PlayerScore[2], 1);
PlayerScore[3] = TextDrawCreate(319.000000, 244.800048, "100");
TextDrawLetterSize(PlayerScore[3], 0.283000, 0.921777);
TextDrawAlignment(PlayerScore[3], 2);
TextDrawColor(PlayerScore[3], -1);
TextDrawSetShadow(PlayerScore[3], 0);
TextDrawSetOutline(PlayerScore[3], 1);
TextDrawBackgroundColor(PlayerScore[3], 51);
TextDrawFont(PlayerScore[3], 1);
TextDrawSetProportional(PlayerScore[3], 1);
PlayerScore[4] = TextDrawCreate(319.000000, 258.866729, "100");
TextDrawLetterSize(PlayerScore[4], 0.283000, 0.921777);
TextDrawAlignment(PlayerScore[4], 2);
TextDrawColor(PlayerScore[4], -1);
TextDrawSetShadow(PlayerScore[4], 0);
TextDrawSetOutline(PlayerScore[4], 1);
TextDrawBackgroundColor(PlayerScore[4], 51);
TextDrawFont(PlayerScore[4], 1);
TextDrawSetProportional(PlayerScore[4], 1);
PlayerScore[5] = TextDrawCreate(319.000000, 272.311187, "100");
TextDrawLetterSize(PlayerScore[5], 0.283000, 0.921777);
TextDrawAlignment(PlayerScore[5], 2);
TextDrawColor(PlayerScore[5], -1);
TextDrawSetShadow(PlayerScore[5], 0);
TextDrawSetOutline(PlayerScore[5], 1);
TextDrawBackgroundColor(PlayerScore[5], 51);
TextDrawFont(PlayerScore[5], 1);
TextDrawSetProportional(PlayerScore[5], 1);
PlayerScore[6] = TextDrawCreate(319.000000, 286.377868, "100");
TextDrawLetterSize(PlayerScore[6], 0.283000, 0.921777);
TextDrawAlignment(PlayerScore[6], 2);
TextDrawColor(PlayerScore[6], -1);
TextDrawSetShadow(PlayerScore[6], 0);
TextDrawSetOutline(PlayerScore[6], 1);
TextDrawBackgroundColor(PlayerScore[6], 51);
TextDrawFont(PlayerScore[6], 1);
TextDrawSetProportional(PlayerScore[6], 1);
PlayerScore[7] = TextDrawCreate(319.000000, 301.066772, "100");
TextDrawLetterSize(PlayerScore[7], 0.283000, 0.921777);
TextDrawAlignment(PlayerScore[7], 2);
TextDrawColor(PlayerScore[7], -1);
TextDrawSetShadow(PlayerScore[7], 0);
TextDrawSetOutline(PlayerScore[7], 1);
TextDrawBackgroundColor(PlayerScore[7], 51);
TextDrawFont(PlayerScore[7], 1);
TextDrawSetProportional(PlayerScore[7], 1);
PlayerScore[8] = TextDrawCreate(319.000000, 317.000122, "100");
TextDrawLetterSize(PlayerScore[8], 0.283000, 0.921777);
TextDrawAlignment(PlayerScore[8], 2);
TextDrawColor(PlayerScore[8], -1);
TextDrawSetShadow(PlayerScore[8], 0);
TextDrawSetOutline(PlayerScore[8], 1);
TextDrawBackgroundColor(PlayerScore[8], 51);
TextDrawFont(PlayerScore[8], 1);
TextDrawSetProportional(PlayerScore[8], 1);
PlayerScore[9] = TextDrawCreate(319.000000, 331.689025, "100");
TextDrawLetterSize(PlayerScore[9], 0.283000, 0.921777);
TextDrawAlignment(PlayerScore[9], 2);
TextDrawColor(PlayerScore[9], -1);
TextDrawSetShadow(PlayerScore[9], 0);
TextDrawSetOutline(PlayerScore[9], 1);
TextDrawBackgroundColor(PlayerScore[9], 51);
TextDrawFont(PlayerScore[9], 1);
TextDrawSetProportional(PlayerScore[9], 1);
CaixasCTT[13] = TextDrawCreate(200.000000, 171.488876, "-");
TextDrawLetterSize(CaixasCTT[13], 0.200999, 0.759999);
TextDrawAlignment(CaixasCTT[13], 1);
TextDrawColor(CaixasCTT[13], -1);
TextDrawSetShadow(CaixasCTT[13], 0);
TextDrawSetOutline(CaixasCTT[13], 1);
TextDrawBackgroundColor(CaixasCTT[13], 51);
TextDrawFont(CaixasCTT[13], 2);
TextDrawSetProportional(CaixasCTT[13], 1);
PlayerHitRate[0] = TextDrawCreate(437.000000, 188.666656, "200");
TextDrawLetterSize(PlayerHitRate[0], 0.346500, 1.189333);
TextDrawAlignment(PlayerHitRate[0], 3);
TextDrawColor(PlayerHitRate[0], -1);
TextDrawSetShadow(PlayerHitRate[0], 0);
TextDrawSetOutline(PlayerHitRate[0], 1);
TextDrawBackgroundColor(PlayerHitRate[0], 51);
TextDrawFont(PlayerHitRate[0], 1);
TextDrawSetProportional(PlayerHitRate[0], 1);
PlayerHitRate[1] = TextDrawCreate(437.000000, 208.955566, "200");
TextDrawLetterSize(PlayerHitRate[1], 0.346500, 1.189333);
TextDrawAlignment(PlayerHitRate[1], 3);
TextDrawColor(PlayerHitRate[1], -1);
TextDrawSetShadow(PlayerHitRate[1], 0);
TextDrawSetOutline(PlayerHitRate[1], 1);
TextDrawBackgroundColor(PlayerHitRate[1], 51);
TextDrawFont(PlayerHitRate[1], 1);
TextDrawSetProportional(PlayerHitRate[1], 1);
PlayerHitRate[2] = TextDrawCreate(436.500000, 228.622253, "200");
TextDrawLetterSize(PlayerHitRate[2], 0.318500, 1.083555);
TextDrawAlignment(PlayerHitRate[2], 3);
TextDrawColor(PlayerHitRate[2], -1);
TextDrawSetShadow(PlayerHitRate[2], 0);
TextDrawSetOutline(PlayerHitRate[2], 1);
TextDrawBackgroundColor(PlayerHitRate[2], 51);
TextDrawFont(PlayerHitRate[2], 1);
TextDrawSetProportional(PlayerHitRate[2], 1);
PlayerHitRate[3] = TextDrawCreate(436.500000, 244.555603, "200");
TextDrawLetterSize(PlayerHitRate[3], 0.283000, 0.921777);
TextDrawAlignment(PlayerHitRate[3], 3);
TextDrawColor(PlayerHitRate[3], -1);
TextDrawSetShadow(PlayerHitRate[3], 0);
TextDrawSetOutline(PlayerHitRate[3], 1);
TextDrawBackgroundColor(PlayerHitRate[3], 51);
TextDrawFont(PlayerHitRate[3], 1);
TextDrawSetProportional(PlayerHitRate[3], 1);
PlayerHitRate[4] = TextDrawCreate(437.000000, 258.622283, "200");
TextDrawLetterSize(PlayerHitRate[4], 0.283000, 0.921777);
TextDrawAlignment(PlayerHitRate[4], 3);
TextDrawColor(PlayerHitRate[4], -1);
TextDrawSetShadow(PlayerHitRate[4], 0);
TextDrawSetOutline(PlayerHitRate[4], 1);
TextDrawBackgroundColor(PlayerHitRate[4], 51);
TextDrawFont(PlayerHitRate[4], 1);
TextDrawSetProportional(PlayerHitRate[4], 1);
PlayerHitRate[5] = TextDrawCreate(437.500000, 272.066741, "200");
TextDrawLetterSize(PlayerHitRate[5], 0.283000, 0.921777);
TextDrawAlignment(PlayerHitRate[5], 3);
TextDrawColor(PlayerHitRate[5], -1);
TextDrawSetShadow(PlayerHitRate[5], 0);
TextDrawSetOutline(PlayerHitRate[5], 1);
TextDrawBackgroundColor(PlayerHitRate[5], 51);
TextDrawFont(PlayerHitRate[5], 1);
TextDrawSetProportional(PlayerHitRate[5], 1);
PlayerHitRate[6] = TextDrawCreate(437.500000, 286.133422, "200");
TextDrawLetterSize(PlayerHitRate[6], 0.283000, 0.921777);
TextDrawAlignment(PlayerHitRate[6], 3);
TextDrawColor(PlayerHitRate[6], -1);
TextDrawSetShadow(PlayerHitRate[6], 0);
TextDrawSetOutline(PlayerHitRate[6], 1);
TextDrawBackgroundColor(PlayerHitRate[6], 51);
TextDrawFont(PlayerHitRate[6], 1);
TextDrawSetProportional(PlayerHitRate[6], 1);
PlayerHitRate[7] = TextDrawCreate(437.500000, 301.444549, "200");
TextDrawLetterSize(PlayerHitRate[7], 0.283000, 0.921777);
TextDrawAlignment(PlayerHitRate[7], 3);
TextDrawColor(PlayerHitRate[7], -1);
TextDrawSetShadow(PlayerHitRate[7], 0);
TextDrawSetOutline(PlayerHitRate[7], 1);
TextDrawBackgroundColor(PlayerHitRate[7], 51);
TextDrawFont(PlayerHitRate[7], 1);
TextDrawSetProportional(PlayerHitRate[7], 1);
PlayerHitRate[8] = TextDrawCreate(437.500000, 316.755676, "200");
TextDrawLetterSize(PlayerHitRate[8], 0.283000, 0.921777);
TextDrawAlignment(PlayerHitRate[8], 3);
TextDrawColor(PlayerHitRate[8], -1);
TextDrawSetShadow(PlayerHitRate[8], 0);
TextDrawSetOutline(PlayerHitRate[8], 1);
TextDrawBackgroundColor(PlayerHitRate[8], 51);
TextDrawFont(PlayerHitRate[8], 1);
TextDrawSetProportional(PlayerHitRate[8], 1);
PlayerHitRate[9] = TextDrawCreate(437.500000, 331.444580, "200");
TextDrawLetterSize(PlayerHitRate[9], 0.283000, 0.921777);
TextDrawAlignment(PlayerHitRate[9], 3);
TextDrawColor(PlayerHitRate[9], -1);
TextDrawSetShadow(PlayerHitRate[9], 0);
TextDrawSetOutline(PlayerHitRate[9], 1);
TextDrawBackgroundColor(PlayerHitRate[9], 51);
TextDrawFont(PlayerHitRate[9], 1);
TextDrawSetProportional(PlayerHitRate[9], 1);
CloseButton = TextDrawCreate(439.500000, 147.466674, "X");
TextDrawLetterSize(CloseButton, 0.449999, 1.600000);
TextDrawTextSize(CloseButton, 450.000000, 10.000000);
TextDrawAlignment(CloseButton, 1);
TextDrawColor(CloseButton, -1);
TextDrawUseBox(CloseButton, true);
TextDrawBoxColor(CloseButton, 255);
TextDrawSetShadow(CloseButton, 0);
TextDrawSetOutline(CloseButton, 1);
TextDrawBackgroundColor(CloseButton, 51);
TextDrawFont(CloseButton, 2);
TextDrawSetProportional(CloseButton, 1);
for(new c = 0; c < 15; c++)
{
TextDrawShowForPlayer(playerid, CaixasCTT[c]);
}
/*for(new a = 0; a < 14; a++)
{
TextDrawShowForPlayer(playerid, ApText[a]);
}*/
for(new pl = 0; pl < 12; pl++)
{
TextDrawShowForPlayer(playerid, NomeJogador[pl]);
}
for(new po = 0; po < 12; po++)
{
TextDrawShowForPlayer(playerid, PlayerScore[po]);
}
for(new pa = 0; pa < 12; pa++)
{
TextDrawShowForPlayer(playerid, PlayerHitRate[pa]);
}
TextDrawShowForPlayer(playerid, CloseButton);
SelectTextDraw(playerid, 0xb0b7c1ff);
}
PHP код:
new Text:CaixasCTT[14];
new Text:ApText[14];
new Text:NomeJogador[11];
new Text:PlayerScore[11];
new Text:PlayerHitRate[11];
new Text:CloseButton;