Quote:
Originally Posted by YParushev
I do not speak good English,Sorry.
|
No need to be sorry, just do you best and we are good.
Quote:
Originally Posted by YParushev
Try "nom cs or de" (for example) and make a selection.Is not displayed correctly.In this case both codes do not function well.
This code works, but it gives an error and sometimes can not nominate a map and report error logged.
Code:
public nomination_handleMatchChoice( player_id, menu, item )
{
if( item < 0 )
{
return PLUGIN_CONTINUE;
}
// Get item info
new mapIndex, info[ 1 ];
new access, callback;
menu_item_getinfo( g_nominationMatchesMenu[ player_id ], item, access, info, 1, _, _, callback );
mapIndex = info[ 0 ];
map_nominate( player_id, mapIndex );
return PLUGIN_HANDLED;
}
Error:
Code:
L 03/31/2016 - 05:44:54: Invalid cellvector handle provided (15:-40:267)
L 03/31/2016 - 05:44:54: [AMXX] Displaying debug trace (plugin "galileo.amxx")
L 03/31/2016 - 05:44:54: [AMXX] Run time error 10: native error (native "ArrayGetString")
L 03/31/2016 - 05:44:54: [AMXX] [0] galileo.sma::map_nominate (line 2434)
L 03/31/2016 - 05:44:54: [AMXX] [1] galileo.sma::nomination_handleMatchChoice (line 2315)
Other code works to "say nomenu", but for "say nom cs" (or any card) does not work.
|
Ok, I got it, the problem is not that code, you changed. As you saw, it it bugged using the 'nomenu'. I need to get a way to find the right map index when using the 'nom some'.
Now I see what is wrong and I mostly know how to fix it. You helped me a lot to find what is wrong, thank you. I am going to fix it and release it until tomorrow.
__________________