• Уважаемый Гость.
    - Прежде чем создать свою тему, пожалуйста, попробуй воспользоваться этим -> ПОИСКОМ !!!
    - После решения Вашего вопроса (проблемы) - нажмите "Лучший ответ", на сообщении, которое его решило. За игнорирование этого действия - Вы получите соответствующее предупреждение. Мы - стараемся Вам помочь. Уделите 10 секунд - чтобы нажать кнопку. (Если у Вас нет такой возможности - укажите в последнем своем сообщении какой ответ Вы считаете лучшим. Наши модераторы сделают это за Вас)
    ЗАПРЕЩЕНО:
    - Cоздавать темы с названиями "Помогите", "Плиз", "Ошибка", "Не могу найти", "Хелп" и тому подобное;
    - Cоздавать темы без детального описания того, что нужно исправить.
    - Cоздавать темы из одного скриншота.
    За игнор правил форума - Ваша тема будет удалена, а Вы получите системное предупреждение.

error 017: undefined symbol "playerid"

Статус
В этой теме нельзя размещать новые ответы.

bisquses

Умник
Приветствую, вставил текстдравы в OnGameModeInit
Хочу, чтобы показывалосЬ, когда игрок берет пикап, но выдает ошибку error 017: undefined symbol "playerid"
CSS:
    if(pickupid == Pickup[apGuns])
    {
        TextDrawHideForPlayer(playerid, fstd_p[playerid][0]);
        TextDrawHideForPlayer(playerid, fstd_p[playerid][1]);
        TextDrawHideForPlayer(playerid, fstd_p[playerid][2]);
        TextDrawHideForPlayer(playerid, fstd_p[playerid][3]);
        TextDrawHideForPlayer(playerid, fstd_p[playerid][4]);

    }

CSS:
new PlayerText:fstd_p[MAX_PLAYERS][13];

fstd_p[playerid][12] = CreatePlayerTextDraw(playerid, 227.000000, 386.000000, "_");
PlayerTextDrawLetterSize(playerid, fstd_p[playerid][12], 0.500000, 2.000000);
PlayerTextDrawTextSize(playerid, fstd_p[playerid][12], 315.000000, 20.000000);
PlayerTextDrawAlignment(playerid, fstd_p[playerid][12], 1);
PlayerTextDrawColor(playerid, fstd_p[playerid][12], 0xFFFFFFFF);
PlayerTextDrawUseBox(playerid, fstd_p[playerid][12], 1);
PlayerTextDrawBoxColor(playerid, fstd_p[playerid][12], 0x32CD3270);
PlayerTextDrawSetShadow(playerid, fstd_p[playerid][12], 1);
PlayerTextDrawSetOutline(playerid, fstd_p[playerid][12], 0);
PlayerTextDrawBackgroundColor(playerid, fstd_p[playerid][12], 0x00000000);
PlayerTextDrawFont(playerid, fstd_p[playerid][12], 2);
PlayerTextDrawSetProportional(playerid, fstd_p[playerid][12], 1);
PlayerTextDrawSetSelectable(playerid, fstd_p[playerid][12], 1);

fstd_p[playerid][11] = CreatePlayerTextDraw(playerid, 200.000000, 386.700012, "_");
PlayerTextDrawLetterSize(playerid, fstd_p[playerid][11], 0.500000, 1.800000);
PlayerTextDrawTextSize(playerid, fstd_p[playerid][11], 220.000000, 18.000000);
PlayerTextDrawAlignment(playerid, fstd_p[playerid][11], 1);
PlayerTextDrawColor(playerid, fstd_p[playerid][11], 0xFFFFFFFF);
PlayerTextDrawUseBox(playerid, fstd_p[playerid][11], 1);
PlayerTextDrawBoxColor(playerid, fstd_p[playerid][11], 0x00000060);
PlayerTextDrawSetShadow(playerid, fstd_p[playerid][11], 1);
PlayerTextDrawSetOutline(playerid, fstd_p[playerid][11], 0);
PlayerTextDrawBackgroundColor(playerid, fstd_p[playerid][11], 0x00000000);
PlayerTextDrawFont(playerid, fstd_p[playerid][11], 2);
PlayerTextDrawSetProportional(playerid, fstd_p[playerid][11], 1);
PlayerTextDrawSetSelectable(playerid, fstd_p[playerid][11], 1);

