1 (изменено: svatnuk, 2018-04-20 21:39:27)

Тема: AHK | Какое число больше?

Суть вопроса.Есть тхд файл.В нем написано(например)
fstd_p[playerid][5] = CreatePlayerTextDraw(playerid, 293.000000, 102.000000, "v");
PlayerTextDrawLetterSize(playerid, fstd_p[playerid][5], 1.020000, 2.200000);
PlayerTextDrawTextSize(playerid, fstd_p[playerid][5], 1280.000000, 1280.000000);
PlayerTextDrawAlignment(playerid, fstd_p[playerid][5], 0);
PlayerTextDrawColor(playerid, fstd_p[playerid][5], 0xFFFFFF70);
PlayerTextDrawUseBox(playerid, fstd_p[playerid][5], 0);
PlayerTextDrawBoxColor(playerid, fstd_p[playerid][5], 0x80808080);
PlayerTextDrawSetShadow(playerid, fstd_p[playerid][5], 1);
PlayerTextDrawSetOutline(playerid, fstd_p[playerid][5], 1);
PlayerTextDrawBackgroundColor(playerid, fstd_p[playerid][5], 0x000000FF);
PlayerTextDrawFont(playerid, fstd_p[playerid][5], 0);
PlayerTextDrawSetProportional(playerid, fstd_p[playerid][5], 1);
PlayerTextDrawSetSelectable(playerid, fstd_p[playerid][5], 0);


fstd_p[playerid][3] = CreatePlayerTextDraw(playerid, 302.000000, 108.000000, "z");
PlayerTextDrawLetterSize(playerid, fstd_p[playerid][3], 1.020000, 2.200000);
PlayerTextDrawTextSize(playerid, fstd_p[playerid][3], 1280.000000, 1280.000000);
PlayerTextDrawAlignment(playerid, fstd_p[playerid][3], 0);
PlayerTextDrawColor(playerid, fstd_p[playerid][3], 0xFFFFFF70);
PlayerTextDrawUseBox(playerid, fstd_p[playerid][3], 0);
PlayerTextDrawBoxColor(playerid, fstd_p[playerid][3], 0x80808080);
PlayerTextDrawSetShadow(playerid, fstd_p[playerid][3], 1);
PlayerTextDrawSetOutline(playerid, fstd_p[playerid][3], 0);
PlayerTextDrawBackgroundColor(playerid, fstd_p[playerid][3], 0x000000FF);
PlayerTextDrawFont(playerid, fstd_p[playerid][3], 0);
PlayerTextDrawSetProportional(playerid, fstd_p[playerid][3], 1);
PlayerTextDrawSetSelectable(playerid, fstd_p[playerid][3], 0);


fstd_p[playerid][1] = CreatePlayerTextDraw(playerid, 317.000000, 104.000000, "9");
PlayerTextDrawLetterSize(playerid, fstd_p[playerid][1], 1.020000, 3.199999);
PlayerTextDrawTextSize(playerid, fstd_p[playerid][1], 1280.000000, 1280.000000);
PlayerTextDrawAlignment(playerid, fstd_p[playerid][1], 0);
PlayerTextDrawColor(playerid, fstd_p[playerid][1], 0xFFFFFF70);
PlayerTextDrawUseBox(playerid, fstd_p[playerid][1], 0);
PlayerTextDrawBoxColor(playerid, fstd_p[playerid][1], 0x80808080);
PlayerTextDrawSetShadow(playerid, fstd_p[playerid][1], 1);
PlayerTextDrawSetOutline(playerid, fstd_p[playerid][1], 1);
PlayerTextDrawBackgroundColor(playerid, fstd_p[playerid][1], 0x000000FF);
PlayerTextDrawFont(playerid, fstd_p[playerid][1], 0);
PlayerTextDrawSetProportional(playerid, fstd_p[playerid][1], 1);
PlayerTextDrawSetSelectable(playerid, fstd_p[playerid][1], 0);

fstd_p[playerid][0] = CreatePlayerTextDraw(playerid, 317.000000, 107.000000, "6");
PlayerTextDrawLetterSize(playerid, fstd_p[playerid][0], 0.480000, 1.120000);
PlayerTextDrawTextSize(playerid, fstd_p[playerid][0], 1280.000000, 1280.000000);
PlayerTextDrawAlignment(playerid, fstd_p[playerid][0], 0);
PlayerTextDrawColor(playerid, fstd_p[playerid][0], 0xFFFFFF10);
PlayerTextDrawUseBox(playerid, fstd_p[playerid][0], 0);
PlayerTextDrawBoxColor(playerid, fstd_p[playerid][0], 0x80808080);
PlayerTextDrawSetShadow(playerid, fstd_p[playerid][0], 0);
PlayerTextDrawSetOutline(playerid, fstd_p[playerid][0], 0);
PlayerTextDrawBackgroundColor(playerid, fstd_p[playerid][0], 0x000000FF);
PlayerTextDrawFont(playerid, fstd_p[playerid][0], 0);
PlayerTextDrawSetProportional(playerid, fstd_p[playerid][0], 1);
PlayerTextDrawSetSelectable(playerid, fstd_p[playerid][0], 0);


