Thread: [Subplugin Submission] [ZP] Extra Item : Pack of grenades 1.4
View Single Post
Dare.Devil
Member
Join Date: May 2014
Old 08-07-2014 , 01:57   Re: [ZP] Extra Item : Pack of grenades 1.4
Reply With Quote #22

Quote:
Originally Posted by zmd94 View Post
@ Dare.Devil, you can try it by yourself. Just use this code:
if I use those I get this following error which is why I removed this napalm 1.3 plugin

L 08/05/2014 - 21:122: [AMXX] Displaying debug trace (plugin "napalm_nades.amxx")
L 08/05/2014 - 21:122: [AMXX] Run time error 4: index out of bounds
L 08/05/2014 - 21:122: [AMXX] [0] 38966.attach::fw_SetModel (line 339)
here's the PHP.. line 339 is: for(check_index = 0; check_index < sizeof(allow_map_prefix); check_index++)
{

PHP Code:
public plugin_precache()
{
    new 
map_name[32], check_index
    get_mapname
(map_namesizeof(map_name))
    
    for(
check_index 0check_index sizeof(allow_map_prefix); check_index++)
    {
        if(
equali(map_nameallow_map_prefix[check_index], strlen(allow_map_prefix[check_index])))
            break
    } 
Dare.Devil is offline