SA-MP Forums Archive
Checkpoint / Menu 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: Checkpoint / Menu problem (/showthread.php?tid=153031)



Checkpoint / Menu problem - Vialpando - 06.06.2010

Hey all,

I added a checkpoint under

public OnPlayerSpawn(playerid)
Код:
SetPlayerCheckpoint(playerid, 312.0186,-165.6558,999.6010, 1.0);
and I want that, if you go on this checkpoint, it should show a menu.
So I have put this code under

public OnPlayerEnterCheckpoint(playerid)

Код:
if(IsPlayerInRangeOfPoint(playerid,5.0,312.0186,-165.6558,999.6010))
{
ShowMenuForPlayer(weapon, playerid);
}
The problem is, the menu doesnt show up? Does someone else know an other way?


Re: Checkpoint / Menu problem - DJDhan - 06.06.2010

If you want to show a menu named "weapon", you should have one too. Do you have it at the top somewhere? Show the menu code then.
Or better, use the new >>>>Dialogs<<<< (Note: You need Server package 0.3 to use Dialogs)


Re: Checkpoint / Menu problem - Vialpando - 06.06.2010

Ive got all...The menu also works (I tested it with a command). It only doesnt show up with a checkpoint.


Re: Checkpoint / Menu problem - Vialpando - 07.06.2010

Nobody can help ?
Sry for double post.


Re: Checkpoint / Menu problem - MadeMan - 07.06.2010

Do you have something else under OnPlayerEnterCheckpoint ?


Re: Checkpoint / Menu problem - Vialpando - 07.06.2010

Quote:
Originally Posted by MadeMan
Do you have something else under OnPlayerEnterCheckpoint ?
Yes, checkpoints from jobs.


Re: Checkpoint / Menu problem - MadeMan - 07.06.2010

Quote:
Originally Posted by Vialpando
Quote:
Originally Posted by MadeMan
Do you have something else under OnPlayerEnterCheckpoint ?
Yes, checkpoints from jobs.
Can you show it?