07.02.2014, 19:46
I have created a function that called LoadGas
I have located it at OnGameModeInit like that:
The problem is that OnGameModeInit function just ignores what comes after that line.
This is the function:
There are no warnings/errors.
I have located it at OnGameModeInit like that:
Код:
LoadGas();
This is the function:
Код:
stock LoadGas() { new s = sizeof(FuelTanks); for(new i=0;0<s;i++) { CreateDynamicObject(3465, FuelTanks[i][0], FuelTanks[i][1], FuelTanks[i][2], 0.00000, 0.00000, FuelTanks[i][3]); new gas[50]; format(gas,50,"Gas Tank\n/v fill yo use\n%d$ per liter", gasprice); Create3DTextLabel(gas, COLOR_WHITE, FuelTanks[i][0], FuelTanks[i][1], FuelTanks[i][2], 32.0, 0, 0); } return 1; }