SA-MP Forums Archive
What's this function/Include? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: What's this function/Include? (/showthread.php?tid=652050)



What's this function/Include? - TitoRayne - 02.04.2018

Could any help me here?

this is the error message
Код:
vehicle@YSII_Ag
this is where the errors came from
Код:
GetVehicleLinkedID(id)
{
    foreach(new i: Vehicle)
    {
        if(VehicleInfo[i][vID] == id)
        {
		 	return i;
    	}
    }

    return INVALID_VEHICLE_ID;
}