Question.
#1

What can cause vehicle to spawn in blueberry?

In my Vehicle System the vehicle gets loaded just that it spawns in blackberry. Well actually it does not even spawn. I have a command to locate a vehicle and it is always at blueberry when the player connects to the server.

pawn Код:
format(vfile, sizeof(vfile), "Vehicles/%s.ini",pname);
            if(dini_Exists(vfile))
            {
                CarSystem[playerid][vModel] = dini_Int(vfile, "Model");
                CarSystem[playerid][vPos][0] = dini_Float(vfile, "XSpawn");
                CarSystem[playerid][vPos][1] = dini_Float(vfile, "YSpawn");
                CarSystem[playerid][vPos][2] = dini_Float(vfile, "ZSpawn");
                CarSystem[playerid][vPos][3] = dini_Float(vfile, "Angle");
                CarSystem[playerid][vCols][0] = dini_Int(vfile, "Col1");
                CarSystem[playerid][vCols][1] = dini_Int(vfile, "Col2");
                CarSystem[playerid][vMods][0] = dini_Int(vfile, "vMod0");
                CarSystem[playerid][vMods][1] = dini_Int(vfile, "vMod1");
                CarSystem[playerid][vMods][2] = dini_Int(vfile, "vMod2");
                CarSystem[playerid][vMods][3] = dini_Int(vfile, "vMod3");
                CarSystem[playerid][vMods][4] = dini_Int(vfile, "vMod4");
                CarSystem[playerid][vMods][5] = dini_Int(vfile, "vMod5");
                CarSystem[playerid][vMods][6] = dini_Int(vfile, "vMod6");
                CarSystem[playerid][vMods][7] = dini_Int(vfile, "vMod7");
                CarSystem[playerid][vMods][8] = dini_Int(vfile, "vMod8");
                CarSystem[playerid][vMods][9] = dini_Int(vfile, "vMod9");
                CarSystem[playerid][vMods][10] = dini_Int(vfile, "vMod10");
                CarSystem[playerid][vMods][11] = dini_Int(vfile, "vMod11");
                CarSystem[playerid][vMods][12] = dini_Int(vfile, "vMod12");
                CarSystem[playerid][vPaintjob] = dini_Int(vfile, "Paintjob");
                CarSystem[playerid][vLock] = dini_Int(vfile, "Lock");
                CarSystem[playerid][Owner] = dini_Int(vfile, "Owner");
                CarSystem[playerid][HasCar] = dini_Int(vfile, "HasCar");
                CarSystem[playerid][vID] = CreateVehicle(CarSystem[playerid][vModel], CarSystem[playerid][vPos][0], CarSystem[playerid][vPos][1], CarSystem[playerid][vPos][2], CarSystem[playerid][vPos][3], CarSystem[playerid][vCols][0], CarSystem[playerid][vCols][1],900000);
            }
I cant see what i am doing wrong. Positions load and all but it just wont create the vehicle at all.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)