Dialogs Click problem
#1

Excuse me, I added a New dialogs and it was working, iswear but Now when i click on the dialog in game, Nothing Happen like before, Did i do anything wrong?
Reply
#2

You mean, u click on a dialog button, dialog disappears and nothing else? Or what?
Reply
#3

Yes, but it was working, When i click on the dialog, it gives me the gun as i set it but now it is not, Did i do anything wrong
Reply
#4

Give the code what you wrote under OnPlayerDialogResponse
Reply
#5

So, what have you done right before it stopped working?
Reply
#6

Please help me
Reply
#7

Quote:

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 88
{
if(response)
{
if(listitem == 0)
{
GivePlayerWeapon(playerid, 31, 1000);
GivePlayerWeapon(playerid, 24, 1000);
GivePlayerWeapon(playerid, 29, 1000);
SendClientMessage(playerid, red, "THANKS FOR DONATION");
}
if(listitem == 1)
{
SetPlayerSkin(playerid, 165);
}
if(listitem == 2)
{
SetPlayerColor(playerid,COLOR_PURPLE);
}
if(listitem == 3)
{
SendClientMessage(playerid, red, "Error: We will add the toys soon");
}
}
return 1;
}
return 0;
}

Here
But the problem isn't on the code, it is on the script or something, i told you, IT - WAS - WORKING WITH ME BEFORE but now not, i think i did something and it disabled the Dialogs? xD
Reply
#8

The reason is:You have wrote return 0; at the end of the script. Write there return 1;
Reply
#9

oliver, you are very sure?
Reply
#10

Quote:
Originally Posted by oliver12
Посмотреть сообщение
The reason is:You have wrote return 0; at the end of the script. Write there return 1;
Actually, it has to return 0, otherwise the other dialogs in other scripts won't be accessed.

Jermi, may you tell what have you done before this problem come up?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)