R
rouzbeh
Guest
hi
so i made an inventory system with 5 slots
and this is my script for Item pick up :
but i want to 2 or more items like each other transform to one item and draw a text of number of that item in front of it but i dont know how i can do it
sorry for my bad english i try to explain well
and also i dont use arrays because i cant use them to send them to server ( my game is online using 39dll)
so pls help me thx
so i made an inventory system with 5 slots
and this is my script for Item pick up :
Code:
itemnumber = argument0;
if(Slot1 == -1)
{
Slot1 = itemnumber;
return(0);
}
if(Slot1 != -1)
{
if(Slot2 == -1)
{
Slot2 = itemnumber;
return(0);
}
if(Slot2 != -1)
{
if(Slot3 == -1)
{
Slot3 = itemnumber;
return(0);
}
if(Slot3 != -1)
{
if(Slot4 == -1)
{
Slot4 = itemnumber
return(0);
}
if(Slot4 != -1)
{
if(Slot5 == -1)
{
Slot5 = itemnumber;
return(0);
}
if(Slot5 != -1)
{
}
}
}
}
}
sorry for my bad english i try to explain well
and also i dont use arrays because i cant use them to send them to server ( my game is online using 39dll)
so pls help me thx