Dialog problem +rep - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dialog problem +rep (
/showthread.php?tid=305576)
Dialog problem +rep -
PRototype-RP - 23.12.2011
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");
}
}
}
Re: Dialog problem +rep -
Laronic - 23.12.2011
You forgot the ; at the first kick at listitem 1
Re: Dialog problem +rep -
Babul - 23.12.2011
yiou forgot the ; semicolon ^^
Код:
if(listitem == 0)
{
SendClientMessage(playerid, COLOR_RED, "Incorrect! Kicked");
Kick(playerid);
}
Re: Dialog problem +rep -
xxjackoxx - 23.12.2011
Код:
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");
}
}
}
Re: Dialog problem +rep -
PRototype-RP - 23.12.2011
ohh i saw that now guys. thanks you anyway