22.07.2013, 23:12
Bom, vamos direto ao assunto, estou colocando um Sistema de blindar,e quando coloco no velocimetro esta dando esses erros no GM
Velocimetro
E A Linha Do Erro й Essa
Код:
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
Код:
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; } } } }
Код:
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));