Streamer - 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: Streamer (
/showthread.php?tid=432702)
Streamer -
KopeK - 23.04.2013
Hi I have 2 CheckPoints in streamer:
Код:
test = CreateDynamicCP(1667.59998, 1011.40002,10.1, 6.0,0,0,-1,100.0);
test1 = CreateDynamicCP(1655.59998, 1001.40002,10.1, 6.0,0,0,-1,100.0);
1 problem. I see only one of these CP but when i go to the position of 2 CP the first CP Hides and the second CP shows.
2 problem:
Код:
public OnPlayerEnterCheckpoint(playerid)
{
if(commission[playerid]== 1 && test1){
ShowPlayerDialog(playerid,DIALOG_ANIMACJE,DIALOG_STYLE_MSGBOX,"List", "HIIII !", "Ok", "");
}
if(commission[playerid]== 1 && test){
ShowPlayerDialog(playerid,DIALOG_ANIMACJE,DIALOG_STYLE_MSGBOX,"List", "TEST!", "Ok", "");
}
return 1;
}
And what is the problem in this code? So when I enter the CP "test" i see the gui with text "TEST!", but when I enter the CP "test1" i see the gui with the same text.
Please Help
Re: Streamer -
Cypress - 23.04.2013
What if you change OnPlayerEnterCheckPoint(playerid) to OnPlayerEnterDynamicCheckpoint(playerid, checkpointid)?
Re: Streamer -
cessil - 23.04.2013
you do need to use OnPlayerEnterDynamicCheckpoint, and to answer your first problem, there can only be one checkpoint visible to the client at a time