Mein Skillsystem funktioniert nicht richtig Warum?
Man kann wenn man Skill lvl 50 hat also EXP bis Status: 120% voll machen wird auch angezeigt..
Aber wenn ich SKill lvl 100 habe also EXP wird auch geupdatet von meinem Sys auf 140% das man haben kann
aber man kann troz nur bis 120% auffüllen..
Was hab ich Falsch gemacht?
Und man kann ohne Fahrzeug Objekte einsammeln :O
if(dienst[playerid] == 13 && IsVehicleACleanCar(vehicleid2))
{
for(new i=0;i<MAX_RUBBISH;i++)
{
if(IsPlayerInRangeOfPoint(playerid,2.5,SRubbishInfo[i][RposX],SRubbishInfo[i][RposY],SRubbishInfo[i][RposZ]) && SRubbishInfo[i][RubbishCreated] == true)
{
new dirtrand = 10;
if(PlayerInfo[playerid][pBauerSkill] < 50)
{
if((VehicleLoadTank[vehicleid2] + dirtrand) >= 101)return 1;
}
else if(PlayerInfo[playerid][pBauerSkill] >= 49)
{
if((VehicleLoadTank[vehicleid2] + dirtrand) >= 121)return 1;
}
else if(PlayerInfo[playerid][pBauerSkill] >= 99)
{
if((VehicleLoadTank[vehicleid2] + dirtrand) >= 141)return 1;
}
else if(PlayerInfo[playerid][pBauerSkill] >= 149)
{
if((VehicleLoadTank[vehicleid2] + dirtrand) >= 161)return 1;
}
if(PlayerInfo[playerid][pBauerSkill] >= 199)
{
if((VehicleLoadTank[vehicleid2] + dirtrand) >= 181)return 1;
}
else if(PlayerInfo[playerid][pBauerSkill] >= 249)
{
if((VehicleLoadTank[vehicleid2] + dirtrand) >= 201)return 1;
}
// if((VehicleLoadTank[vehicleid2] + dirtrand) >= 101)return 1;
SRubbishInfo[i][RubbishCreated] = false;
SRubbishInfo[i][NextRubbishIn] = gettime() + (60*3);
DestroyDynamicObject(SRubbishInfo[i][RubbishObject]);
/*format(string,sizeof(string),"%i kg aufgesaugt wien staubsauger",dirtrand);
SendClientMessage(playerid,COLOR_YELLOW,string);*/
VehicleLoadTank[vehicleid2] += dirtrand;
/*format(string,sizeof(string),"Ladungsstatus: %i/500kg",VehicleLoadTank[vehicleid]);
SendClientMessage(playerid,COLOR_YELLOW,string);*/
// new string3[254];
if(PlayerInfo[playerid][pBauerSkill] >= 49)
{
format(string3,128,"Status: %i/120%", VehicleLoadTank[vehicleid2]);
PlayerTextDrawSetString(playerid, BauernJobanzeigedraw[playerid], string3);
}
if(PlayerInfo[playerid][pBauerSkill] >= 99)
{
format(string3,128,"Status: %i/140%", VehicleLoadTank[vehicleid2]);
PlayerTextDrawSetString(playerid, BauernJobanzeigedraw[playerid], string3);
}
if(PlayerInfo[playerid][pBauerSkill] >= 149)
{
format(string3,128,"Status: %i/160%", VehicleLoadTank[vehicleid2]);
PlayerTextDrawSetString(playerid, BauernJobanzeigedraw[playerid], string3);
}
if(PlayerInfo[playerid][pBauerSkill] >= 199)
{
format(string3,128,"Status: %i/180%", VehicleLoadTank[vehicleid2]);
PlayerTextDrawSetString(playerid, BauernJobanzeigedraw[playerid], string3);
}
if(PlayerInfo[playerid][pBauerSkill] >= 249)
{
format(string3,128,"Status: %i/200%", VehicleLoadTank[vehicleid2]);
PlayerTextDrawSetString(playerid, BauernJobanzeigedraw[playerid], string3);
}
if(PlayerInfo[playerid][pBauerSkill] < 50)
{
format(string3,128,"Status: %i/100%", VehicleLoadTank[vehicleid2]);
PlayerTextDrawSetString(playerid, BauernJobanzeigedraw[playerid], string3);
}
return 1;
}
}
}
stock IsVehicleACleanCar(vehicleid){ for(new i=0;i<sizeof(bauerauto);i++) { if(vehicleid == bauerauto[i]) return 1; } return 0;}