[Ajuda] Ajuda Com 4 Erros no Meu GM - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Ajuda Com 4 Erros no Meu GM (
/showthread.php?tid=452856)
Ajuda Com 4 Erros no Meu GM -
LucasFoxY - 22.07.2013
Bom, vamos direto ao assunto, estou colocando um Sistema de blindar,e quando coloco no velocimetro esta dando esses erros no GM
Код:
C:\DOCUME~1\LUCASR~1\MEUSDO~1\DOWNLO~1\BCG\GAMEMO~1\BCG.pwn(67536) : error 037: invalid string (possibly non-terminated string)
C:\DOCUME~1\LUCASR~1\MEUSDO~1\DOWNLO~1\BCG\GAMEMO~1\BCG.pwn(67536) : warning 215: expression has no effect
C:\DOCUME~1\LUCASR~1\MEUSDO~1\DOWNLO~1\BCG\GAMEMO~1\BCG.pwn(67536) : warning 215: expression has no effect
C:\DOCUME~1\LUCASR~1\MEUSDO~1\DOWNLO~1\BCG\GAMEMO~1\BCG.pwn(67536) : warning 215: expression has no effect
C:\DOCUME~1\LUCASR~1\MEUSDO~1\DOWNLO~1\BCG\GAMEMO~1\BCG.pwn(67536) : warning 215: expression has no effect
C:\DOCUME~1\LUCASR~1\MEUSDO~1\DOWNLO~1\BCG\GAMEMO~1\BCG.pwn(67536) : warning 215: expression has no effect
C:\DOCUME~1\LUCASR~1\MEUSDO~1\DOWNLO~1\BCG\GAMEMO~1\BCG.pwn(67536) : error 001: expected token: ";", but found ")"
C:\DOCUME~1\LUCASR~1\MEUSDO~1\DOWNLO~1\BCG\GAMEMO~1\BCG.pwn(67536) : error 029: invalid expression, assumed zero
C:\DOCUME~1\LUCASR~1\MEUSDO~1\DOWNLO~1\BCG\GAMEMO~1\BCG.pwn(67536) : fatal error 107: too many error messages on one line
Velocimetro
Код:
public Velocimetro()
{
new Float:Speedo_HP;
for(new i=0; i<MAX_PLAYERS; i++)
{
if(gPlayerLogged[i] == 1 && IsPlayerInAnyVehicle(i))
{
new vehicle = GetPlayerVehicleID(i);
GetVehicleHealth(vehicle, Speedo_HP);
new string[256];
format(string,sizeof(string),"~g~Veiculo:~w~%s~n~~g~Velocidade:~w~ %d KM/h~n~~g~Combustivel: ~w~%d%%~n~~g~Lataria: ~w~%0.0f%%~n~~g~Blindagem: ~w~%d%%"" , vehName[GetVehicleModel(vehicle)-400], GetPlayerSpeed(i, true), Gas[vehicle], Speedo_HP/10, Vuln[vehicle], ReturnPlayerZone(i));
TextDrawSetString(Speed[i], string);
if(TextShow[i] == false)
{
TextDrawShowForPlayer(i, Speed[i]);
TextShow[i] = true;
}
}
else
{
if(TextShow[i] == true)
{
TextDrawHideForPlayer(i, Speed[i]);
TextShow[i] = false;
}
}
}
}
E A Linha Do Erro й Essa
Код:
format(string,sizeof(string),"~g~Veiculo:~w~%s~n~~g~Velocidade:~w~ %d KM/h~n~~g~Combustivel: ~w~%d%%~n~~g~Lataria: ~w~%0.0f%%~n~~g~Blindagem: ~w~%d%%"" , vehName[GetVehicleModel(vehicle)-400], GetPlayerSpeed(i, true), Gas[vehicle], Speedo_HP/10, Vuln[vehicle], ReturnPlayerZone(i));
Re: Ajuda Com 4 Erros no Meu GM -
PT - 22.07.2013
tenta
pawn Код:
format(string,sizeof(string),"~g~Veiculo:~w~%s~n~~g~Velocidade:~w~ %d KM/h~n~~g~Combustivel: ~w~%d~n~~g~Lataria: ~w~%0.0f~n~~g~Blindagem: ~w~%d" , ehName[GetVehicleModel(vehicle)-400], GetPlayerSpeed(i, true), Gas[vehicle], Speedo_HP/10, Vuln[vehicle], ReturnPlayerZone(i));
Re: Ajuda Com 4 Erros no Meu GM -
LucasFoxY - 22.07.2013
Continua Com Erros