13.03.2011, 09:39
Very nice plugin! Maybe i use it
I'm glad you're addressing these, however I have another suggestion - keep the AMX attachment as it is but offer some sort of share functionality so you can, if you want, use the containers in multiple scripts, as with the GVars plugin (or properties, which, Kyosaur, you could use for this LONG before plugins were available).
|
Yeah i know, i used them before the gvar plugin got look up speed improvements (i guess this was from the hash tables). I used to defend the properties (i actually did so early in the gvar topic) but there's no point anymore IMO.
Its pretty awesome to see more people release plugins like this. The one thing i hate about this forum is that there isnt a C/C++ help section. It would be really cool to actually have one where people could write tutorials, explain things about the PAWN SDK (which isnt even supported anymore), and just answer questions without complaining that "this isnt a C help forum". I feel this would help the community grow and become a lot better. It feels like when it comes to plugins, there is 0 support (especially since we dont even have an official SDK anymore) . Anyways, Im glad to see the lack of support isnt stopping people/more people are developing (it felt like there were only a small few developers at one time ). |
Quote:
|
I'm glad you're addressing these, however I have another suggestion - keep the AMX attachment as it is but offer some sort of share functionality so you can, if you want, use the containers in multiple scripts, as with the GVars plugin (or properties, which, Kyosaur, you could use for this LONG before plugins were available).
|
native vector_globalize(vecid); // makes vector visible to all scripts (no data loss) native vector_deglobalize(vecid); // deglobalizes vector (vector removed from all scripts except calling script) native vector_is_globalized(vecid); // is vector ID globalized native map_globalize(mapid); // makes map visible to all scripts (no data loss) native map_deglobalize(mapid); // deglobalizes map (map removed from all scripts except calling script) native map_is_globalized(mapid); // is map ID globalized
stock GiveItem(playerid, itemid, amount = 1)
{
new slot = vector_find(VectorID(playerid, ITEM_VECTOR_ID), itemid);
FMSG(playerid, COL_ACTION, "PID:%d ITEMID:%d AMOUNT:%d || SLOT:%d SLOTITEM:%d", playerid, itemid, amount, slot, vector_get(VectorID(playerid, ITEM_VECTOR_ID), slot));