fstd_p[playerid][10] = CreatePlayerTextDraw(playerid, 415.000000, 386.700012, "_");
PlayerTextDrawLetterSize(playerid, fstd_p[playerid][10], 0.500000, 1.800000);
PlayerTextDrawTextSize(playerid, fstd_p[playerid][10], 435.000000, 18.000000);
PlayerTextDrawAlignment(playerid, fstd_p[playerid][10], 1);
PlayerTextDrawColor(playerid, fstd_p[playerid][10], 0xFFFFFFFF);
PlayerTextDrawUseBox(playerid, fstd_p[playerid][10], 1);
PlayerTextDrawBoxColor(playerid, fstd_p[playerid][10], 0x00000060);
PlayerTextDrawSetShadow(playerid, fstd_p[playerid][10], 1);
PlayerTextDrawSetOutline(playerid, fstd_p[playerid][10], 0);
PlayerTextDrawBackgroundColor(playerid, fstd_p[playerid][10], 0x00000000);
PlayerTextDrawFont(playerid, fstd_p[playerid][10], 2);
PlayerTextDrawSetProportional(playerid, fstd_p[playerid][10], 1);
PlayerTextDrawSetSelectable(playerid, fstd_p[playerid][10], 1);

fstd_p[playerid][9] = CreatePlayerTextDraw(playerid, 321.000000, 386.000000, "_");
PlayerTextDrawLetterSize(playerid, fstd_p[playerid][9], 0.500000, 2.000000);
PlayerTextDrawTextSize(playerid, fstd_p[playerid][9], 409.000000, 20.000000);
PlayerTextDrawAlignment(playerid, fstd_p[playerid][9], 1);
PlayerTextDrawColor(playerid, fstd_p[playerid][9], 0xFFFFFFFF);
PlayerTextDrawUseBox(playerid, fstd_p[playerid][9], 1);
PlayerTextDrawBoxColor(playerid, fstd_p[playerid][9], 0xEE2C2C70);
PlayerTextDrawSetShadow(playerid, fstd_p[playerid][9], 1);
PlayerTextDrawSetOutline(playerid, fstd_p[playerid][9], 0);
PlayerTextDrawBackgroundColor(playerid, fstd_p[playerid][9], 0x00000000);
PlayerTextDrawFont(playerid, fstd_p[playerid][9], 2);
PlayerTextDrawSetProportional(playerid, fstd_p[playerid][9], 1);
PlayerTextDrawSetSelectable(playerid, fstd_p[playerid][9], 1);

fstd_p[playerid][8] = CreatePlayerTextDraw(playerid, 246.000000, 392.000000, "Select");
PlayerTextDrawLetterSize(playerid, fstd_p[playerid][8], 0.320000, 0.800000);
PlayerTextDrawTextSize(playerid, fstd_p[playerid][8], 1280.000000, 1280.000000);
PlayerTextDrawAlignment(playerid, fstd_p[playerid][8], 1);
PlayerTextDrawColor(playerid, fstd_p[playerid][8], 0xFFFFFFFF);
PlayerTextDrawUseBox(playerid, fstd_p[playerid][8], 0);
PlayerTextDrawBoxColor(playerid, fstd_p[playerid][8], 0x00000000);
PlayerTextDrawSetShadow(playerid, fstd_p[playerid][8], 0);
PlayerTextDrawSetOutline(playerid, fstd_p[playerid][8], 0);
PlayerTextDrawBackgroundColor(playerid, fstd_p[playerid][8], 0xFF000000);
PlayerTextDrawFont(playerid, fstd_p[playerid][8], 2);
PlayerTextDrawSetProportional(playerid, fstd_p[playerid][8], 1);
PlayerTextDrawSetSelectable(playerid, fstd_p[playerid][8], 0);

fstd_p[playerid][7] = CreatePlayerTextDraw(playerid, 421.000000, 390.000000, ">");
PlayerTextDrawLetterSize(playerid, fstd_p[playerid][7], 0.320000, 1.300000);
PlayerTextDrawTextSize(playerid, fstd_p[playerid][7], 1280.000000, 1280.000000);
PlayerTextDrawAlignment(playerid, fstd_p[playerid][7], 1);
PlayerTextDrawColor(playerid, fstd_p[playerid][7], 0xFFFFFFFF);
PlayerTextDrawUseBox(playerid, fstd_p[playerid][7], 0);
PlayerTextDrawBoxColor(playerid, fstd_p[playerid][7], 0x00000000);
PlayerTextDrawSetShadow(playerid, fstd_p[playerid][7], 0);
PlayerTextDrawSetOutline(playerid, fstd_p[playerid][7], 0);
PlayerTextDrawBackgroundColor(playerid, fstd_p[playerid][7], 0xFF000000);
PlayerTextDrawFont(playerid, fstd_p[playerid][7], 2);
PlayerTextDrawSetProportional(playerid, fstd_p[playerid][7], 1);
PlayerTextDrawSetSelectable(playerid, fstd_p[playerid][7], 0);

