Nooo I'm pretty sure im missing something, HELP!
#1

ok i've make my dialog... its a simple objective input text one but it dosent appear or work for some reason heres the whole code...

Код:
dcmd_order(playerid, params[])
{
	#pragma unused params
 	ShowPlayerDialog(playerid, 0, DIALOG_STYLE_INPUT, "ORDER", "Type your objective for the --------------.", "Submit", "Cancel");
	return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 0 && response)
{

switch(listitem)
{
case 0:
{
for(new i=0; i<MAX_PLAYERS; i++)
{
new string [256];
format(string, sizeof(string), "OBJECTIVE: %s", inputtext);
ShowBriefMessageForPlayer(i, string, 5000); // its just a basic textdraw at the bottom of the screen shown for all!
}
}
}
}
return 1;
}

Please help me if i missed something.. I just came back to samp because of a little holiday..
Reply


Messages In This Thread
Nooo I'm pretty sure im missing something, HELP! - by Lorenc_ - 20.06.2010, 11:03
Re: Nooo I'm pretty sure im missing something, HELP! - by DJDhan - 20.06.2010, 11:17
Re: Nooo I'm pretty sure im missing something, HELP! - by ToPhrESH - 20.06.2010, 11:20
Re: Nooo I'm pretty sure im missing something, HELP! - by Joe_ - 20.06.2010, 11:29
Re: Nooo I'm pretty sure im missing something, HELP! - by DJDhan - 20.06.2010, 11:30
Re: Nooo I'm pretty sure im missing something, HELP! - by Lorenc_ - 20.06.2010, 21:11

Forum Jump:


Users browsing this thread: 1 Guest(s)