SA-MP Forums Archive
Help Joestaff Inventory system dont work for me - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help Joestaff Inventory system dont work for me (/showthread.php?tid=590230)



Inventory system dont work for other languages - MasonSFW - 27.09.2015

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;




Re: Help Joestaff Inventory system dont work for me - MasonSFW - 27.09.2015

..