fstd_p[playerid][6] = CreatePlayerTextDraw(playerid, 205.000000, 390.000000, "<");
PlayerTextDrawLetterSize(playerid, fstd_p[playerid][6], 0.320000, 1.300000);
PlayerTextDrawTextSize(playerid, fstd_p[playerid][6], 1280.000000, 1280.000000);
PlayerTextDrawAlignment(playerid, fstd_p[playerid][6], 1);
PlayerTextDrawColor(playerid, fstd_p[playerid][6], 0xFFFFFFFF);
PlayerTextDrawUseBox(playerid, fstd_p[playerid][6], 0);
PlayerTextDrawBoxColor(playerid, fstd_p[playerid][6], 0x00000000);
PlayerTextDrawSetShadow(playerid, fstd_p[playerid][6], 0);
PlayerTextDrawSetOutline(playerid, fstd_p[playerid][6], 0);
PlayerTextDrawBackgroundColor(playerid, fstd_p[playerid][6], 0xFF000000);
PlayerTextDrawFont(playerid, fstd_p[playerid][6], 2);
PlayerTextDrawSetProportional(playerid, fstd_p[playerid][6], 1);
PlayerTextDrawSetSelectable(playerid, fstd_p[playerid][6], 0);

fstd_p[playerid][5] = CreatePlayerTextDraw(playerid, 345.000000, 392.000000, "Close");
PlayerTextDrawLetterSize(playerid, fstd_p[playerid][5], 0.320000, 0.800000);
PlayerTextDrawTextSize(playerid, fstd_p[playerid][5], 1280.000000, 1280.000000);
PlayerTextDrawAlignment(playerid, fstd_p[playerid][5], 1);
PlayerTextDrawColor(playerid, fstd_p[playerid][5], 0xFFFFFFFF);
PlayerTextDrawUseBox(playerid, fstd_p[playerid][5], 0);
PlayerTextDrawBoxColor(playerid, fstd_p[playerid][5], 0x00000000);
PlayerTextDrawSetShadow(playerid, fstd_p[playerid][5], 0);
PlayerTextDrawSetOutline(playerid, fstd_p[playerid][5], 0);
PlayerTextDrawBackgroundColor(playerid, fstd_p[playerid][5], 0xFF000000);
PlayerTextDrawFont(playerid, fstd_p[playerid][5], 2);
PlayerTextDrawSetProportional(playerid, fstd_p[playerid][5], 1);
PlayerTextDrawSetSelectable(playerid, fstd_p[playerid][5], 0);

fstd_p[playerid][4] = CreatePlayerTextDraw(playerid, 276.000000, 431.000000, "_");
PlayerTextDrawLetterSize(playerid, fstd_p[playerid][4], 0.500000, 2.000000);
PlayerTextDrawTextSize(playerid, fstd_p[playerid][4], 364.000000, 42.000000);
PlayerTextDrawAlignment(playerid, fstd_p[playerid][4], 1);
PlayerTextDrawColor(playerid, fstd_p[playerid][4], 0xFFFFFFFF);
PlayerTextDrawUseBox(playerid, fstd_p[playerid][4], 1);
PlayerTextDrawBoxColor(playerid, fstd_p[playerid][4], 0x00000060);
PlayerTextDrawSetShadow(playerid, fstd_p[playerid][4], 1);
PlayerTextDrawSetOutline(playerid, fstd_p[playerid][4], 0);
PlayerTextDrawBackgroundColor(playerid, fstd_p[playerid][4], 0x00000000);
PlayerTextDrawFont(playerid, fstd_p[playerid][4], 2);
PlayerTextDrawSetProportional(playerid, fstd_p[playerid][4], 1);
PlayerTextDrawSetSelectable(playerid, fstd_p[playerid][4], 0);

fstd_p[playerid][3] = CreatePlayerTextDraw(playerid, 320.000000, 435.000000, "750 rub");
PlayerTextDrawLetterSize(playerid, fstd_p[playerid][3], 0.320000, 0.800000);
PlayerTextDrawTextSize(playerid, fstd_p[playerid][3], 1280.000000, 1280.000000);
PlayerTextDrawAlignment(playerid, fstd_p[playerid][3], 2);
PlayerTextDrawColor(playerid, fstd_p[playerid][3], 0xFFFFFFFF);
PlayerTextDrawUseBox(playerid, fstd_p[playerid][3], 0);
PlayerTextDrawBoxColor(playerid, fstd_p[playerid][3], 0x00000000);
PlayerTextDrawSetShadow(playerid, fstd_p[playerid][3], 0);
PlayerTextDrawSetOutline(playerid, fstd_p[playerid][3], 0);
PlayerTextDrawBackgroundColor(playerid, fstd_p[playerid][3], 0x000000FF);
PlayerTextDrawFont(playerid, fstd_p[playerid][3], 2);
PlayerTextDrawSetProportional(playerid, fstd_p[playerid][3], 1);
PlayerTextDrawSetSelectable(playerid, fstd_p[playerid][3], 0);

