[Help]Checkpoints
#1

Hi
i Have 3 Problem Now
1.The Checkpoints Not Disable
2.i Want Make Last CP Not Showing only After i Done Take All CP Race
3. CP Race Error why idk see
Quote:

(80) : warning 213: tag mismatch

Quote:

Last = CreateDynamicRaceCP(-1381.9700,1498.3158,8.5625, 3.0, -1, -1, -1, 100.0);

PHP код:
new CP[MAX_PLAYERS] = 0;
new 
Last;
CMD:rob(playeridparams[])
{
    
CP[playerid] = 1;
    
CreateDynamicCP(-1447.2351,1502.1000,1.73666.0, -1, -1, -1100.0);
    
SendClientMessage(playerid0xFF0000"You Are Robbing Now.");
    return 
1;

PHP код:
public OnPlayerEnterCheckpoint(playerid)
{
        if(
CP[playerid] == 1)
        {
        
CreateDynamicCP(-1454.8569,1489.1010,7.10163.0, -1, -1, -1100.0);
        
DisablePlayerCheckpoint(playerid);
        
CP[playerid] ++;
        }
        if(
CP[playerid] == 2)
        {
        
CreateDynamicCP(-1428.7382,1490.0945,7.10163.0, -1, -1, -1100.0);
        
DisablePlayerCheckpoint(playerid);
        
CP[playerid] ++;
        }
        if(
CP[playerid] == 3)
        {
        
CreateDynamicCP(-1402.7249,1486.1351,7.10163.0, -1, -1, -1100.0);
        
DisablePlayerCheckpoint(playerid);
        
CP[playerid] ++;
        }
        if(
CP[playerid] == 4)
        {
        
CreateDynamicCP(-1382.1962,1480.3761,8.56253.0, -1, -1, -1100.0);
        
DisablePlayerCheckpoint(playerid);
        
CP[playerid] ++;
        }
        if(
CP[playerid] == 5)
        {
        
CreateDynamicCP(-1376.8267,1492.7152,11.20313.0, -1, -1, -1100.0);
        
DisablePlayerCheckpoint(playerid);
        
CP[playerid] ++;
        }
        if(
CP[playerid] == 6)
        {
        
CreateDynamicCP(-1390.7821,1483.1436,1.86723.0, -1, -1, -1100.0);
        
DisablePlayerCheckpoint(playerid);
        
CP[playerid] ++;
        }
        if(
CP[playerid] == 7)
        {
        
CreateDynamicCP(-1434.3047,1483.0374,1.86723.0, -1, -1, -1100.0);
        
DisablePlayerCheckpoint(playerid);
        
CP[playerid] ++;
        }
        if(
CP[playerid] == 8)
        {
        
CreateDynamicCP(-1381.9700,1498.3158,8.56253.0, -1, -1, -1100.0);
        
DisablePlayerCheckpoint(playerid);
        
CP[playerid] ++;
        }
        if(
CP[playerid] == 9)
        {
        
CreateDynamicCP(-1381.9700,1498.3158,8.56253.0, -1, -1, -1100.0);
        
DisablePlayerCheckpoint(playerid);
        
CP[playerid] ++;
        }
        if(
CP[playerid] == 10)
        {
        
CreateDynamicCP(-2392.9497,2312.1875,-0.10953.0, -1, -1, -1100.0);
        
DisablePlayerCheckpoint(playerid);
        
CP[playerid] ++;
        } 
and this Last CP this Race CP i Want Make it not showing after take all this cp from 1 to 10 with disable cuz its not disable
PHP код:
        else if(CP[playerid] == 11)
        {
        
Last CreateDynamicRaceCP(-1381.9700,1498.3158,8.56253.0, -1, -1, -1100.0);
        
DisablePlayerCheckpoint(playerid);
        
CP[playerid] = 0;
        }
        return 
1;

PHP код:
public OnPlayerEnterDynamicCP(playeridcheckpointid)
{
   if(
checkpointid == Last)
     {
     
GivePlayerMoney(playerid40000+random(120000));
     
SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+6);
     }
   return 
1;

please help me +rep
thanks
Reply
#2

Hello there!

You should use "DisableDynamicCP" instead of "DisablePlayerCheckpoint", and for doing so, you should give checkpoint ID's to the checkpoints. and this code;

pawn Код:
else if(CP[playerid] == 11)
        {
        Last = CreateDynamicRaceCP(-1381.9700,1498.3158,8.5625, 3.0, -1, -1, -1, 100.0);
        DisablePlayerCheckpoint(playerid);
        CP[playerid] = 0;
        }
It makes the player to loop through the CP's, it doesn't end the race but instead, it makes you go back to starting point as it makes loop. If it is last CP, then you shouldn't create another dynamic CP.

About your third issue, I haven't understood it, what do you mean by that?
Reply
#3

i made CreateDynamicCP / OnPlayerEnterDynamicCP
see error
Quote:

D:\zx\filterscripts\siren4.pwn(21) : error 017: undefined symbol "DisableDynamicCP"
D:\zx\filterscripts\siren4.pwn(27) : error 017: undefined symbol "DisableDynamicCP"
D:\zx\filterscripts\siren4.pwn(33) : error 017: undefined symbol "DisableDynamicCP"
D:\zx\filterscripts\siren4.pwn(39) : error 017: undefined symbol "DisableDynamicCP"
D:\zx\filterscripts\siren4.pwn(45) : error 017: undefined symbol "DisableDynamicCP"
D:\zx\filterscripts\siren4.pwn(51) : error 017: undefined symbol "DisableDynamicCP"
D:\zx\filterscripts\siren4.pwn(57) : error 017: undefined symbol "DisableDynamicCP"
D:\zx\filterscripts\siren4.pwn(63) : error 017: undefined symbol "DisableDynamicCP"
D:\zx\filterscripts\siren4.pwn(69) : error 017: undefined symbol "DisableDynamicCP"
D:\zx\filterscripts\siren4.pwn(75) : error 017: undefined symbol "DisableDynamicCP"
D:\zx\filterscripts\siren4.pwn(80) : warning 213: tag mismatch
D:\zx\filterscripts\siren4.pwn(81) : error 017: undefined symbol "DisableDynamicRaceCP"
D:\zx\filterscripts\siren4.pwn(87) : error 021: symbol already defined: "OnPlayerEnterDynamicCP"

PHP код:
public OnPlayerEnterDynamicCP(playerid)
{
        if(
CP[playerid] == 1)
        {
        
CreateDynamicCP(-1454.8569,1489.1010,7.10163.0, -1, -1, -1100.0);
        
DisableDynamicCP(playerid);
        
CP[playerid] ++;
        }
        if(
CP[playerid] == 2)
        {
        
CreateDynamicCP(-1428.7382,1490.0945,7.10163.0, -1, -1, -1100.0);
        
DisableDynamicCP(playerid);
        
CP[playerid] ++;
        }
        if(
CP[playerid] == 3)
        {
        
CreateDynamicCP(-1402.7249,1486.1351,7.10163.0, -1, -1, -1100.0);
        
DisableDynamicCP(playerid);
        
CP[playerid] ++;
        }
        if(
CP[playerid] == 4)
        {
        
CreateDynamicCP(-1382.1962,1480.3761,8.56253.0, -1, -1, -1100.0);
        
DisableDynamicCP(playerid);
        
CP[playerid] ++;
        }
        if(
CP[playerid] == 5)
        {
        
CreateDynamicCP(-1376.8267,1492.7152,11.20313.0, -1, -1, -1100.0);
        
DisableDynamicCP(playerid);
        
CP[playerid] ++;
        }
        if(
CP[playerid] == 6)
        {
        
CreateDynamicCP(-1390.7821,1483.1436,1.86723.0, -1, -1, -1100.0);
        
DisableDynamicCP(playerid);
        
CP[playerid] ++;
        }
        if(
CP[playerid] == 7)
        {
        
CreateDynamicCP(-1434.3047,1483.0374,1.86723.0, -1, -1, -1100.0);
        
DisableDynamicCP(playerid);
        
CP[playerid] ++;
        }
        if(
CP[playerid] == 8)
        {
        
CreateDynamicCP(-1381.9700,1498.3158,8.56253.0, -1, -1, -1100.0);
        
DisableDynamicCP(playerid);
        
CP[playerid] ++;
        }
        if(
CP[playerid] == 9)
        {
        
CreateDynamicCP(-1381.9700,1498.3158,8.56253.0, -1, -1, -1100.0);
        
DisableDynamicCP(playerid);
        
CP[playerid] ++;
        }
        if(
CP[playerid] == 10)
        {
        
CreateDynamicCP(-2392.9497,2312.1875,-0.10953.0, -1, -1, -1100.0);
        
DisableDynamicCP(playerid);
        
CP[playerid] ++;
        }
        else if(
CP[playerid] == 11)
        {
        
Last CreateDynamicRaceCP(-1381.9700,1498.3158,8.56253.0, -1, -1, -1100.0);
        
DisableDynamicRaceCP(playerid);
        
CP[playerid] = 0;
        }
        return 
1;

Reply
#4

Just noticed it is wrong, at all. You should put all these to OnPlayerEnterDynamicCP rather than OnPlayerEnterCheckpoint.

Edit: Dont forget to include streamer aswell and make sure it is up-to-date.
Reply
#5

Quote:
Originally Posted by Rufio
Посмотреть сообщение
Just noticed it is wrong, at all. You should put all these to OnPlayerEnterDynamicCP rather than OnPlayerEnterCheckpoint.

Edit: Dont forget to include streamer aswell and make sure it is up-to-date.
PHP код:
public OnPlayerEnterCheckpoint(playerid
see now
Quote:

D:\zc\filterscripts\siren4.pwn(21) : error 017: undefined symbol "DisableDynamicCP"
D:\zc\filterscripts\siren4.pwn(27) : error 017: undefined symbol "DisableDynamicCP"
D:\zc\filterscripts\siren4.pwn(33) : error 017: undefined symbol "DisableDynamicCP"
D:\zc\filterscripts\siren4.pwn(39) : error 017: undefined symbol "DisableDynamicCP"
D:\zc\filterscripts\siren4.pwn(45) : error 017: undefined symbol "DisableDynamicCP"
D:\zc\filterscripts\siren4.pwn(51) : error 017: undefined symbol "DisableDynamicCP"
D:\zc\filterscripts\siren4.pwn(57) : error 017: undefined symbol "DisableDynamicCP"
D:\zc\filterscripts\siren4.pwn(63) : error 017: undefined symbol "DisableDynamicCP"
D:\zc\filterscripts\siren4.pwn(69) : error 017: undefined symbol "DisableDynamicCP"
D:\zc\filterscripts\siren4.pwn(75) : error 017: undefined symbol "DisableDynamicCP"
D:\zc\filterscripts\siren4.pwn(80) : warning 213: tag mismatch
D:\zc\filterscripts\siren4.pwn(81) : error 017: undefined symbol "DisableDynamicRaceCP"

Streamer.inc Last V
Reply
#6

Have you typed #include <streamer> and are you sure about you are putting the codes inside of "OnPlayerEnterDynamicCP"?

if so, your streamer is broken, obtain a new one.
Reply
#7

Quote:
Originally Posted by Rufio
Посмотреть сообщение
Have you typed #include <streamer> and are you sure about you are putting the codes inside of "OnPlayerEnterDynamicCP"?

if so, your streamer is broken, obtain a new one.
hello i have Streamer inc
Quote:

#include <Streamer>

and in my pawno > include
Reply
#8

help me please
Reply
#9

please help me
Reply
#10

guys ??
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)