SA-MP Forums Archive
Race Checkpoints Errors: - 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: Race Checkpoints Errors: (/showthread.php?tid=293884)



Race Checkpoints Errors: - Edvin - 30.10.2011

Hi,
I make an Mini-Minigame with some checkpoints. I put this on OnPlayerEnterRaceCheckpoint
pawn Код:
if ( PlayerInfo[ playerid ][ pMinigame ] == 1 )
    {
        if ( PlayerInfo[ playerid ][ pMinigameNr ] == 4 )
        {
            if ( CC < 70 )
            {
                CC++;
                SetPlayerRaceCheckpoint( playerid, 0, RC[ CC ][ 0 ], RC[ CC ][ 1 ], RC[ CC ][ 2 ], RC[ CC+1 ][ 0 ], RC[ CC+1 ][ 1 ], RC[ CC+1 ][ 2 ], 1 );
            }
            if ( CC == 70 )
            {
                CC++;
                SetPlayerRaceCheckpoint( playerid, 1, RC[ CC ][ 0 ], RC[ CC ][ 1 ], RC[ CC ][ 2 ], RC[ CC ][ 0 ], RC[ CC ][ 1 ], RC[ CC ][ 2 ], 2 );
            }
            else if ( CC == 71 )
            {
                DisablePlayerRaceCheckpoint( playerid );
                PlayerInfo[ playerid ][ Coins ] += 50;
                PlayerInfo[ playerid ][ RaceScore ] += 1;
                GivePlayerMoney( playerid, 100000 );
                SendClientMessage( playerid, COLOR_GREY, "You receive {FF9900}+50 {ACACAC}coins, {FF9900}+1 {ACACAC}Race Score and {FF9900}$100.000" );
                GameTextForPlayer( playerid, "~n~~n~~n~~n~~n~~y~Winner!!", 3500, 3 );
            }
        }
    }
//my second codes...
and i got these errors:
pawn Код:
C:\Documents and Settings\user\My Documents\RAS&MAP&FS&SERVERS\RAS\gamemodes\RAS.pwn(5607) : error 029: invalid expression, assumed zero
C:\Documents and Settings\user\My Documents\RAS&MAP&FS&SERVERS\RAS\gamemodes\RAS.pwn(5607) : error 029: invalid expression, assumed zero
C:\Documents and Settings\user\My Documents\RAS&MAP&FS&SERVERS\RAS\gamemodes\RAS.pwn(5607) : warning 215: expression has no effect
C:\Documents and Settings\user\My Documents\RAS&MAP&FS&SERVERS\RAS\gamemodes\RAS.pwn(5607) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\user\My Documents\RAS&MAP&FS&SERVERS\RAS\gamemodes\RAS.pwn(5607) : fatal error 107: too many error messages on one line
Line 5607: SetPlayerRaceCheckpoint( playerid, 0, RC[ CC ][ 0 ], RC[ CC ][ 1 ], RC[ CC ][ 2 ], RC[ CC+1 ][ 0 ], RC[ CC+1 ][ 1 ], RC[ CC+1 ][ 2 ], 1 );


Re: Race Checkpoints Errors: - Michael@Belgium - 30.10.2011

what's line 5607 ?


Re: Race Checkpoints Errors: - Edvin - 30.10.2011

i write it:
Line 5607:
pawn Код:
SetPlayerRaceCheckpoint( playerid, 0, RC[ CC ][ 0 ], RC[ CC ][ 1 ], RC[ CC ][ 2 ], RC[ CC+1 ][ 0 ], RC[ CC+1 ][ 1 ], RC[ CC+1 ][ 2 ], 1 );



Re: Race Checkpoints Errors: - Michael@Belgium - 30.10.2011

Maybe try this:

pawn Код:
SetPlayerRaceCheckpoint( playerid, 0, RC[ CC ][ 0 ], RC[ CC ][ 1 ], RC[ CC ][ 2 ], RC[ CC ]+1[ 0 ], RC[ CC ]+1[ 1 ], RC[ CC ]+1[ 2 ], 1 );
lol i don't think it would work though .. xD


Re: Race Checkpoints Errors: - Edvin - 30.10.2011

Quote:
Originally Posted by Michael@Belgium
Посмотреть сообщение
Maybe try this:

pawn Код:
SetPlayerRaceCheckpoint( playerid, 0, RC[ CC ][ 0 ], RC[ CC ][ 1 ], RC[ CC ][ 2 ], RC[ CC ]+1[ 0 ], RC[ CC ]+1[ 1 ], RC[ CC ]+1[ 2 ], 1 );
lol i don't think it would work though .. xD
Not working, it give me same errors...

Next suggestions?


Re: Race Checkpoints Errors: - Edvin - 30.10.2011

i resolve) i have defined a dialog with RC)...