Problem - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problem (
/showthread.php?tid=151804)
Problem -
bartje01 - 31.05.2010
Hey guys. i'm using this script:
Код:
if(dialogid == 19)
{
PlayerInfo[playerid][LSPDLEVEL] = 1;
SendClientMessage(playerid,COLOR_BLUE,"Welcome To The LSPD");
SetPlayerColor(playerid,COLOR_BLUE);
}
else
{
SendClientMessage(playerid, 0xFFFFFFFF, "You cancelled");
}
But even when I click NO I'm entering t he LSPD. How to fix?
Re: Problem -
coole210 - 01.06.2010
Код:
if(dialogid == 19)
{
if(!response) return SendClientMessage(playerid, 0xFFFFFFFF, "You cancelled");
PlayerInfo[playerid][LSPDLEVEL] = 1;
SendClientMessage(playerid,COLOR_BLUE,"Welcome To The LSPD");
SetPlayerColor(playerid,COLOR_BLUE);
}
Re: Problem -
bartje01 - 01.06.2010
Thanks