Greedings,i have problem with one thing.I want to do fuel,but on different vehiclemodel should be different fuel,for example infernus should have 150L,but when i go into vehicle textdraw shows this 0.00L...I dont know why.
There is code:
There is code:
PHP Code:
stock FULL(vehicleid)
{
new model = GetVehicleModel(vehicleid);
if(model > 399 && model < 613)
{
switch(model)
{
case 401,404,405,410,412,419,420,421,426,436,438,445,458,466,467,492,507,516,526,527,529,536,540,542,546,596,597,598,604,605: return 2;
case 402,411,415,429,439,451,474,475,477,480,491,496,504,506,517,518,533,534,541,555,558,559,562,587,589,602,603: return 3;
}
}
return false;
}
PHP Code:
//OngamemodeInit
for(new v=0; v<MAX_VEHICLES; v++)
{
if(FULL(v) == 2)
{
Benzin[v] = 100.00;
}
if(FULL(v) == 3)
{
Benzin[v] = 150.00;
}
}