Dialog problem +rep
#1

i get this error

Код:
error 001: expected token: ";", but found "}"
here is dialog

Код:
	if(dialogid == 158)
	{
	    if(response)
	    {
	        if(listitem == 0)
	        {
  			    SendClientMessage(playerid, COLOR_RED, "Incorrect! Kicked");
			    Kick(playerid)
			}
			if(listitem == 1)
			{
  			    SendClientMessage(playerid, COLOR_RED, "Incorrect! Kicked");
			    Kick(playerid);
			}
			if(listitem == 2)
			{
			    SendClientMessage(playerid, COLOR_WHITE, "Correct! Moving on!");
  			    ShowPlayerDialog(playerid, 159, DIALOG_STYLE_LIST, "What is the proper use of advert?","I selling good stuff\nSelling a new Landstalker for 15 grand.\nI selling sex /pm me","Choose","Leave");
			}
		}
	}
Reply
#2

pawn Код:
Kick(playerid);
You forgot the ; at the first kick at listitem 1
Reply
#3

yiou forgot the ; semicolon ^^
Код:
	        if(listitem == 0)
	        {
  			    SendClientMessage(playerid, COLOR_RED, "Incorrect! Kicked");
			    Kick(playerid);
		}
Reply
#4

Код:
if(dialogid == 158)
	{
	    if(response)
	    {
	        if(listitem == 0)
	        {
  			    SendClientMessage(playerid, COLOR_RED, "Incorrect! Kicked");
			    Kick(playerid);
			}
			if(listitem == 1)
			{
  			    SendClientMessage(playerid, COLOR_RED, "Incorrect! Kicked");
			    Kick(playerid);
			}
			if(listitem == 2)
			{
			    SendClientMessage(playerid, COLOR_WHITE, "Correct! Moving on!");
  			    ShowPlayerDialog(playerid, 159, DIALOG_STYLE_LIST, "What is the proper use of advert?","I selling good stuff\nSelling a new Landstalker for 15 grand.\nI selling sex /pm me","Choose","Leave");
			}
		}
	}
Reply
#5

ohh i saw that now guys. thanks you anyway
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)