Folgende Errors habe ich:
C:\Users\Ich\Desktop\Scripting\samp03x_svr_R1-2_win32\gamemodes\DmGl.pwn(1135) : warning 235: public function lacks forward declaration (symbol "BenzinVerlust")
C:\Users\Ich\Desktop\Scripting\samp03x_svr_R1-2_win32\gamemodes\DmGl.pwn(1155) : warning 235: public function lacks forward declaration (symbol "Auftanken")
Kann mir da jemand helfen an was es liegen kann?
public BenzinVerlust()
{
for(new i=0; i<MAX_VEHICLES; i++)
{
if (Motor == true)
{
Tank = Tank-1;
if (Tank<1)
{
Tank = 0;
GetVehicleParamsEx(i,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(i,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
Motor = false;
}
}
}
return 1;
}
public Auftanken(playerid)
{
new car = GetPlayerVehicleID(playerid);
Tank[car] = Tank[car] +1;
if(Tank[car] >= 100)
{
Tanktgerade[car] = false;
Tank[car] = 100;
TogglePlayerControllable(playerid,1);
KillTimer(tanktimer[playerid]);
}
return 1;
}
[i][i]
[/i][/i]forwart BenzinVerlust();
forwart Auftanken(playerid);[i][i]
[/i][/i]