баги с лого please HELPPP

save

Новичок
Автор темы
3
0
C:\Users\Ñàâà\Desktop\edit.pwn(3812) : loose indentation
C:\Users\Ñàâà\Desktop\edit.pwn(3812) : warning 219: local variable "Logo" shadows a variable at a preceding level
Код:
    /*Logo[playerid][0] = CreatePlayerTextDraw(playerid, 545.833129, 1.037034, "Jewel"); // ???????? ???????
    PlayerTextDrawLetterSize(playerid, Logo[playerid][0], 0.474500, 1.774222);
    PlayerTextDrawAlignment(playerid, Logo[playerid][0], 1);
    PlayerTextDrawColor(playerid, Logo[playerid][0], -1);
    PlayerTextDrawSetShadow(playerid, Logo[playerid][0], 0);
    PlayerTextDrawSetOutline(playerid, Logo[playerid][0], 0);
    PlayerTextDrawBackgroundColor(playerid, Logo[playerid][0], 51);
    PlayerTextDrawFont(playerid, Logo[playerid][0], 1);
    PlayerTextDrawSetProportional(playerid, Logo[playerid][0], 1);*/

 new Text:Logo[2];

Logo[0] = TextDrawCreate(554.000000, 4.480008, "A");
TextDrawLetterSize(Logo[0], 0.556500, 2.906665);
TextDrawAlignment(Logo[0], 1);
TextDrawColor(Logo[0], -5963521);
TextDrawSetShadow(Logo[0], 0);
TextDrawSetOutline(Logo[0], 1);
TextDrawBackgroundColor(Logo[0], 51);
TextDrawFont(Logo[0], 1);
TextDrawSetProportional(Logo[0], 1);

Logo[1] = TextDrawCreate(567.000000, 6.719985, "veloy");
TextDrawLetterSize(Logo[1], 0.610499, 2.570666);
TextDrawTextSize(Logo[1], -150.000000, 184.426696);
TextDrawAlignment(Logo[1], 1);
TextDrawColor(Logo[1], -1);
TextDrawSetShadow(Logo[1], 0);
TextDrawSetOutline(Logo[1], 1);
TextDrawBackgroundColor(Logo[1], 51);
TextDrawFont(Logo[1], 1);
TextDrawSetProportional(Logo[1], 1);

Logo[2] = TextDrawCreate(556.500000, 27.626686, "RolePlay");
TextDrawLetterSize(Logo[2], 0.449999, 1.600000);
TextDrawAlignment(Logo[2], 1);
TextDrawColor(Logo[2], -5963521);
TextDrawSetShadow(Logo[2], 0);
TextDrawSetOutline(Logo[2], 1);
TextDrawBackgroundColor(Logo[2], 51);
TextDrawFont(Logo[2], 1);
TextDrawSetProportional(Logo[2], 1);

    //
    gSkinShopDraw[0] = TextDrawCreate(88.000000, 242.000000, "~>~");
    TextDrawBackgroundColor(gSkinShopDraw[0], 255);
    TextDrawFont(gSkinShopDraw[0], 1);
    TextDrawLetterSize(gSkinShopDraw[0], 0.500000, 2.000000);
    TextDrawColor(gSkinShopDraw[0], -1);
    TextDrawSetOutline(gSkinShopDraw[0], 0);
    TextDrawSetProportional(gSkinShopDraw[0], 1);
    TextDrawSetShadow(gSkinShopDraw[0], 1);
    TextDrawTextSize(gSkinShopDraw[0], 107.000000, 22.000000);
    TextDrawSetSelectable(gSkinShopDraw[0], 1);

    gSkinShopDraw[1] = TextDrawCreate(18.000000, 242.000000, "~<~");
    TextDrawBackgroundColor(gSkinShopDraw[1], 255);
    TextDrawFont(gSkinShopDraw[1], 1);
    TextDrawLetterSize(gSkinShopDraw[1], 0.500000, 2.000000);
    TextDrawColor(gSkinShopDraw[1], -1);
    TextDrawSetOutline(gSkinShopDraw[1], 0);
    TextDrawSetProportional(gSkinShopDraw[1], 1);
    TextDrawSetShadow(gSkinShopDraw[1], 1);
    TextDrawTextSize(gSkinShopDraw[1], 36.000000, 22.000000);
    TextDrawSetSelectable(gSkinShopDraw[1], 1);

    gSkinShopDraw[2] = TextDrawCreate(115.000000, 221.000000, "_");
    TextDrawBackgroundColor(gSkinShopDraw[2], 0x00000066);
    TextDrawBoxColor(gSkinShopDraw[2], 0x00000066);
    TextDrawFont(gSkinShopDraw[2], 1);
    TextDrawLetterSize(gSkinShopDraw[2], 0.000000, 7.199996);
    TextDrawUseBox(gSkinShopDraw[2], 1);
    TextDrawTextSize(gSkinShopDraw[2], 11.000000, 0.000000);
    TextDrawSetSelectable(gSkinShopDraw[2], 0);

    gSkinShopDraw[3] = TextDrawCreate(45.000000, 245.000000, "BUY");
    TextDrawBackgroundColor(gSkinShopDraw[3], 255);
    TextDrawFont(gSkinShopDraw[3], 3);
    TextDrawLetterSize(gSkinShopDraw[3], 0.629999, 1.500000);
    TextDrawColor(gSkinShopDraw[3], -1);
    TextDrawSetOutline(gSkinShopDraw[3], 0);
    TextDrawSetProportional(gSkinShopDraw[3], 1);
    TextDrawSetShadow(gSkinShopDraw[3], 1);
    TextDrawTextSize(gSkinShopDraw[3], 83.000000, 15.000000);
    TextDrawSetSelectable(gSkinShopDraw[3], 1);

    gSkinShopDraw[4] = TextDrawCreate(30.000000, 268.000000, "CANCEL");
    TextDrawBackgroundColor(gSkinShopDraw[4], 255);
    TextDrawFont(gSkinShopDraw[4], 3);
    TextDrawLetterSize(gSkinShopDraw[4], 0.629998, 1.500000);
    TextDrawColor(gSkinShopDraw[4], -1);
    TextDrawSetOutline(gSkinShopDraw[4], 0);
    TextDrawSetProportional(gSkinShopDraw[4], 1);
    TextDrawSetShadow(gSkinShopDraw[4], 1);
    TextDrawTextSize(gSkinShopDraw[4], 101.000000, 15.000000);
    TextDrawSetSelectable(gSkinShopDraw[4], 1);
    //PAINTBALL
    PaintText[0] = TextDrawCreate(510.000000, 239.000000, "~b~TEAM BLUE: ~w~0");
    TextDrawBackgroundColor(PaintText[0], 255);
    TextDrawFont(PaintText[0], 1);
    TextDrawLetterSize(PaintText[0], 0.300000, 1.000000);
    TextDrawColor(PaintText[0], -1);
    TextDrawSetOutline(PaintText[0], 0);
    TextDrawSetProportional(PaintText[0], 1);
    TextDrawSetShadow(PaintText[0], 1);
