ShowModelSelectionMenu help?
#1

The selection menu won't show up maybe i doing something wrong i hope you guys are able to see what i am doing wrong.


PHP код:
new malepoliceskinlist mS_INVALID_LISTID;
new 
femalepoliceskinlist mS_INVALID_LISTID
PHP код:
    malepoliceskinlist LoadModelSelectionMenu("malepoliceskins.txt");
    
femalepoliceskinlist LoadModelSelectionMenu("femalepoliceskins.txt"); 
PHP код:
public OnPlayerModelSelection(playeridresponselistidmodelid)
{
    if(
listid == skins)
    {
        if(
response)
        {
            
SendClientMessage(playerid0xFF0000FF"Skin Changed");
            
SetPlayerSkin(playeridmodelid);
        }
        else 
SendClientMessage(playerid0xFF0000FF"Canceled skin selection");
     }
    if(
listid == malepoliceskinlist)
    {
        if(
response)
        {
            
SendClientMessage(playeridCOLOR_WHITE"Uniform Changed");
            
SetPlayerSkin(playeridmodelid);
        }
        else 
SendClientMessage(playerid0xFF0000FF"Canceled skin selection");
        return 
1;
    }
    if(
listid == femalepoliceskinlist)
    {
        if(
response)
        {
            
SendClientMessage(playeridCOLOR_WHITE"Uniform Changed");
            
SetPlayerSkin(playeridmodelid);
        }
        else 
SendClientMessage(playerid0xFF0000FF"Canceled skin selection");
        return 
1;
    }
    return 
1;

PHP код:
    malepoliceskinlist LoadModelSelectionMenu("malepoliceskins.txt");
    
femalepoliceskinlist LoadModelSelectionMenu("femalepoliceskins.txt"); 
PHP код:
switch(PlayerInfo[playerid][pGender])
                     {
                         case 
1// Male
                         
{
                             
ShowModelSelectionMenu(playeridmalepoliceskinlist"Uniform");
                         }
                         case 
2// Female
                           
{
                               
ShowModelSelectionMenu(playeridfemalepoliceskinlist"Uniform");
                           } 
Reply
#2

What is in your malepoliceskins.txt and femalepoliceskins.txt?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)