Jump to content
  • 0

Problema minigame Checkpoints


xxSPEEDYxx

Question

Mi-am creat un Mini-Minigame. In filterscript cand era mergea totul bine, dar cand l-am pus la OnPlayerEnterRaceCheckpoint In GameMode imi da errorile astea:

C:\Documents and Settings\user\My Documents\RAS&MAP&FS&SERVERS\RAS\gamemodes\RAS.pwn(5676) : error 029: invalid expression, assumed zero
C:\Documents and Settings\user\My Documents\RAS&MAP&FS&SERVERS\RAS\gamemodes\RAS.pwn(5676) : error 029: invalid expression, assumed zero
C:\Documents and Settings\user\My Documents\RAS&MAP&FS&SERVERS\RAS\gamemodes\RAS.pwn(5676) : warning 215: expression has no effect
C:\Documents and Settings\user\My Documents\RAS&MAP&FS&SERVERS\RAS\gamemodes\RAS.pwn(5676) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\user\My Documents\RAS&MAP&FS&SERVERS\RAS\gamemodes\RAS.pwn(5676) : fatal error 107: too many error messages on one line
Asta este linia:
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 );

De nu mai stiu ce sa fac x(

Fara reclama in semnatura!

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

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 );
			}
		}
	}

Fara reclama in semnatura!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.