Race Checkpoints Errors:
#1

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 );
Reply
#2

what's line 5607 ?
Reply
#3

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 );
Reply
#4

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
Reply
#5

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?
Reply
#6

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


Forum Jump:


Users browsing this thread: 1 Guest(s)