C:\Users\yTzkaii\Desktop\Brasil_Flexe_Roleplay\gamemodes\bfrp.pwn(132) : error 029: invalid expression, assumed zero
C:\Users\yTzkaii\Desktop\Brasil_Flexe_Roleplay\gamemodes\bfrp.pwn(132) : error 035: argument type mismatch (argument 1)
C:\Users\yTzkaii\Desktop\Brasil_Flexe_Roleplay\gamemodes\bfrp.pwn(132) : error 029: invalid expression, assumed zero
C:\Users\yTzkaii\Desktop\Brasil_Flexe_Roleplay\gamemodes\bfrp.pwn(132) : fatal error 107: too many error messages on one line
Compilation aborted.
Pawn compiler 3.2.3664 Copyright © 1997-2016, ITB CompuPhase
o erro com este cod é:
C:\Users\yTzkaii\Desktop\Brasil_Flexe_Roleplay\gamemodes\bfrp.pwn(132) : error 029: invalid expression, assumed zero
C:\Users\yTzkaii\Desktop\Brasil_Flexe_Roleplay\gamemodes\bfrp.pwn(132) : error 035: argument type mismatch (argument 1)
C:\Users\yTzkaii\Desktop\Brasil_Flexe_Roleplay\gamemodes\bfrp.pwn(132) : error 029: invalid expression, assumed zero
C:\Users\yTzkaii\Desktop\Brasil_Flexe_Roleplay\gamemodes\bfrp.pwn(132) : fatal error 107: too many error messages on one line
Compilation aborted.
Pawn compiler 3.2.3664 Copyright © 1997-2016, ITB CompuPhase
4 Errors.
C:\Users\yTzkaii\Desktop\Brasil_Flexe_Roleplay\gamemodes\bfrp.pwn(132) : error 035: argument type mismatch (argument 1)
C:\Users\yTzkaii\Desktop\Brasil_Flexe_Roleplay\gamemodes\bfrp.pwn(132) : error 029: invalid expression, assumed zero
C:\Users\yTzkaii\Desktop\Brasil_Flexe_Roleplay\gamemodes\bfrp.pwn(132) : fatal error 107: too many error messages on one line
Compilation aborted.
Pawn compiler 3.2.3664 Copyright © 1997-2016, ITB CompuPhase
(30/10/2023 08:18)pushline Escreveu: Você não pode fazer format ou colocar argumentos dentro de SendClientMessage(s) (no samp-server). E o 235 é so dar forward na public.
Código PHP:// warning 235: public function lacks forward declaration (symbol "UpdateStatusBars")
forward UpdateStatusBars(playerid);
public UpdateStatusBars(playerid)
{
// Atualize os indicadores para o jogador
new stringSCM[20];
SendClientMessage(playerid, 0xFFFF00, "{FFFFFF}=== Seu status ===");
// n era pra ser Fome[playerid] ? essa variável fome parece ser global e não ser pra cada player diferente,
// e não funciona \n em SendClientMessage tbm (se eu n me engano)
format(stringSCM, sizeof(stringSCM), "{FFFFFF}Fome: %0.2f", Fome);
SendClientMessage(playerid, 0xFFFF00, stringSCM);
format(stringSCM, sizeof(stringSCM), "{FFFFFF}Sede: %0.2f", Sede);
SendClientMessage(playerid, 0xFFFF00, stringSCM, = (format(playerid, "%0.2f", Sede)));
format(stringSCM, sizeof(stringSCM), "{FFFFFF}Sono: %0.2f", Sono);
SendClientMessage(playerid, 0xFFFF00, stringSCM, = (format(playerid, "%0.2f", Sono)));
return 1;
}
o erro com este cod é:
C:\Users\yTzkaii\Desktop\Brasil_Flexe_Roleplay\gamemodes\bfrp.pwn(132) : error 029: invalid expression, assumed zero
C:\Users\yTzkaii\Desktop\Brasil_Flexe_Roleplay\gamemodes\bfrp.pwn(132) : error 035: argument type mismatch (argument 1)
C:\Users\yTzkaii\Desktop\Brasil_Flexe_Roleplay\gamemodes\bfrp.pwn(132) : error 029: invalid expression, assumed zero
C:\Users\yTzkaii\Desktop\Brasil_Flexe_Roleplay\gamemodes\bfrp.pwn(132) : fatal error 107: too many error messages on one line
Compilation aborted.
Pawn compiler 3.2.3664 Copyright © 1997-2016, ITB CompuPhase
4 Errors.