16.06.2010, 14:53
Quote:
Originally Posted by [R
HydraX ]
So, the menu shows, but how can I get it to take effect, It doesn't seem to be working. |

If you want effect (user interactive menu) then you need to INDENTIFY it
pawn Код:
// somewhere in code
ShowPlayerMenu(playerid, "bla bla", "bla bla", "mycategory", "mysubcategory", 17);
// mycategory is our category now - it can be anything
// mysubcategory is our subcategory now - it can be anything
// 17 is number of options player can choose - it can be anything
// somewhere else in code
public OnPlayerResponse(playerid, chosen)
{
if(EUM_Indentify(playerid, "mycategory", "mysubcategory"))
{
switch(chosen)
{
case 1: /* this is option 1 */ { /* effect */ }
case 2: /* this is option 2 */ { /* effect */ }
case 3: /* this is option 3 */ { /* effect */ }
case 4: /* this is option 4 */ { /* effect */ }
case 5: /* this is option 5 */ { /* effect */ }
case 6: /* this is option 6 */ { /* effect */ }
// up to 17 options now
}
}
return 1;
}