Help Joestaff Inventory system dont work for me
#1

I using this inv's Joestaff sys in other language it don't work because Items doesn't remove from list dialog but English is fine
why?



PHP код:
stock RemoveItem(playeridItemName[],Amount)
{
    for(new 
itemitem <MAX_ITEMSitem++)
    {
        if(!
_GetItemAmountPVar(playerid,item))continue;
        if(!
strcmp(_GetItemNamePVar(playeriditem), ItemNamefalse))
        {
            
_SetItemAmountPVar(playerid,item,_GetItemAmountPVar(playerid,item)-Amount);
            if(
_GetItemAmountPVar(playerid,item)<=0)_SetItemAmountPVar(playerid,item,0);
            if(
_GetItemAmountPVar(playerid,item)>MAX_ITEM_STACK)
            {
                
_SetItemAmountPVar(playeriditemMAX_ITEM_STACK);
                return 
2;
            }
            return 
1;
        }
    }
    return 
0;

Reply
#2

..
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)