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

Показывается текстдрав только 0 ID, остальным нет

Добрый, у меня в магазине одежды при выборе текстдрав цены показывается только 0 ID, а остальным игрокам нечего нету, пусто вместо цены. Подскажите куда копать смотреть. Код ниже как все это дело выглядит

static stock PlayerText:gSkinShopPriceDraw[MAX_PLAYERS]={PlayerText:-1};

C++:
    if(gSkinShopPriceDraw[playerid] == PlayerText:-1)
    {
        gSkinShopPriceDraw[playerid] = CreatePlayerTextDraw(playerid, 587.625000, 234.749893, "5000000$");
        PlayerTextDrawLetterSize(playerid, gSkinShopPriceDraw[playerid], 0.288749, 1.465832);
        PlayerTextDrawAlignment(playerid, gSkinShopPriceDraw[playerid], 2);
        PlayerTextDrawColor(playerid, gSkinShopPriceDraw[playerid], -1);
        PlayerTextDrawUseBox(playerid, gSkinShopPriceDraw[playerid], true);
        PlayerTextDrawBoxColor(playerid, gSkinShopPriceDraw[playerid], 0);
        PlayerTextDrawSetShadow(playerid, gSkinShopPriceDraw[playerid], 0);
        PlayerTextDrawSetOutline(playerid, gSkinShopPriceDraw[playerid], 1);
        PlayerTextDrawBackgroundColor(playerid, gSkinShopPriceDraw[playerid], 51);
        PlayerTextDrawFont(playerid, gSkinShopPriceDraw[playerid], 1);
        PlayerTextDrawSetProportional(playerid, gSkinShopPriceDraw[playerid], 1);
    }
C++:
stock BuySkin(playerid, idx)
{
    if(BizzInfo[idx][bProduct] < 50 || strcmp(BizzInfo[idx][bOwner],"None",true) == 0) return SendClientMessage(playerid,COLOR_GREY, !"На складе нет вещей / У бизнеса нет владельца!");
    if(PlayerInfo[playerid][pMember] != 0) return SendClientMessage(playerid, COLOR_GREY, !"Ошибка: Магазин одежды не доступен если вы находитесь в организации");
    SetPVarInt(playerid,"Bizzid",idx);
    if(GetPVarInt(playerid,"CloserInClothes")) DeletePVar(playerid,"CloserInClothes");
    else if(!GetPVarInt(playerid,"PlayerInClothes"))
    {
          for(new i=0; i<7; i++)
        {
            if(gSkinShopDraw[i]==Text:-1) continue;
            TextDrawShowForPlayer(playerid,Text:gSkinShopDraw[i]);
        }
        if(gSkinShopPriceDraw[playerid] != PlayerText:-1) PlayerTextDrawShow(playerid,gSkinShopPriceDraw[playerid]);
        SetPVarInt(playerid,"PlayerSkinSlot",(PlayerInfo[playerid][pSex] == 1) ? (39) : (0));
        SetPlayerInteriorEx(playerid,5);
        SetPVarInt(playerid,"OldSkin", GetPlayerSkin(playerid));
        SetPPos(playerid, 209.5334, -8.1026, 1005.2109);
        SetPlayerFacingAngle(playerid, 269.6063);
        SetPlayerCameraPos(playerid, 209.5334 + (1.5 * floatsin(-269.6063, degrees)), -8.1026 + (1.5 * floatcos(-269.6063, degrees)), 1005.2109+0.3);
        SetPlayerCameraLookAt(playerid, 209.5334, -8.1026, 1005.2109+0.3);
        SetPlayerVirtualWorldEx(playerid, playerid + 1);
        SetPlayerSkinEx(playerid,gSkins[GetPVarInt(playerid,"PlayerSkinSlot")][skinID]);
        format(stringer,15,"%i$",gSkins[GetPVarInt(playerid,"PlayerSkinSlot")][skinPrice]);
        PlayerTextDrawSetString(playerid,gSkinShopPriceDraw[playerid],stringer);
        SetPVarInt(playerid,"PlayerInClothes", true);
        SelectTextDraw(playerid, 0x359ed8FF);//SelectTextDraw(playerid, 0xAFAFAFAA)
    }
    return true;
}
 
Сверху Снизу