Why dialogue doesn't open? - 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: Why dialogue doesn't open? (
/showthread.php?tid=211069)
Why dialogue doesn't open? -
Roma555 - 14.01.2011
Why dialogue doesn't open when I rise on 3 markers?
Код:
else if(checkpointid == 32 || checkpointid == 33 || checkpointid == 34) {
ShowPlayerDialog(playerid, 6, DIALOG_STYLE_LIST, "text", "text", "ok", "no");
}
Re: Why dialogue doesn't open? -
Jochemd - 14.01.2011
show whole code, as far as I know there's no checkpointid
Re: Why dialogue doesn't open? -
Roma555 - 14.01.2011
Here is how:
Код:
public OnGameModeInit()
{
LCS_CreateCheckpoint(206.9117,-6.9760,1001.2109,3); // (32)
LCS_CreateCheckpoint(161.3910,-83.9214,1001.8047,3); // (33)
LCS_CreateCheckpoint(206.8686,-7.3783,1001.2109,3); // (34)
return 1;
}
public LCS_OnPlayerEnterCheckpoint(playerid,checkpointid)
{
if(checkpointid == 32 || checkpointid == 33 || checkpointid == 34)
{
ShowPlayerDialog(playerid, 6, DIALOG_STYLE_LIST, "text", "text", "ok", "no");
}
return 1;
}
It is necessary that these 3 markers opened this dialogue
So doesn't open how to make that opened?
Re: Why dialogue doesn't open? -
Vince - 14.01.2011
You should check your checkpointid's. They're probably wrong.
Add this print under your checkpoint function:
pawn Код:
printf("Entered checkpoint: %d", checkpointid);
Then see what comes out.