Bom pessoal eu estou adaptando um fs ao meu gamemode, eu coloquei tudo certinho lá, só que está com algum erro de chave, se alguém poder ajudar agradeço.
Erros:
Eu sei que esse 26 erros é porque eu esqueci de fechar alguma chave se alguém poder ajudar.
Linhas de erros:
Erros:
PHP Code:
\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(253) : error 055: start of function body without function header
C:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(257) : error 010: invalid function or declaration
C:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(260) : error 010: invalid function or declaration
C:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(271) : error 010: invalid function or declaration
C:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(274) : error 010: invalid function or declaration
C:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(286) : error 010: invalid function or declaration
C:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(289) : error 010: invalid function or declaration
C:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(302) : error 021: symbol already defined: "CreateObject"
C:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(315) : error 021: symbol already defined: "CreateObject"
C:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(323) : error 021: symbol already defined: "CreateObject"
C:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(331) : error 021: symbol already defined: "Create3DTextLabel"
C:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(339) : error 010: invalid function or declaration
C:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(347) : error 010: invalid function or declaration
C:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(364) : error 017: undefined symbol "PickupPTime"
C:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(365) : error 017: undefined symbol "CarregarCarro"
C:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(378) : error 017: undefined symbol "ShowProgressBarForPlayer"
C:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(379) : error 017: undefined symbol "ShowProgressBarForPlayer"
C:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(380) : error 017: undefined symbol "ShowProgressBarForPlayer"
C:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(387) : error 017: undefined symbol "NomeDoJogador"
C:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(393) : error 004: function "SetProgressBarValue" is not implemented
C:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(394) : error 004: function "SetProgressBarValue" is not implemented
C:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(395) : error 004: function "SetProgressBarValue" is not implemented
C:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(396) : error 017: undefined symbol "UpdateProgressBar"
C:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(397) : error 017: undefined symbol "UpdateProgressBar"
C:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(398) : error 017: undefined symbol "UpdateProgressBar"
C:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(406) : error 004: function "SetProgressBarValue" is not implemented
Eu sei que esse 26 erros é porque eu esqueci de fechar alguma chave se alguém poder ajudar.
Linhas de erros:
PHP Code:
{
DisableInteriorEnterExits();
//Barrinha
PGFOME = CreateProgressBar(553.00, 300.00, 55.50, 3.20, 0xF6F600AA, 100.0);
SetProgressBarValue(PGFOME,100);
//Letra
TextoFome = TextDrawCreate(562.111083, 278.257659, "Fome");
TextDrawLetterSize(TextoFome, 0.514444, 1.769245);
TextDrawAlignment(TextoFome, 3);
TextDrawColor(TextoFome, -1);
TextDrawSetShadow(TextoFome, 1);
TextDrawSetOutline(TextoFome, 1);
TextDrawBackgroundColor(TextoFome, 255);
TextDrawFont(TextoFome, 0);
TextDrawSetProportional(TextoFome, 1);
//Barrinha
PGSEDE = CreateProgressBar(553.00, 331.00, 55.50, 3.20, 0x0000F6AA, 100.0);
SetProgressBarValue(PGSEDE,100);
//Letra
TextoSede = TextDrawCreate(562.222290, 307.626709, "Sede");
TextDrawFont(TextoSede,3);
TextDrawLetterSize(TextoSede, 0.496666, 1.823999);
TextDrawAlignment(TextoSede, 3);
TextDrawColor(TextoSede, -1);
TextDrawSetShadow(TextoSede, 1);
TextDrawSetOutline(TextoSede, 1);
TextDrawBackgroundColor(TextoSede, 255);
TextDrawFont(TextoSede, 0);
TextDrawSetProportional(TextoSede, 1);
//Barrinha
PGSONO = CreateProgressBar(553.00, 363.00, 55.50, 3.21, 0xEE0000AA, 100.0);
SetProgressBarValue(PGSONO,100);
//Letra
TextoSono = TextDrawCreate(562.222412, 339.982208, "Sono");
TextDrawFont(TextoSono,4);
TextDrawLetterSize(TextoSono, 0.487777, 1.774221);
TextDrawAlignment(TextoSono, 3);
TextDrawColor(TextoSono, -1);
TextDrawSetShadow(TextoSono, 1);
TextDrawSetOutline(TextoSono, 1);
TextDrawBackgroundColor(TextoSono, 255);
TextDrawFont(TextoSono, 0);
TextDrawSetProportional(TextoSono, 1);
/*Objetos*/
//Lampadas
CreateObject(3666,796.2999900,-1632.8000000,12.9000000,0.0000000,0.0000000,0.0000000); //
CreateObject(3666,804.2999900,-1633.0000000,13.1000000,0.0000000,0.0000000,0.0000000); //
CreateObject(3666,2402.7000000,-1509.9000000,23.3000000,0.0000000,0.0000000,0.0000000); //
CreateObject(3666,2402.7002000,-1501.9004000,23.3000000,0.0000000,0.0000000,0.0000000); //
CreateObject(3666,1183.8000000,-898.0999800,42.8000000,0.0000000,0.0000000,0.0000000); //
CreateObject(3666,1185.2000000,-906.4000200,42.8000000,0.0000000,0.0000000,0.0000000); //
CreateObject(3666,-2348.2000000,-156.6000100,34.8000000,0.0000000,0.0000000,0.0000000); //
CreateObject(3666,-2348.2000000,-148.2000000,34.8000000,0.0000000,0.0000000,0.0000000); //
CreateObject(3666,1861.1000000,2089.6001000,10.3000000,0.0000000,0.0000000,0.0000000); //
CreateObject(3666,1861.0000000,2080.8999000,10.3000000,0.0000000,0.0000000,0.0000000); //
CreateObject(3666,2483.8999000,2017.9000000,10.3000000,0.0000000,0.0000000,0.0000000); //
CreateObject(3666,2483.8000000,2026.7000000,10.3000000,0.0000000,0.0000000,0.0000000); //
//Posters
CreateObject(2642,2483.7000000,2018.5000000,11.0000000,0.0000000,0.0000000,0.0000000); //
CreateObject(2642,1861.3000000,2089.1001000,11.0000000,0.0000000,0.0000000,170.0000000); //
CreateObject(2642,-2347.6884800,-148.8769500,36.1853800,0.0000000,0.0000000,0.0000000); //
CreateObject(2642,-2347.7000000,-148.6000100,35.3000000,0.0000000,0.0000000,178.0000000); //
CreateObject(2642,795.2999900,-1632.9000000,13.3000000,0.0000000,0.0000000,210.0000000); //
CreateObject(2642,1184.2000000,-905.7999900,43.2000000,0.0000000,0.0000000,220.0000000); //
CreateObject(2642,2401.8000000,-1502.0000000,23.8000000,0.0000000,0.0000000,220.0000000); //
//Bases
CreateObject(3881,799.7999900,-1635.4000000,14.3000000,0.0000000,0.0000000,270.0000000); //
CreateObject(3881,2404.3999000,-1506.4000000,24.9000000,0.0000000,0.0000000,0.0000000); //
CreateObject(3881,1186.4000000,-902.4000200,43.8000000,0.0000000,0.0000000,8.0000000); //
CreateObject(3881,-2346.7000000,-152.8999900,36.2000000,0.0000000,0.0000000,0.0000000); //
CreateObject(3881,1862.5000000,2084.7000000,11.7000000,0.0000000,0.0000000,0.0000000); //
CreateObject(3881,2483.2000000,2022.8000000,11.9000000,0.0000000,0.0000000,180.0000000); //
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------
/*TextLabel*/
Create3DTextLabel("{FF1E1E}DriveThru", 0xFFD700FF, 2401.9275,-1506.4696,23.3550, 40.0, 0, 0);
Create3DTextLabel("{FF1E1E}DriveThru", 0xFFD700FF, 800.5552,-1629.6398,12.9030, 40.0, 0, 0);
Create3DTextLabel("{FF1E1E}DriveThru", 0xFFD700FF, 2486.0686,2022.3807,10.3402, 40.0, 0, 0);
Create3DTextLabel("{FF1E1E}DriveThru", 0xFFD700FF, 1179.7521,-902.8798,42.8330, 40.0, 0, 0);
Create3DTextLabel("{FF1E1E}DriveThru", 0xFFD700FF, 1857.3107,2081.2676,10.3387, 40.0, 0, 0);
Create3DTextLabel("{FF1E1E}DriveThru", 0xFFD700FF, -2350.0037,-155.5846,34.8405, 40.0, 0, 0);
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------
/*CheckPoint*/
CheckC_DV1 = CPS_AddCheckpoint(2401.9275,-1506.4696,23.3550, 5.0, 20);
CheckC_DV2 = CPS_AddCheckpoint(1179.7521,-902.8798,42.8330, 5.0, 20);
CheckC_DV3 = CPS_AddCheckpoint(800.5552,-1629.6398,12.9030, 5.0, 20);
CheckC_DV4 = CPS_AddCheckpoint(1857.3107,2081.2676,10.3387, 5.0, 20);
CheckC_DV5 = CPS_AddCheckpoint(2486.0686,2022.3807,10.3402, 5.0, 20);
CheckC_DV6 = CPS_AddCheckpoint(-2350.0037,-155.5846,34.8405, 5.0, 20);
CheckC_HT = CPS_AddCheckpoint(2217.3391, -1146.4551, 1025.7969, 2.0, 20); //Hotel
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------
return 1;
}
public OnGameModeExit()
{
DOF2::Exit();
DOF2_Exit();
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
return 1;
}
public OnPlayerConnect(playerid)
{
PickupPTime(playerid);
CarregarCarro(playerid);
gHeaderTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW;
gBackgroundTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW;
gCurrentPageTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW;
gNextButtonTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW;
gPrevButtonTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW;
for(new x=0; x < CARROSPAGINA; x++) {
gSelectionItems[playerid][x] = PlayerText:INVALID_TEXT_DRAW;
}
gItemAt[playerid] = 0;
SetTimerEx("Correcao", 1000, false, "i", playerid);
ShowProgressBarForPlayer(playerid, PGFOME);
ShowProgressBarForPlayer(playerid, PGSEDE);
ShowProgressBarForPlayer(playerid, PGSONO);
TextDrawShowForPlayer(playerid, TextoFome);
TextDrawShowForPlayer(playerid, TextoSede);
TextDrawShowForPlayer(playerid, TextoSono);
SetTimerEx("FOME", 212500, true, "i", playerid);
SetTimerEx("SEDE", 200000, true, "i", playerid);
SetTimerEx("SONO", 500000, true, "i", playerid);
format(arquivado, sizeof(arquivado), DVFOMESEDESONO, NomeDoJogador(playerid));
if(DOF2_FileExists(arquivado))
{
SetPVarInt(playerid,"FOME", DOF2_GetInt(arquivado, "FOME"));
SetPVarInt(playerid,"SEDE", DOF2_GetInt(arquivado, "SEDE"));
SetPVarInt(playerid,"SONO", DOF2_GetInt(arquivado, "SONO"));
SetProgressBarValue(PGFOME, DOF2_GetInt(arquivado, "FOME"));
SetProgressBarValue(PGSEDE, DOF2_GetInt(arquivado, "SEDE"));
SetProgressBarValue(PGSONO, DOF2_GetInt(arquivado, "SONO"));
UpdateProgressBar(PGFOME, playerid);
UpdateProgressBar(PGSEDE, playerid);
UpdateProgressBar(PGSONO, playerid); }else{
DOF2_CreateFile(arquivado);
DOF2_SetInt(arquivado, "FOME", 100);
DOF2_SetInt(arquivado, "SEDE", 100);
DOF2_SetInt(arquivado, "SONO", 100);
SetPVarInt(playerid,"FOME", DOF2_GetInt(arquivado, "FOME"));
SetPVarInt(playerid,"SEDE", DOF2_GetInt(arquivado, "SEDE"));
SetPVarInt(playerid,"SONO", DOF2_GetInt(arquivado, "SONO"));
SetProgressBarValue(PGFOME, DOF2_GetInt(arquivado, "FOME"));