C:\Users\Ñàâà\Desktop\edit.pwn(3814) : loose indentation
C:\Users\Ñàâà\Desktop\edit.pwn(3835) : error 032: array index out of bounds (variable "Logo")
C:\Users\Ñàâà\Desktop\edit.pwn(3836) : error 032: array index out of bounds (variable "Logo")
C:\Users\Ñàâà\Desktop\edit.pwn(3837) : error 032: array index out of bounds (variable "Logo")
C:\Users\Ñàâà\Desktop\edit.pwn(3838) : error 032: array index out of bounds (variable "Logo")
C:\Users\Ñàâà\Desktop\edit.pwn(3839) : error 032: array index out of bounds (variable "Logo")
C:\Users\Ñàâà\Desktop\edit.pwn(3840) : error 032: array index out of bounds (variable "Logo")
C:\Users\Ñàâà\Desktop\edit.pwn(3841) : error 032: array index out of bounds (variable "Logo")
C:\Users\Ñàâà\Desktop\edit.pwn(3842) : error 032: array index out of bounds (variable "Logo")
C:\Users\Ñàâà\Desktop\edit.pwn(3843) : error 032: array index out of bounds (variable "Logo")
C:\Users\Ñàâà\Desktop\edit.pwn(3846) : loose indentation
C:\Users\Ñàâà\Desktop\edit.pwn(3911) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright (c) 1997-2017, ITB CompuPhase
 

kaZax

samp.work
Проверенный
150
23
Измени:
new Text:Logo[3];

Строку 3911 отдельно скинь.
 

repugnantbytheway

Известный
140
38
Впредь комментариями будь добр указывать строки, в которых имеются ошибки.

Где ты выкопал компилятор, который номера ошибок/предупреждений не показывает?
loose indentation - исправь табуляцию кода в указанных строках (по рабоче-крестьянски: оформи код лесенкой).
local variable "%s" shadows a variable at a preceding level - пытаешься создать переменную, которая уже имеется в данной зоне видимости, либо является глобальной (переменную переименуй, и научись в названии переменных описывать их суть).

Если желаешь и дальше продолжать учить язык, советую прочитать рекомендации по написанию кода.
 

Похожие темы

  1. Ответы
    39
    Просмотры
    21K
  2. У
    • Вопрос
    Ответы
    4
    Просмотры
    316
    Помощь
    Удалённый пользователь 452116
    У