Доступ к архиву

Переход в группу "Пользователь"

300.00 ₽
Одноразовый платёж
Быстрый переход в группу "Пользователи", без надобности написания постов и ожидания.

Покупка дает возможность:
Быть полноправным участником форума
Нормальное копирование кода
Создавать темы
Скачивать файлы
Доступ к архиву Pawno-Info

Про текстдравы (SetPreviewModel)

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

C0mBat1ve

Ученик
Код:
stock InteractSlot(playerid,PlayerText:playertextid)
{
	new interactslot;
	for(new i=0; i<MAX_SLOTS-1; i++)
	{
		if(playertextid==Slot[playerid][i]){interactslot=i+1;}
	}
	if(ItemInfo[playerid][interactslot][modelid]==0)//перетаскивание
	{
		ItemInfo[playerid][interactslot][modelid]=ItemInfo[playerid][selectedslot[playerid]][modelid];
		ItemInfo[playerid][interactslot][amount]=ItemInfo[playerid][selectedslot[playerid]][amount];
		ItemInfo[playerid][interactslot][equip]=ItemInfo[playerid][selectedslot[playerid]][equip];
		strmid(ItemInfo[playerid][interactslot][owner],ItemInfo[playerid][selectedslot[playerid]][owner],0,24,24);
		ItemInfo[playerid][selectedslot[playerid]][equip]=false;
		ItemInfo[playerid][selectedslot[playerid]][amount]=0;
		ItemInfo[playerid][selectedslot[playerid]][modelid]=0;
		strmid(ItemInfo[playerid][selectedslot[playerid]][owner],"",0,24,24);
		PlayerTextDrawSetPreviewModel(playerid,Slot[playerid][interactslot-1],ItemInfo[playerid][interactslot][modelid]);
		PlayerTextDrawSetPreviewRot(playerid, Slot[playerid][selectedslot[playerid]-1], 2.000000, 0.000000, 20.000000, 200.000000);
		UnselectSlot(playerid);
	}
}
stock UnselectSlot(playerid)
{
	selectedslot[playerid]=0;
	for(new i=0; i<MAX_SLOTS-1; i++)
	{
		PlayerTextDrawBackgroundColor(playerid, Slot[playerid][i], 0xFFFFFFFF);
		PlayerTextDrawHide(playerid,Slot[playerid][i]);
		PlayerTextDrawShow(playerid,Slot[playerid][i]);
	}
	SaveInventory(playerid);
}
Вопрос: Почему модель не обновляется? В том месте, где должна быть PreviewModel - пустота. Это код перетаскивания предмета с одной ячейки в другую.
 
Последнее редактирование:
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу