mSelection OnDialogResponse (Not Responding) -
NinjahZ - 08.04.2015
Okay, so I decided when my player has been refunded through the dialog, he would be able to select a skin.
in the dialog I have
"ShowModelSelectionMenu(playerid, skinlist, "Skin Selection");"
when I have selected the package, it spawns me.
then the mSelection shows, but none of the textdraw responds in anyway at all.
Here is the public function for mSelection.
Код:
public OnPlayerModelSelection(playerid, response, listid, modelid)
{
if(listid == skinlist)
{
if(response)
{
new string[129];
format(string, sizeof(string), "{3685BA}SERVER: {FFFFFF}You have set your skin to ID %d!", modelid);
SendClientMessage(playerid, -1, string);
SetPlayerSkin(playerid, modelid);
}
else
{
SendClientMessage(playerid, -1, "{3685BA}SERVER: {FFFFFF}You must select a skin.");
ShowModelSelectionMenu(playerid, skinlist, "Skin Selection");
return 1;
}
}
return 1;
}
Here is the dialogs that use the mSelection.
Код:
if(dialogid == 159)
{
if(response)
{
new playerexp = PlayerInfo[playerid][pExp];
PlayerInfo[playerid][pExp] = playerexp + 4;
new playerlvl = PlayerInfo[playerid][pLevel];
PlayerInfo[playerid][pLevel] = playerlvl + 1;
PlayerInfo[playerid][pDriveLic] = 1;
SetPlayerPos(playerid, 1715.1201,-1903.1711,13.5665);
GivePlayerCash(playerid, 1000);
SendClientMessage(playerid, COLOR_YELLOW2,"That's all, if you need help you can /helpme, have fun!");
SendClientMessage(playerid, COLOR_LIGHTBLUE,"As you have selected a Refund package with a Driver's License, you will now be spawning in Los Santos instaid of at the DMV.");
ShowModelSelectionMenu(playerid, skinlist, "Skin Selection");
}
else
{
new packthings[] = "Level Package\nItem Package";
ShowPlayerDialog(playerid,158,DIALOG_STYLE_LIST,"Please select a package that you want to start with",packthings,"Select","Leave Game");
}
}
if(dialogid == 160)
{
if(response)
{
PlayerInfo[playerid][pMarijuana] = 100;
PlayerInfo[playerid][pCocaine] = 100;
PlayerInfo[playerid][pMaterials] = 5000;
SetPlayerPos(playerid, 1424.1869,-1696.1482,13.5469);
SendClientMessage(playerid, COLOR_LIGHTBLUE,"A taxi has taken you to the DMV so you can get yourself a Drivers License");
GivePlayerCash(playerid, 4000);
SendClientMessage(playerid, COLOR_YELLOW2,"That's all, if you need help you can /helpme, have fun!");
ShowModelSelectionMenu(playerid, skinlist, "Skin Selection");
}
else
{
new packthings[] = "Level Package \n Item Package";
ShowPlayerDialog(playerid,158,DIALOG_STYLE_LIST,"Please select a package that you want to start with",packthings,"Select","Leave Game");
}
}
Re: mSelection OnDialogResponse (Not Responding) -
NinjahZ - 09.04.2015
Anyone able to help?
Re : mSelection OnDialogResponse (Not Responding) -
Etolas - 09.04.2015
Do you have the txt file with the ID of skins ?
Re: mSelection OnDialogResponse (Not Responding) -
NinjahZ - 09.04.2015
Yes, the skins all show in the mSelection panel.
all skin numbers are on seperate lines.
all the way to 299
I also have updated to 0.3.7
so I tried all the way to 311 but it's still the same, non interactive.
EDIT: I've decided to give up on mSelection due to this problem.
I'll continue to use dialogs until I can figure out why this problem persists.