Добро пожаловать на Pro Pawn - Портал о PAWN-скриптинге.
Страница 3 из 3 ПерваяПервая 1 2 3
Показано с 21 по 23 из 23
  1. #21
    Аватар для Mr.DeViLsS
    Пользователь

    Статус
    Оффлайн
    Регистрация
    30.03.2014
    Сообщений
    132
    Репутация:
    -2 ±
    бред какой то, проблема вот с этим TD

    Код:
    	Inventory[playerid][0] = CreatePlayerTextDraw(playerid, 260.500000, 126.377746, "");
    	PlayerTextDrawLetterSize(playerid, Inventory[playerid][0], 0.000000, 0.000000);
    	PlayerTextDrawTextSize(playerid, Inventory[playerid][0], 35.000000, 40.222198);
    	PlayerTextDrawAlignment(playerid, Inventory[playerid][0], 1);
    	PlayerTextDrawColor(playerid, Inventory[playerid][0], -1);
    	PlayerTextDrawSetShadow(playerid, Inventory[playerid][0], 0);
    	PlayerTextDrawSetOutline(playerid, Inventory[playerid][0], 0);
    	PlayerTextDrawBackgroundColor(playerid, Inventory[playerid][0], -1061109505);
    	PlayerTextDrawFont(playerid, Inventory[playerid][0], 5);
    	PlayerTextDrawSetProportional(playerid, Inventory[playerid][0], 1);
    	PlayerTextDrawSetShadow(playerid, Inventory[playerid][0], 0);
    	PlayerTextDrawSetSelectable(playerid, Inventory[playerid][0], true);
    	PlayerTextDrawSetPreviewModel(playerid, Inventory[playerid][0], 19461);
    	PlayerTextDrawSetPreviewRot(playerid, Inventory[playerid][0], 0.000000, 0.000000, 0.000000, -1.000000);

  2. #22
    Аватар для DeimoS
    Модератор?

    Статус
    Оффлайн
    Регистрация
    27.01.2014
    Адрес
    Восточный Мордор
    Сообщений
    5,588
    Репутация:
    1984 ±
    Цитата Сообщение от Mr.DeViLsS Посмотреть сообщение
    бред какой то, проблема вот с этим TD

    Код:
    	Inventory[playerid][0] = CreatePlayerTextDraw(playerid, 260.500000, 126.377746, "");
    	PlayerTextDrawLetterSize(playerid, Inventory[playerid][0], 0.000000, 0.000000);
    	PlayerTextDrawTextSize(playerid, Inventory[playerid][0], 35.000000, 40.222198);
    	PlayerTextDrawAlignment(playerid, Inventory[playerid][0], 1);
    	PlayerTextDrawColor(playerid, Inventory[playerid][0], -1);
    	PlayerTextDrawSetShadow(playerid, Inventory[playerid][0], 0);
    	PlayerTextDrawSetOutline(playerid, Inventory[playerid][0], 0);
    	PlayerTextDrawBackgroundColor(playerid, Inventory[playerid][0], -1061109505);
    	PlayerTextDrawFont(playerid, Inventory[playerid][0], 5);
    	PlayerTextDrawSetProportional(playerid, Inventory[playerid][0], 1);
    	PlayerTextDrawSetShadow(playerid, Inventory[playerid][0], 0);
    	PlayerTextDrawSetSelectable(playerid, Inventory[playerid][0], true);
    	PlayerTextDrawSetPreviewModel(playerid, Inventory[playerid][0], 19461);
    	PlayerTextDrawSetPreviewRot(playerid, Inventory[playerid][0], 0.000000, 0.000000, 0.000000, -1.000000);
    Я же сказал тебе что логировать. В этих двух pVar хранятся ID ячеек, данные которых изменяются. И именно где-то там проблема (я бы обратил внимание на UpdateInventory и на ObjInventory. Именно в каком-то из этих двух идёт передача данных из одной ячейки в другую).
    А сами текстдравы тут не причём. Криво сделана сама система действий
    Связаться со мной в VK можно через личные сообщения этой группы
    Заказы не принимаю

    Широко известно, что идеи стоят 0.8333 цента каждая (исходя из рыночной цены 10 центов за дюжину).
    Великих идей полно, на них нет спроса.
    Воплощение идеи в законченную игру требует долгой работы,
    таланта, терпения и креативности, не говоря уж о затратах денег, времени и ресурсов.
    Предложить идею просто, воплотить – вот в чём проблема

    Steve Pavlina

  3. #23
    Аватар для Mr.DeViLsS
    Пользователь

    Статус
    Оффлайн
    Регистрация
    30.03.2014
    Сообщений
    132
    Репутация:
    -2 ±
    тут вроде бы все нормально.

    Код:
    stock ObjInventory(playerid)
    {
        if(GetPVarInt(playerid,"ChangeSlot") == GetPVarInt(playerid,"SelectSlot")) return SetPVarInt(playerid,"ChangeSlot",0);
    	if(PlayerInfo[playerid][pInvSlot][GetPVarInt(playerid,"SelectSlot") - 1] != 0 && PlayerInfo[playerid][pInvSlot][GetPVarInt(playerid,"SelectSlot") - 1] != PlayerInfo[playerid][pInvSlot][GetPVarInt(playerid,"ChangeSlot") - 1]) return SetPVarInt(playerid,"ChangeSlot",0);
        if(PlayerInfo[playerid][pInvSlot][GetPVarInt(playerid,"SelectSlot") - 1] == PlayerInfo[playerid][pInvSlot][GetPVarInt(playerid,"ChangeSlot") - 1])
    	{
            PlayerInfo[playerid][pInvSlot][GetPVarInt(playerid,"ChangeSlot") - 1] = 0;
            PlayerInfo[playerid][pInvKol][GetPVarInt(playerid,"SelectSlot") - 1] += PlayerInfo[playerid][pInvKol][GetPVarInt(playerid,"ChangeSlot") - 1];
            PlayerInfo[playerid][pInvKol][GetPVarInt(playerid,"ChangeSlot") - 1] = 0;
        }
    	if(PlayerInfo[playerid][pInvSlot][GetPVarInt(playerid,"SelectSlot") - 1] == 0)
    	{
            PlayerInfo[playerid][pInvSlot][GetPVarInt(playerid,"SelectSlot") - 1] = PlayerInfo[playerid][pInvSlot][GetPVarInt(playerid,"ChangeSlot") - 1];
            PlayerInfo[playerid][pInvKol][GetPVarInt(playerid,"SelectSlot") - 1] = PlayerInfo[playerid][pInvKol][GetPVarInt(playerid,"ChangeSlot") - 1];
            PlayerInfo[playerid][pInvSlot][GetPVarInt(playerid,"ChangeSlot") - 1] = 0;
            PlayerInfo[playerid][pInvKol][GetPVarInt(playerid,"ChangeSlot") - 1] = 0;
        }
    	return 1;
    }
    Код:
    stock UpdateInventory(playerid)
    {
        if(GetPVarInt(playerid,"ChangeSlot") == GetPVarInt(playerid,"SelectSlot")) return SetPVarInt(playerid,"ChangeSlot",0);
    	if(PlayerInfo[playerid][pInvSlot][GetPVarInt(playerid,"SelectSlot") - 1] != 0 && PlayerInfo[playerid][pInvSlot][GetPVarInt(playerid,"SelectSlot") - 1] != PlayerInfo[playerid][pInvSlot][GetPVarInt(playerid,"ChangeSlot") - 1]) return SetPVarInt(playerid,"ChangeSlot",0);
        if(PlayerInfo[playerid][pInvSlot][GetPVarInt(playerid,"ChangeSlot") - 1] != 0)
    	{
    		new item = PlayerInfo[playerid][pInvSlot][GetPVarInt(playerid,"ChangeSlot") - 1];
    	    PlayerTextDrawSetPreviewModel(playerid,Inventory[playerid][GetPVarInt(playerid,"ChangeSlot")], 19461),PlayerTextDrawSetPreviewRot(playerid, Inventory[playerid][GetPVarInt(playerid,"ChangeSlot")], 0.000000, 0.000000, 90.000000, 0.100000);
    	    PlayerTextDrawSetPreviewModel(playerid,Inventory[playerid][GetPVarInt(playerid,"SelectSlot")], Items_All[PlayerInfo[playerid][pInvSlot][GetPVarInt(playerid,"ChangeSlot") - 1]][invObject]),PlayerTextDrawSetPreviewRot(playerid, Inventory[playerid][GetPVarInt(playerid,"SelectSlot")], 0.000000, 0.000000, 0.000000, 1.000000);
    	    if(item == 4 || item == 9 || item == 10 || item == 13 || item == 14) PlayerTextDrawSetPreviewRot(playerid, Inventory[playerid][GetPVarInt(playerid,"SelectSlot")], 270.000000, 0.000000, 180.000000, 1.000000);
    	    PlayerTextDrawShow(playerid,Inventory[playerid][GetPVarInt(playerid,"ChangeSlot")]);
    	    PlayerTextDrawShow(playerid,Inventory[playerid][GetPVarInt(playerid,"SelectSlot")]);
    	}
    	return 1;
    }

 

 
Страница 3 из 3 ПерваяПервая 1 2 3

Информация о теме

Пользователи, просматривающие эту тему

Эту тему просматривают: 1 (пользователей: 0 , гостей: 1)

Ваши права

  • Вы не можете создавать новые темы
  • Вы не можете отвечать в темах
  • Вы не можете прикреплять вложения
  • Вы не можете редактировать свои сообщения
  •