fstd_p[playerid][2] = CreatePlayerTextDraw(playerid, 590.744263, 124.583351, "info-box");
PlayerTextDrawLetterSize(playerid, fstd_p[playerid][2], 0.000000, 11.154000);
PlayerTextDrawTextSize(playerid, fstd_p[playerid][2], 439.346985, 0.000000);
PlayerTextDrawAlignment(playerid, fstd_p[playerid][2], 1);
PlayerTextDrawColor(playerid, fstd_p[playerid][2], 0x00000000);
PlayerTextDrawUseBox(playerid, fstd_p[playerid][2], 1);
PlayerTextDrawBoxColor(playerid, fstd_p[playerid][2], 0x00000060);
PlayerTextDrawSetShadow(playerid, fstd_p[playerid][2], 0);
PlayerTextDrawSetOutline(playerid, fstd_p[playerid][2], 0);
PlayerTextDrawBackgroundColor(playerid, fstd_p[playerid][2], 0x00000000);
PlayerTextDrawFont(playerid, fstd_p[playerid][2], 0);
PlayerTextDrawSetProportional(playerid, fstd_p[playerid][2], 0);
PlayerTextDrawSetSelectable(playerid, fstd_p[playerid][2], 0);

fstd_p[playerid][1] = CreatePlayerTextDraw(playerid, 443.221130, 124.833321, "weapon: 2");
PlayerTextDrawLetterSize(playerid, fstd_p[playerid][1], 0.297000, 1.092000);
PlayerTextDrawTextSize(playerid, fstd_p[playerid][1], 587.057007, 18.666000);
PlayerTextDrawAlignment(playerid, fstd_p[playerid][1], 1);
PlayerTextDrawColor(playerid, fstd_p[playerid][1], 0xFFFFFFFF);
PlayerTextDrawUseBox(playerid, fstd_p[playerid][1], 1);
PlayerTextDrawBoxColor(playerid, fstd_p[playerid][1], 0x3399FF96);
PlayerTextDrawSetShadow(playerid, fstd_p[playerid][1], 0);
PlayerTextDrawSetOutline(playerid, fstd_p[playerid][1], 0);
PlayerTextDrawBackgroundColor(playerid, fstd_p[playerid][1], 0x00000033);
PlayerTextDrawFont(playerid, fstd_p[playerid][1], 2);
PlayerTextDrawSetProportional(playerid, fstd_p[playerid][1], 1);
PlayerTextDrawSetSelectable(playerid, fstd_p[playerid][1], 0);

fstd_p[playerid][0] = CreatePlayerTextDraw(playerid, 515.373657, 140.583420, "Haџўa®њe:~n~Ђњ¦a_(5)~n~~n~Koћњ¤ec¦ўo:~n~1 Ґ¦yk");
PlayerTextDrawLetterSize(playerid, fstd_p[playerid][0], 0.286000, 1.600000);
PlayerTextDrawTextSize(playerid, fstd_p[playerid][0], 1280.000000, 1280.000000);
PlayerTextDrawAlignment(playerid, fstd_p[playerid][0], 2);
PlayerTextDrawColor(playerid, fstd_p[playerid][0], 0xFFFFFFFF);
PlayerTextDrawUseBox(playerid, fstd_p[playerid][0], 0);
PlayerTextDrawBoxColor(playerid, fstd_p[playerid][0], 0x00000000);
PlayerTextDrawSetShadow(playerid, fstd_p[playerid][0], 2);
PlayerTextDrawSetOutline(playerid, fstd_p[playerid][0], 0);
PlayerTextDrawBackgroundColor(playerid, fstd_p[playerid][0], 0x00000033);
PlayerTextDrawFont(playerid, fstd_p[playerid][0], 2);
PlayerTextDrawSetProportional(playerid, fstd_p[playerid][0], 1);
PlayerTextDrawSetSelectable(playerid, fstd_p[playerid][0], 0);

TextDrawShowForPlayer(playerid, fstd[0]);

for(new i; i < 13; i++) PlayerTextDrawShow(playerid, fstd_p[playerid][i]);
 
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу