SA-MP Forums Archive
checkpoint help - 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 help (/showthread.php?tid=230063)



checkpoint help - tanush - 22.02.2011

ok on my spawn i have
pawn Код:
CreateDynamicCP(2459.3242,-1690.7711, 13.5471, 1.5, -1,-1,-1,100.0); //1st onplayerentercheckpoint
CreateDynamicCP(2452.3242,-1690.7711, 13.5471, 1.5, -1,-1,-1,100.0); //2nd onplayerentercheckpoint
and OnPlayerEnterCheckpoint

pawn Код:
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Grove Street","Grove Street is a gang.\nLong time ago ballaz killed the grove leader's mom so then\ngrove will fight with them. Grove Street owns this place","Close","");
    ShowPlayerDialog(playerid,2,DIALOG_STYLE_MSGBOX,"Grove Street","BackYard","Close","");
why when i enter both of theem it shows backyard !!!


Re: checkpoint help - Stigg - 22.02.2011

You need to give them id's

pawn Код:
checky1 = CreateDynamicCP(2459.3242,-1690.7711, 13.5471, 1.5, -1,-1,-1,100.0); //1st onplayerentercheckpoint
checky2 = CreateDynamicCP(2452.3242,-1690.7711, 13.5471, 1.5, -1,-1,-1,100.0); //2nd onplayerentercheckpoint
Peace...


Re: checkpoint help - tanush - 22.02.2011

i still have problems


Re: checkpoint help - tanush - 22.02.2011

CAN ANYONE HELP ME PLEASE, IM USING http://forum.sa-mp.com/showthread.ph...light=streamer


Re: checkpoint help - tanush - 22.02.2011

OMFG PLEASEE HELP ME!!!!!


Re: checkpoint help - tanush - 22.02.2011

PLEASE GUYS HELP ME!!!! I WAITED FOR LIKE 2HOURS NOW


Re: checkpoint help - Hashski - 22.02.2011

Код:
CHECKPOINT1 = CreateDynamicCP(2459.3242,-1690.7711, 13.5471, 1.5, -1,-1,-1,100.0); 
CHECKPOINT2 = CreateDynamicCP(2452.3242,-1690.7711, 13.5471, 1.5, -1,-1,-1,100.0);
Код:
public OnPlayerEnterCheckpoint(playerid)
{
     switch(YOU_CODE_THAT_CHECKS_CHECKPOINTS)// e.g gPlayerCheckPointStatus - From Basic GF.
     case CHECKPOINT1:
     {
          ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Grove Street","Grove Street is a gang.\nLong time ago ballaz killed the grove leader's mom so then\ngrove will fight with them. Grove Street owns this place","Close","");
     }
     case CHECKPOINT2:
     {
         ShowPlayerDialog(playerid,2,DIALOG_STYLE_MSGBOX,"Grove Street","BackYard","Close","");					
     }
}



Re: checkpoint help - marinov - 23.02.2011

Quote:
Originally Posted by tanush
Посмотреть сообщение
PLEASE GUYS HELP ME!!!! I WAITED FOR LIKE 2HOURS NOW

https://sampforum.blast.hk/showthread.php?tid=45235

OMG chill, read the damn rules


Re: checkpoint help - tanush - 23.02.2011

Код:
D:\Users\Tanush\Desktop\SA-MP\filterscripts\Checkpoint.pwn(139) : warning 200: symbol "YOU_CODE_THAT_CHECKS_CHECKPOINT" is truncated to 31 characters
D:\Users\Tanush\Desktop\SA-MP\filterscripts\Checkpoint.pwn(139) : error 017: undefined symbol "YOU_CODE_THAT_CHECKS_CHECKPOINT"
D:\Users\Tanush\Desktop\SA-MP\filterscripts\Checkpoint.pwn(140) : error 001: expected token: "{", but found "case"
D:\Users\Tanush\Desktop\SA-MP\filterscripts\Checkpoint.pwn(144) : error 008: must be a constant expression; assumed zero
D:\Users\Tanush\Desktop\SA-MP\filterscripts\Checkpoint.pwn(148) : error 002: only a single statement (or expression) can follow each "case"
D:\Users\Tanush\Desktop\SA-MP\filterscripts\Checkpoint.pwn(148) : warning 215: expression has no effect
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase



Re: checkpoint help - maramizo - 23.02.2011

Quote:
Originally Posted by marinov
Посмотреть сообщение
..But... That would take him ANOTHER TWO HOURS OMG!!one!1!!