17.03.2019, 19:59
Quote:
|
Testa e me diz os erros que continuaram...
PHP Code:
PHP Code:
|
Depois que eu testei e a corrida nгo deu,eu deixei como mуdulo mesmo e continuaram os erros,mas sem os warnings:
Code:
..\scriptfiles\Corridas\corrida.pwn(20) : error 029: invalid expression, assumed zero
..\scriptfiles\Corridas\corrida.pwn(21) : error 001: expected token: ";", but found "{"
..\scriptfiles\Corridas\corrida.pwn(31) : warning 225: unreachable code
..\scriptfiles\Corridas\corrida.pwn(31) : error 029: invalid expression, assumed zero
..\scriptfiles\Corridas\corrida.pwn(32) : error 001: expected token: ";", but found "{"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
PHP Code:
public OnGameModeInit() //linha 20
{ //linha 21
for(new i = 0; i < MAX_PLAYERS; i++)
{
Player_CheckPoint[i] = 0;
SetPlayerRaceCheckpoint(i, 0, CheckPoints[0][0], CheckPoints[0][1], CheckPoints[0][2], 0, 0, 0, 9.7); // No 0,0,0 vocк deverб colocar a cordenada do prуximo CP
IsRaceRunning = true;
}
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid) //linha 31
{ //linha 32
if(IsRaceRunning == true) Player_CheckPoint[playerid]++;
if(Player_CheckPoint[playerid] == 0 && IsRaceRunning == true)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
DisablePlayerRaceCheckpoint(i);
}
GetPlayerName(playerid,WinnerName,sizeof(WinnerName));
format(stringwin, sizeof(stringwin), "[RACE] The race is over, %s has won and achieved $%d!", WinnerName, winner_money);
SendClientMessageToAll(0xFF0000FF, stringwin);
GivePlayerMoney(playerid, winner_money);
IsRaceRunning = false;
return 1;
}
return 1;
}


