17.03.2019, 19:26
Erros:
Cуdigo
Eu "chamei" o arquivo por meio de uma dialog:
Nгo faзo ideia do que seja,se alguйm quiser me ajudar jб agradeзo
Meu discord: wooZ#0992
Code:
..\scriptfiles\Corridas\corrida.pwn(11) : warning 213: tag mismatch ..\scriptfiles\Corridas\corrida.pwn(11) : warning 213: tag mismatch ..\scriptfiles\Corridas\corrida.pwn(11) : warning 213: tag mismatch ..\scriptfiles\Corridas\corrida.pwn(22) : error 029: invalid expression, assumed zero ..\scriptfiles\Corridas\corrida.pwn(23) : error 001: expected token: ";", but found "{" ..\scriptfiles\Corridas\corrida.pwn(29) : warning 202: number of arguments does not match definition ..\scriptfiles\Corridas\corrida.pwn(29) : warning 202: number of arguments does not match definition ..\scriptfiles\Corridas\corrida.pwn(29) : warning 202: number of arguments does not match definition ..\scriptfiles\Corridas\corrida.pwn(36) : warning 225: unreachable code ..\scriptfiles\Corridas\corrida.pwn(36) : error 029: invalid expression, assumed zero ..\scriptfiles\Corridas\corrida.pwn(37) : error 001: expected token: ";", but found "{" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
PHP Code:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#define winner_money 10000
new CheckPoints[1][3] =
{
{956.1308,-969.3929,38.4609}
};
new Player_CheckPoint[MAX_PLAYERS];
new bool:IsRaceRunning = false;
new WinnerName[MAX_PLAYER_NAME];
new stringwin[64];
public OnGameModeInit()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
Player_CheckPoint[i] = 0;
SetPlayerRaceCheckpoint(i,0,CheckPoints[0][0],CheckPoints[0][1],CheckPoints[0][2],9.7);
IsRaceRunning = true;
}
}
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
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;
}
PHP Code:
case 2:
{
#include "..\scriptfiles\Corridas\corrida.pwn"
}
case 3:
{
//Alguma coisa para o item 3
return 1;
}
Meu discord: wooZ#0992