[HELP]Cars shadow.
#1

Hi. I have created some cars in the stadium, but I do not understand why they appear like some kind of a shadow in the aerport SF. Some people told me it is because of the virtual ID interior, because it must be the same as the stadium interior is. But look.

1 My stadium interior on turismos is 7.
2 It's not the problem on car's id, instead of 451(turismos) I puted 522(nrg-500) and still the same thing
3 The cars appear in the stadium and as a shadow in aerport SF also.

Can you help me please? Thank you. Here is the script :

pawn Код:
Turismo[1] = CreateVehicle(451,-1402.1162,-259.9066,1043.3632,346.5681,-1,-1,60);
    Turismo[2] = CreateVehicle(451,-1405.6050,-259.1055,1043.3624,349.3401,-1,-1,60);
    Turismo[3] = CreateVehicle(451,-1408.4631,-258.6261,1043.3693,349.3985,-1,-1,60);
    Turismo[4] = CreateVehicle(451,-1403.7344,-227.9946,1042.9355,351.6170,-1,-1,60);
    Turismo[5] = CreateVehicle(451,-1404.7408,-234.0718,1043.0221,350.6671,-1,-1,60);
    Turismo[6] = CreateVehicle(451,-1405.8110,-239.9628,1043.1130,350.7557,-1,-1,60);
    Turismo[7] = CreateVehicle(451,-1406.8254,-246.1033,1043.2104,350.0145,-1,-1,60);
    Turismo[8] = CreateVehicle(451,-1389.0242,-215.8885,1042.8398,3.4904,-1,-1,60);
    Turismo[9] = CreateVehicle(451,-1388.5942,-222.2435,1042.8969,4.9918,-1,-1,60);
    Turismo[10] = CreateVehicle(451,-1388.0756,-226.9755,1042.9449,4.9951,-1,-1,60);
    Turismo[11] = CreateVehicle(451,-1387.4373,-231.9618,1043.0137,6.8981,-1,-1,60);
    Turismo[12] = CreateVehicle(451,-1386.8801,-236.9860,1043.0900,8.8090,-1,-1,60);
    Turismo[13] = CreateVehicle(451,-1385.9900,-242.4177,1043.1959,9.2420,-1,-1,60);
    for(new i; i < sizeof(Turismo); i++){LinkVehicleToInterior(Turismo[i], 7); AddVehicleComponent(Turismo[i], 1010); ChangeVehicleColor(Turismo[i], random(126), random(126));}
And I also added some sultans that work, I mean are not shown as a shadow into the aerport SF look :

pawn Код:
Sultan[1] = CreateVehicle(560,-1381.3452,1103.5311,1039.9316,164.5846,-1,-1,60);
    Sultan[2] = CreateVehicle(560,-1386.7485,1104.0878,1039.9335,172.9897,-1,-1,60);
    Sultan[3] = CreateVehicle(560,-1391.7251,1104.2129,1039.9255,174.8298,-1,-1,60);
    Sultan[4] = CreateVehicle(560,-1396.9840,1104.2659,1039.9208,178.5663,-1,-1,60);
    Sultan[5] = CreateVehicle(560,-1402.1244,1103.6111,1039.9626,185.2027,-1,-1,60);
    Sultan[6] = CreateVehicle(560,-1407.1370,1103.4095,1039.9333,177.8269,-1,-1,60);
    Sultan[7] = CreateVehicle(560,-1412.8219,1103.0903,1039.9481,181.8065,-1,-1,60);
    Sultan[8] = CreateVehicle(560,-1417.4198,1102.6405,1039.9541,181.2966,-1,-1,60);
    Sultan[9] = CreateVehicle(560,-1423.1003,1101.8015,1039.9720,186.7991,-1,-1,60);
    Sultan[10] = CreateVehicle(560,-1427.6539,1100.9862,1039.9890,188.4233,-1,-1,60);
    Sultan[11] = CreateVehicle(560,-1431.5276,1100.1443,1039.9998,186.7679,-1,-1,60);
    Sultan[12] = CreateVehicle(560,-1437.2100,1097.2540,1039.9890,197.5737,-1,-1,60);
    Sultan[13] = CreateVehicle(560,-1442.3136,1095.2731,1040.0068,201.6615,-1,-1,60);
    for(new i; i < sizeof(Sultan); i++){LinkVehicleToInterior(Sultan[i], 15); AddVehicleComponent(Sultan[i], 1010); ChangeVehicleColor(Sultan[i], random(126), random(126));}
Please help me. Thanks
Reply
#2

it's a interior thing i guess...
Reply
#3

Yeah i think that too, but what can the problem be ?
Reply
#4

You did link vehicle to interior get the interior thing off and try to put them on a normal place watch if its still the same
Reply
#5

pawn Код:
LinkVehicleToInterior(vehicleid,interior);
Reply
#6

Quote:
Originally Posted by DRIFT_HUNTER
Посмотреть сообщение
pawn Код:
LinkVehicleToInterior(vehicleid,interior);
What do you mean by this ? This is not working, it gives me loads of errors.
Reply
#7

BUMP!!!
Reply
#8

