Hallo Com,
Ich woltle das bei den Letzten 10 Litern es anfängt zu Piepen leider weiß ich nicht wie mann die Sounds einbaut
ich habe es so gemacht wie ich es dachte und es ist anscheinend Falsch
Ich kriege Prob Sound immer 3Fehler und zwar :
C:\Users\capco_000\Desktop\Programme\Scripts\Selfmade Script\gamemodes\Bread.pwn(871) : error 029: invalid expression, assumed zero
C:\Users\capco_000\Desktop\Programme\Scripts\Selfmade Script\gamemodes\Bread.pwn(871) : warning 215: expression has no effect
C:\Users\capco_000\Desktop\Programme\Scripts\Selfmade Script\gamemodes\Bread.pwn(871) : error 001: expected token: ";", but found "if"
So sieht das ganze aus:
public OnPlayerUpdate(playerid)
{
if(GetPlayerVehicleSeat(playerid) == 0)
{
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
if(GetVehicleModel(vehicleid) != 509 && GetVehicleModel(vehicleid) != 481 && GetVehicleModel(vehicleid) != 510)
{
new string[125];
if(Tank[vehicleid] <= 0) format(string,sizeof string,"~g~Tank: ~r~I~r~I~r~I~r~I~r~I~r~I~r~I~r~I~r~I~r~I",Tank[vehicleid]);
else if(Tank[vehicleid] <= 5) format(string,sizeof string,"~g~Tank: ~y~I~r~I~r~I~r~I~r~I~r~I~r~I~r~I~r~I~r~I",Tank[vehicleid]);
{
PlayerPlaySound(playerid, 1085, 0.0,0.0,10.0);
}
else if(Tank[vehicleid] <= 10) format(string,sizeof string,"~g~Tank: ~g~I~r~I~r~I~r~I~r~I~r~I~r~I~r~I~r~I~r~I",Tank[vehicleid]);
{
PlayerPlaySound(playerid, 1085, 0.0,0.0,10.0);
}
else if(Tank[vehicleid] <= 15) format(string,sizeof string,"~g~Tank: ~g~I~y~I~r~I~r~I~r~I~r~I~r~I~r~I~r~I~r~I",Tank[vehicleid]);
else if(Tank[vehicleid] <= 20) format(string,sizeof string,"~g~Tank: ~g~I~g~I~r~I~r~I~r~I~r~I~r~I~r~I~r~I~r~I",Tank[vehicleid]);
else if(Tank[vehicleid] <= 25) format(string,sizeof string,"~g~Tank: ~g~I~g~I~y~I~r~I~r~I~r~I~r~I~r~I~r~I~r~I",Tank[vehicleid]);
else if(Tank[vehicleid] <= 30) format(string,sizeof string,"~g~Tank: ~g~I~g~I~g~I~r~I~r~I~r~I~r~I~r~I~r~I~r~I",Tank[vehicleid]);
else if(Tank[vehicleid] <= 35) format(string,sizeof string,"~g~Tank: ~g~I~g~I~g~I~y~I~r~I~r~I~r~I~r~I~r~I~r~I",Tank[vehicleid]);
else if(Tank[vehicleid] <= 40) format(string,sizeof string,"~g~Tank: ~g~I~g~I~g~I~g~I~r~I~r~I~r~I~r~I~r~I~r~I",Tank[vehicleid]);
else if(Tank[vehicleid] <= 45) format(string,sizeof string,"~g~Tank: ~g~I~g~I~g~I~g~I~y~I~r~I~r~I~r~I~r~I~r~I",Tank[vehicleid]);
else if(Tank[vehicleid] <= 50) format(string,sizeof string,"~g~Tank: ~g~I~g~I~g~I~g~I~g~I~r~I~r~I~r~I~r~I~r~I",Tank[vehicleid]);
else if(Tank[vehicleid] <= 55) format(string,sizeof string,"~g~Tank: ~g~I~g~I~g~I~g~I~g~I~y~I~r~I~r~I~r~I~r~I",Tank[vehicleid]);
else if(Tank[vehicleid] <= 60) format(string,sizeof string,"~g~Tank: ~g~I~g~I~g~I~g~I~g~I~g~I~r~I~r~I~r~I~r~I",Tank[vehicleid]);
else if(Tank[vehicleid] <= 65) format(string,sizeof string,"~g~Tank: ~g~I~g~I~g~I~g~I~g~I~g~I~y~I~r~I~r~I~r~I",Tank[vehicleid]);
else if(Tank[vehicleid] <= 70) format(string,sizeof string,"~g~Tank: ~g~I~g~I~g~I~g~I~g~I~g~I~g~I~r~I~r~I~r~I",Tank[vehicleid]);
else if(Tank[vehicleid] <= 75) format(string,sizeof string,"~g~Tank: ~g~I~g~I~g~I~g~I~g~I~g~I~g~I~y~I~r~I~r~I",Tank[vehicleid]);
else if(Tank[vehicleid] <= 80) format(string,sizeof string,"~g~Tank: ~g~I~g~I~g~I~g~I~g~I~g~I~g~I~g~I~r~I~r~I",Tank[vehicleid]);
else if(Tank[vehicleid] <= 85) format(string,sizeof string,"~g~Tank: ~g~I~g~I~g~I~g~I~g~I~g~I~g~I~g~I~y~I~r~I",Tank[vehicleid]);
else if(Tank[vehicleid] <= 90) format(string,sizeof string,"~g~Tank: ~g~I~g~I~g~I~g~I~g~I~g~I~g~I~g~I~g~I~r~I",Tank[vehicleid]);
else if(Tank[vehicleid] <= 95) format(string,sizeof string,"~g~Tank: ~g~I~g~I~g~I~g~I~g~I~g~I~g~I~g~I~g~I~y~I",Tank[vehicleid]);
else if(Tank[vehicleid] <= 100) format(string,sizeof string,"~g~Tank: ~g~I~g~I~g~I~g~I~g~I~g~I~g~I~g~I~g~I~g~I",Tank[vehicleid]);
TextDrawSetString(pSpeedo[playerid][2],string);
}
}
else
{
TextDrawSetString(pSpeedo[playerid][2], "~g~Tank: ~g~I~g~I~g~I~g~I~g~I~g~I~g~I~g~I~g~I~g~I ");
}
return 1;
}