ShowModelSelectionMenuEx not responding
#1

Nevermind, i found out by myself
Reply
#2

This is how the menu looks when i type /buyplane

Reply
#3

mSelection doesn't work like a regular dialog, modelid != listiem. modelid is the id of the model in the preview textdraw not the listitem.
Instead of doing this:
pawn Код:
if(modelid == 0 && PlayerInfo[playerid][pAccount] > 8999999) // Maveric
if(modelid == 1 && PlayerInfo[playerid][pAccount] > 6999999) // Sparrow
if(modelid == 2 && PlayerInfo[playerid][pAccount] > 9999999) // Shamal
Do this instead and it should work:
pawn Код:
if(modelid == 487 && PlayerInfo[playerid][pAccount] > 8999999) // Maveric
if(modelid == 469 && PlayerInfo[playerid][pAccount] > 6999999) // Sparrow
if(modelid == 519 && PlayerInfo[playerid][pAccount] > 9999999) // Shamal
Reply
#4

I already tried that, it still doesnt Work
Reply
#5

mSelection handle dynamic and static menus differently, You are using ShowModelSelectionMenuEx which means you are using a dynamic one, if that is the case you must use this callback:
pawn Код:
public OnPlayerModelSelectionEx(playerid, response, extraid, modelid)
Instead of:
pawn Код:
public OnPlayerModelSelection(playerid, response, listid, modelid)
Reply
#6

I have also tried that so, and i just tried Again, it's not responding, the SelectionMenu just disappears when i choose a plane
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)