warning 208: function with tag result used before definition, forcing reparse[HELP!!!]
#1

Код:
C:\Users\mai\Desktop\Gta Hanamiku Class SS\HaNaMiKu\Hanamiku.pwn(72001) : warning 208: function with tag result used before definition, forcing reparse
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
Код:
public CheckGas()
{
    for(new i = 1; i<2000; i++)
	{
		new engine,lights,alarm,doors,bonnet,boot,objective;
 		GetVehicleParamsEx(i,engine,lights,alarm,doors,bonnet,boot,objective);
	    if (engine == 1 && !IsNonFuelVehicle(i))
	    {
        	if(Gas[i] >= 1)
	   		{
    			Gas[i]--;
	   		}
	   		else
		   	{
				SetVehicleParamsEx(i,0,lights,alarm,doors,bonnet,boot,objective);
		    }
        	if(Gas[i] > 100)
	   		{
              	Gas[i] = 100;
	   		}
			for(new y; y<MAX_PLAYERS; y++)
			{
		    	if(IsPlayerConnected(y))
		       	{
		       	    if(IsPlayerInAnyVehicle(y) && GetPlayerVehicleID(y) == i)
		       	    {
		       	        if(GetPlayerVehicleSeat(y) == 0 || GetPlayerVehicleSeat(y) == 1)
						{
						    new Float:Frotation = 160 - ((100 - Gas[i])*1.4);
					  		if(Gas[i] > 100){ Frotation = 160;}
					  		if(Gas[i] < 0){ Frotation = 20;	}
							for(new p; p < 7; p++)
							{
					    		PlayerTextDrawDestroy(y, FuelBar[y][p]);
								new Float:FPos[7][2];
						  		RotationXY(581.8-20.0, 377.3+35.0, FPos[p][0], FPos[p][1], Frotation, (p + 1) * 5);
						  		FuelBar[y][p] = CreatePlayerTextDraw(y, FPos[p][0], FPos[p][1], ".");
								PlayerTextDrawBackgroundColor(y, FuelBar[y][p], 0x00000000);
					  			PlayerTextDrawLetterSize(y, FuelBar[y][p], 0.73, -2.60);
								PlayerTextDrawColor(y, FuelBar[y][p], 0x8B0000FF);
								PlayerTextDrawShow(y, FuelBar[y][p]);
							}
							if(Gas[i] <= 10) { PlayerPlaySound(y, 1085, 0.0, 0.0, 0.0); }
		       	        }
		       	    }
				}
			}
	    }
	}
	return 1;
}
Reply
#2

I assume it's from RotationXY and it returns a float value, right?

You can:
- either move RotationXY function BEFORE CheckGas.
- or forward RotationXY with the tag BEFORE CheckGas.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)