Why dialogue doesn't open?
#1

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"); 
}
Reply
#2

show whole code, as far as I know there's no checkpointid
Reply
#3

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?
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)