14.07.2010, 11:05
Hi,
I utilise that on my gamemode with /lock and /unlock
new iVehicleObjective[MAX_PLAYERS][MAX_VEHICLES][2];
public OnVehicleStreamIn(vehicleid,forplayerid)
{
SetVehicleParamsForPlayer(vehicleid,forplayerid,iV ehicleObjective[forplayerid][vehicleid [0],iVehicleObjective[forplayerid][vehicleid][1]);
return 1;
}
stock SetVehicleParamsForPlayerEx(vehicleid, playerid, objective, doorslocked)
{
SetVehicleParamsForPlayer(vehicleid, playerid, objective, doorslocked);
iVehicleObjective[playerid][vehicleid][0] = objective;
iVehicleObjective[playerid][vehicleid][1] = doorslocked;
return 1;
}
Work, but my file size .pawn is 2500ko and .amx 10000 ko, if i remove VehicleObjective my amx size is 4500k. It's normally? Why? and there are not other solution?
Thanks
I utilise that on my gamemode with /lock and /unlock
new iVehicleObjective[MAX_PLAYERS][MAX_VEHICLES][2];
public OnVehicleStreamIn(vehicleid,forplayerid)
{
SetVehicleParamsForPlayer(vehicleid,forplayerid,iV ehicleObjective[forplayerid][vehicleid [0],iVehicleObjective[forplayerid][vehicleid][1]);
return 1;
}
stock SetVehicleParamsForPlayerEx(vehicleid, playerid, objective, doorslocked)
{
SetVehicleParamsForPlayer(vehicleid, playerid, objective, doorslocked);
iVehicleObjective[playerid][vehicleid][0] = objective;
iVehicleObjective[playerid][vehicleid][1] = doorslocked;
return 1;
}
Work, but my file size .pawn is 2500ko and .amx 10000 ko, if i remove VehicleObjective my amx size is 4500k. It's normally? Why? and there are not other solution?
Thanks