fstd_p[playerid][2] = CreatePlayerTextDraw(playerid, 302.000000, 110.000000, "f");
PlayerTextDrawLetterSize(playerid, fstd_p[playerid][2], 0.030000, 1.000000);
PlayerTextDrawTextSize(playerid, fstd_p[playerid][2], 1280.000000, 1280.000000);
PlayerTextDrawAlignment(playerid, fstd_p[playerid][2], 0);
PlayerTextDrawColor(playerid, fstd_p[playerid][2], 0xFFFFFF70);
PlayerTextDrawUseBox(playerid, fstd_p[playerid][2], 0);
PlayerTextDrawBoxColor(playerid, fstd_p[playerid][2], 0x80808080);
PlayerTextDrawSetShadow(playerid, fstd_p[playerid][2], 1);
PlayerTextDrawSetOutline(playerid, fstd_p[playerid][2], 0);
PlayerTextDrawBackgroundColor(playerid, fstd_p[playerid][2], 0x000000FF);
PlayerTextDrawFont(playerid, fstd_p[playerid][2], 0);
PlayerTextDrawSetProportional(playerid, fstd_p[playerid][2], 1);
PlayerTextDrawSetSelectable(playerid, fstd_p[playerid][2], 0);
fstd_p[playerid][4] = CreatePlayerTextDraw(playerid, 293.000000, 106.000000, "i");
PlayerTextDrawLetterSize(playerid, fstd_p[playerid][4], 0.030000, 1.000000);
PlayerTextDrawTextSize(playerid, fstd_p[playerid][4], 1280.000000, 1280.000000);
PlayerTextDrawAlignment(playerid, fstd_p[playerid][4], 0);
PlayerTextDrawColor(playerid, fstd_p[playerid][4], 0xFFFFFF70);
PlayerTextDrawUseBox(playerid, fstd_p[playerid][4], 0);
PlayerTextDrawBoxColor(playerid, fstd_p[playerid][4], 0x80808080);
PlayerTextDrawSetShadow(playerid, fstd_p[playerid][4], 1);
PlayerTextDrawSetOutline(playerid, fstd_p[playerid][4], 0);
PlayerTextDrawBackgroundColor(playerid, fstd_p[playerid][4], 0x000000FF);
PlayerTextDrawFont(playerid, fstd_p[playerid][4], 0);
PlayerTextDrawSetProportional(playerid, fstd_p[playerid][4], 1);
PlayerTextDrawSetSelectable(playerid, fstd_p[playerid][4], 0);

fstd_p[playerid][6] = CreatePlayerTextDraw(playerid, 281.000000, 107.000000, "g");
PlayerTextDrawLetterSize(playerid, fstd_p[playerid][6], 0.030000, 1.000000);
PlayerTextDrawTextSize(playerid, fstd_p[playerid][6], 1280.000000, 1280.000000);
PlayerTextDrawAlignment(playerid, fstd_p[playerid][6], 0);
PlayerTextDrawColor(playerid, fstd_p[playerid][6], 0xFFFFFF70);
PlayerTextDrawUseBox(playerid, fstd_p[playerid][6], 0);
PlayerTextDrawBoxColor(playerid, fstd_p[playerid][6], 0x80808080);
PlayerTextDrawSetShadow(playerid, fstd_p[playerid][6], 1);
PlayerTextDrawSetOutline(playerid, fstd_p[playerid][6], 0);
PlayerTextDrawBackgroundColor(playerid, fstd_p[playerid][6], 0x000000FF);
PlayerTextDrawFont(playerid, fstd_p[playerid][6], 0);
PlayerTextDrawSetProportional(playerid, fstd_p[playerid][6], 1);
PlayerTextDrawSetSelectable(playerid, fstd_p[playerid][6], 0);

Нужно оттделить так
fstd_p[playerid][7] = CreatePlayerTextDraw(playerid, 281.000000, 105.000000, "t");
fstd_p[playerid][5] = CreatePlayerTextDraw(playerid, 293.000000, 102.000000, "v");
fstd_p[playerid][3] = CreatePlayerTextDraw(playerid, 302.000000, 108.000000, "z");
fstd_p[playerid][1] = CreatePlayerTextDraw(playerid, 317.000000, 104.000000, "9");
Не фейк
PlayerTextDrawLetterSize(playerid, fstd_p[playerid][7], 1.020000, 3.199999);
Фейк
PlayerTextDrawLetterSize(playerid, fstd_p[playerid][0], 0.480000, 1.120000);
Ето новая система капчи аризоны.Что нужно сделать:
После playerid идет число(281 например)Нужно уравнить которое из них меньше,а которое больше.Я уже вручную уровнял,но оно разбросано.
А также под етими строками идет PlayerTextDrawLetterSize,если в конце будет fstd_p[playerid][7], 1.020000 то вводится,если 0.48000 то нет
После етих чисел в лапках идет текст(t).Нужно чтобы он ввелся.

2

Re: AHK | Какое число больше?

Для игр есть отдельный раздел.