I added a native to the bazooka plugin ( native give_item_bazooka(id,ammo,sound) ) and used it into the shop plugin, but when i tried to compile, it did not work. The bazooka plugin itself had a few errors without me touching its other coding.
there were also 2 separate sources for
bazooka advanced (to me, reasons unknown), but the way both of them give a bazooka is different.
One uses the C4, and the other has the give_item_bazooka(which is the same thing i think but shorter)
*EDIT: I got it to compile but i made give_item_bazooka its own .inc because when i tried in the bazooka plugin, it didn't compile due to 1 random error that popped up after i did add it in the plugin. But now that i added it as a .inc and then included it with my shop plugin, it compiles, but then when i tested in-game, my plugin wasn't working, i get bad load when i check it in amx_plugins.
*EDIT #2: Problem with my shop plugin( i think ) is due to the bazooka .inc native, but im trying to add the native into the bazooka plugin and im getting error messages. Im setting the native up like this:
PHP Code:
public native_give_item_bazooka(id)
{
return give_item_bazooka[id];
}
and then i get invalid subscript, token, and expression.
__________________
I can't believe I wasted 5 years of my life not knowing how to program correctly. Went too deep into advanced coding before even learning the basics correctly. :c