Quote:
Originally Posted by [Aka]Dragonu
Посмотреть сообщение
pawn Код:
Turismo[1] = CreateVehicle(451,-1402.1162,-259.9066,1043.3632,346.5681,-1,-1,60);
    Turismo[2] = CreateVehicle(451,-1405.6050,-259.1055,1043.3624,349.3401,-1,-1,60);
    Turismo[3] = CreateVehicle(451,-1408.4631,-258.6261,1043.3693,349.3985,-1,-1,60);
    Turismo[4] = CreateVehicle(451,-1403.7344,-227.9946,1042.9355,351.6170,-1,-1,60);
    Turismo[5] = CreateVehicle(451,-1404.7408,-234.0718,1043.0221,350.6671,-1,-1,60);
    Turismo[6] = CreateVehicle(451,-1405.8110,-239.9628,1043.1130,350.7557,-1,-1,60);
    Turismo[7] = CreateVehicle(451,-1406.8254,-246.1033,1043.2104,350.0145,-1,-1,60);
    Turismo[8] = CreateVehicle(451,-1389.0242,-215.8885,1042.8398,3.4904,-1,-1,60);
    Turismo[9] = CreateVehicle(451,-1388.5942,-222.2435,1042.8969,4.9918,-1,-1,60);
    Turismo[10] = CreateVehicle(451,-1388.0756,-226.9755,1042.9449,4.9951,-1,-1,60);
    Turismo[11] = CreateVehicle(451,-1387.4373,-231.9618,1043.0137,6.8981,-1,-1,60);
    Turismo[12] = CreateVehicle(451,-1386.8801,-236.9860,1043.0900,8.8090,-1,-1,60);
    Turismo[13] = CreateVehicle(451,-1385.9900,-242.4177,1043.1959,9.2420,-1,-1,60);
    for(new i; i < sizeof(Turismo); i++){LinkVehicleToInterior(Turismo[i], 7); AddVehicleComponent(Turismo[i], 1010); ChangeVehicleColor(Turismo[i], random(126), random(126));}
Please help me. Thanks
Problem the for loop:
pawn Код:
//                  13
for(new i = 0; i < sizeof(Sultan); i++)  //Loop : 0,1,2,3,4,5,6,7,8,9,10,11,12 end
//also
Turismo[1] = Create....
Turismo[2] = Create....
...
Turismo[13] = Create..
Correct:
pawn Код:
Turismo[0] = CreateVehicle(451,-1402.1162,-259.9066,1043.3632,346.5681,-1,-1,60); // Start 0 index!!
Turismo[1] = CreateVehicle(451,-1405.6050,-259.1055,1043.3624,349.3401,-1,-1,60);
Turismo[2] = CreateVehicle(451,-1408.4631,-258.6261,1043.3693,349.3985,-1,-1,60);
Turismo[3] = CreateVehicle(451,-1403.7344,-227.9946,1042.9355,351.6170,-1,-1,60);
// ...
// ...
for(new i = 0; i < sizeof(Sultan); i++)
{
    //etc..
}
Reply
#9

Not working look :

pawn Код:
// Stadium vehicles >>>
    new Turismo[13];

    Turismo[0] = CreateVehicle(451,-1402.1162,-259.9066,1043.3632,346.5681,-1,-1,60);
    Turismo[1] = CreateVehicle(451,-1405.6050,-259.1055,1043.3624,349.3401,-1,-1,60);
    Turismo[2] = CreateVehicle(451,-1408.4631,-258.6261,1043.3693,349.3985,-1,-1,60);
    Turismo[3] = CreateVehicle(451,-1403.7344,-227.9946,1042.9355,351.6170,-1,-1,60);
    Turismo[4] = CreateVehicle(451,-1404.7408,-234.0718,1043.0221,350.6671,-1,-1,60);
    Turismo[5] = CreateVehicle(451,-1405.8110,-239.9628,1043.1130,350.7557,-1,-1,60);
    Turismo[6] = CreateVehicle(451,-1406.8254,-246.1033,1043.2104,350.0145,-1,-1,60);
    Turismo[7] = CreateVehicle(451,-1389.0242,-215.8885,1042.8398,3.4904,-1,-1,60);
    Turismo[8] = CreateVehicle(451,-1388.5942,-222.2435,1042.8969,4.9918,-1,-1,60);
    Turismo[9] = CreateVehicle(451,-1388.0756,-226.9755,1042.9449,4.9951,-1,-1,60);
    Turismo[10] = CreateVehicle(451,-1387.4373,-231.9618,1043.0137,6.8981,-1,-1,60);
    Turismo[11] = CreateVehicle(451,-1386.8801,-236.9860,1043.0900,8.8090,-1,-1,60);
    Turismo[12] = CreateVehicle(451,-1385.9900,-242.4177,1043.1959,9.2420,-1,-1,60);
    for(new i; i < sizeof(Turismo); i++){LinkVehicleToInterior(Turismo[i], 7); AddVehicleComponent(Turismo[i], 1010); ChangeVehicleColor(Turismo[i], random(126), random(126));}
This doesn't shows any errors !
Reply
#10

Ok i found the problem.
pawn Код:
if (strcmp(cmdtext, "/race", true) == 0)
    {
        new Float:garx, Float:gary, Float:garz;
        if(city == 1)
        {
            garx = StadiumPosition_LS[0][0];
            gary = StadiumPosition_LS[0][1];
            garz = StadiumPosition_LS[0][2];
        }
        if (PlayerToPoint(5, playerid, garx, gary, garz))
        {
            SetPlayerInterior(playerid, 7);
            SetPlayerVirtualWorld(playerid, 0);
            SetPlayerPos(playerid, -1403.7610,-227.0062,1043.2185); // This line
            format(string, sizeof(string), "%s has entered the race stadium (/race)!", PlayerName[playerid]);
            SendClientMessageToAll(COLOR_YELLOW, string);
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "Welcome to the race stadium, press /exitstadium to exit.");
            PlayerInStadium[playerid] = 1;
        }
        else
        {
            if(city == 1){SendClientMessage(playerid, COLOR_RED, "There is no stadium here, go to the Los Santos stadium in east Los Santos.");}
        }
        return 1;
    }
That line teleports you to airport SF instead of stadium LS. How to solve ? (Sorry for 2 post)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)