Car system freezes pawno
#1

So I've made this with some help of a tut.
pawn Код:
stock CreateVehicleEx(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawntime, ownername[MAX_PLAYER_NAME], factioncar, noobcar)
{
    new carid = GetFreeVehicleSlot();
    VehicleInfo[carid][vModel] = modelid;
    VehicleInfo[carid][vX] = x;
    VehicleInfo[carid][vY] = y;
    VehicleInfo[carid][vZ] = z;
    VehicleInfo[carid][vA] = angle;
    VehicleInfo[carid][vColor1] = color1;
    VehicleInfo[carid][vColor2] = color2;
    VehicleInfo[carid][vRespawn] = respawntime;
    VehicleInfo[carid][vOwner] = ownername;
    VehicleInfo[carid][vFaction] = factioncar;
    VehicleInfo[carid][vNoob] = noobcar;
    validcar[carid] = true;
    CreateVehicle(modelid, x, y, z, angle, color1, color2, respawntime);
    return carid;
}

stock LoadVehicle(filename[36])
{
    INI:ini = INI_Open(filename);
    CreateVehicleEx(INI_Int(ini, "Model", VehicleInfo[vehicle][vModel]), INI_Float(ini, "vX", VehicleInfo[vehicle][vX]), INI_Float(ini, "vY", VehicleInfo[vehicle][vY]), INI_Float(ini, "vZ", VehicleInfo[vehicle][vZ]), INI_Float(ini, "vA", VehicleInfo[vehicle][vA]),INI_Int(ini, "Color1", VehicleInfo[vehicle][vColor1]), INI_Int(ini, "Color2", VehicleInfo[vehicle][vColor2]), INI_Int(ini, "Respawn", VehicleInfo[vehicle][vRespawn]), INI_String(ini, "Owner", VehicleInfo[vehicle][vOwner]), INI_Int(ini, "FactionCar", VehicleInfo[vehicle][vFaction]), INI_Int(ini, "NoobCar", VehicleInfo[vehicle][vNoob]));
    INI_Close(ini);
}
Only did he use Dini, and I decided to change it to Y_Ini, as it's much better. But what have I done wrong? When i compile this, Pawno freezes. And when i remove this, pawno compiles just fine.
Reply


Messages In This Thread
Car system freezes pawno - by ThaCrypte - 26.02.2014, 22:55
Re: Car system freezes pawno - by Threshold - 26.02.2014, 23:18
Re: Car system freezes pawno - by ThaCrypte - 27.02.2014, 13:48
Re: Car system freezes pawno - by ThaCrypte - 27.02.2014, 21:32
Re: Car system freezes pawno - by Threshold - 27.02.2014, 22:22
Re: Car system freezes pawno - by ThaCrypte - 27.02.2014, 22:30

Forum Jump:


Users browsing this thread: 3 Guest(s)