I Need Help With Dialog! Is Imported!
#3

Quote:
Originally Posted by Kinglee
Посмотреть сообщение
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new string[256];
if(dialogid == 50 && response)
{
switch(listitem)
{
case 0:
{
if(HasMan[playerid] == 0)
{
HasMan[playerid] = 1;
SendClientMessage(playerid, -1, ".{00FF00}Work!");
}else{
HasMan[playerid] = 0;
SendClientMessage(playerid, -1, ".{FF0000}No Work!");
}
return 1;
}
case 1:
{
ShowPlayerDialog(playerid, 512, DIALOG_STYLE_INPUT, "Be Man", "Press Your Info:", "OK", "No");
return 1;
}
case 2:
{
format(string, sizeof(string), "{00FF00}%s Has WoMan", GetName(playerid));
SendClientMessageToAll(-1, string);
SetTimerEx("ManMessage", 10000, 0, "d", playerid);
return 1;
}
}

if(dialogid == 512 && response)
{
if(!strlen(inputtext)) return SendClientMessage(playerid, -1, "Your Name Please!");
SetPlayerName(playerid, inputtext);
format(string, sizeof(string), "Your New Name:", inputtext);
SendClientMessage(playerid, -1, string);
return 1;
}
}

return 1;
}
Fixed code
Does not work!
What i do ?!
Reply


Messages In This Thread
I Need Help With Dialog! Is Imported! - by ilay65 - 11.09.2014, 19:14
Re: I Need Help With Dialog! Is Imported! - by Dangjai - 11.09.2014, 19:16
Re: I Need Help With Dialog! Is Imported! - by ilay65 - 11.09.2014, 19:20
Re: I Need Help With Dialog! Is Imported! - by ilay65 - 11.09.2014, 19:31
Re: I Need Help With Dialog! Is Imported! - by Dangjai - 11.09.2014, 19:45
Re: I Need Help With Dialog! Is Imported! - by ilay65 - 11.09.2014, 19:49
Re: I Need Help With Dialog! Is Imported! - by ilay65 - 12.09.2014, 09:21
Re : I Need Help With Dialog! Is Imported! - by FilesMAker - 12.09.2014, 09:52
Re: Re : I Need Help With Dialog! Is Imported! - by ilay65 - 12.09.2014, 09:55
Re: I Need Help With Dialog! Is Imported! - by ilay65 - 12.09.2014, 11:31

Forum Jump:


Users browsing this thread: 5 Guest(s)