mSelection
#1

I using the include mSelection so was thinking is there possible make this for weapon too?

here is an ec

Код:
}


COMMAND:testgun(playerid, params[])
{
	ShowModelSelectionMenu(playerid, gunlist, "Gun Menu");
	return 1;
	
}
PHP код:
}
public 
OnPlayerModelSelection(playeridresponselistidmodelid)
{
    if(
listid == gunlist)
    {
        if(
response)
        {
            
SendClientMessage(playeridCOLOR_WHITE"Weapon 1");
            
GivePlayerWeaponEx(playeridmodelid);
        }
        else 
SendClientMessage(playerid0xFF0000FF"Canceled gun selection");
        return 
1;
    }
    return 
1
but i get this
Код:
warning 202: number of arguments does not match definition
Reply
#2

This is the real format of this function.
pawn Код:
ShowModelSelectionMenu(playerid, ListID, header_text[], dialogBGcolor = 0x4A5A6BBB, previewBGcolor = 0x88888899 , tdSelectionColor)
So you need to give the remaining arguments.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)