SA-MP Forums Archive
item help - 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: item help (/showthread.php?tid=574145)



item help - Trucido - 14.05.2015

hello, im using a base script that has custom weapons and shit with mysql. when i try to added another item tho it doesnt work in the inventory but the script says i have it, but it bugs my inventory because it wont allow more than 255 items. P90 is item 256 so if anyone can help i'd appreciate it if u need more of the code please ask

Код:
new items[][itemEnum] =
{
{"AK-M", 355, 2600, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1.028826, 95.800003, 99.700012, -98.099998, 6, IDX_STD_ITEM, ITEM_WEAPON, 30, 0, 4.65, 1, 0, 0}, // this is 255
    {"P90", 353, 1700, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.956525, -81.100135, 91.900032, 89.099998, 6, IDX_STD_ITEM, ITEM_WEAPON, 29, 0, 3.1, 1, 0, 0} // 256
};