Por que SetVehicleParamsForPlayer no se ejecuta?
#1

Tengo este problema que no se ejecuta los autos deberian cerrarse para el jugador pero igual puede subir...ojo solo es para el jugador para todos no

pawn Код:
//fuera del los callbacks
new vvvv[70];

public OnGameModeInit()
{
vvvv[0] = AddStaticVehicleEx(432,1881.29675293,-2269.50024414,13.64621162,274.00000000,91,67,15); //Rhino
vvvv[1] = AddStaticVehicleEx(432,1881.51757812,-2277.95678711,13.64621162,273.99902344,91,67,15); //Rhino
vvvv[2] = AddStaticVehicleEx(432,1882.14550781,-2286.12133789,13.64621162,273.99902344,91,67,15); //Rhino
vvvv[3] = AddStaticVehicleEx(432,1882.33618164,-2293.67700195,13.64621162,273.99902344,91,67,15); //Rhino
vvvv[4] = AddStaticVehicleEx(432,1868.69555664,-2270.43530273,13.64621162,273.99902344,91,67,15); //Rhino
vvvv[5] = AddStaticVehicleEx(432,1868.70068359,-2278.99267578,13.64621162,273.99902344,91,67,15); //Rhino
vvvv[6] = AddStaticVehicleEx(432,1869.50854492,-2287.14086914,13.64621162,273.99902344,91,67,15); //Rhino
vvvv[7] = AddStaticVehicleEx(432,1869.93579102,-2294.23803711,13.64621162,273.99902344,91,67,15); //Rhino
vvvv[8] = AddStaticVehicleEx(432,1859.55859375,-2295.41943359,13.64621162,273.99902344,91,67,15); //Rhino
vvvv[9] = AddStaticVehicleEx(432,1858.77954102,-2287.47045898,13.64621162,273.99902344,91,67,15); //Rhino
vvvv[10] = AddStaticVehicleEx(432,1858.48413086,-2279.64672852,13.64621162,273.99902344,91,67,15); //Rhino
vvvv[11] = AddStaticVehicleEx(432,1858.79760742,-2271.46508789,13.64621162,273.99902344,91,67,15); //Rhino
vvvv[12] = AddStaticVehicleEx(447,1819.00610352,-2413.70263672,16.71179390,184.00000000,-1,-1,15); //Seasparrow
vvvv[13] = AddStaticVehicleEx(447,1832.25390625,-2413.67700195,16.71179390,180.00000000,-1,-1,15); //Seasparrow
vvvv[14] = AddStaticVehicleEx(425,1848.63696289,-2410.12695312,14.40568733,178.00000000,-1,-1,15); //Hunter
vvvv[15] = AddStaticVehicleEx(425,1859.46411133,-2410.86376953,14.40568733,177.99499512,-1,-1,15); //Hunter
vvvv[16] = AddStaticVehicleEx(425,1869.90478516,-2411.00830078,14.40568733,177.99499512,-1,-1,15); //Hunter
vvvv[17] = AddStaticVehicleEx(548,1869.77429199,-2431.95166016,15.45474911,184.00000000,-1,-1,15); //Cargobob
vvvv[18] = AddStaticVehicleEx(548,1856.03015137,-2431.56176758,15.45474911,183.99902344,-1,-1,15); //Cargobob
vvvv[19] = AddStaticVehicleEx(548,1842.28601074,-2431.17211914,15.45474911,181.99902344,-1,-1,15); //Cargobob
vvvv[20] = AddStaticVehicleEx(548,1824.14099121,-2439.55493164,15.45474911,181.99401855,-1,-1,15); //Cargobob
vvvv[21] = AddStaticVehicleEx(417,1871.53906250,-2451.38012695,12.55468750,184.00000000,123,1,15); //Leviathan
vvvv[22] = AddStaticVehicleEx(417,1855.24511719,-2451.75585938,12.55468750,183.99902344,123,1,15); //Leviathan
vvvv[23] = AddStaticVehicleEx(497,1841.71582031,-2452.31103516,13.81968784,186.00000000,-1,-1,15); //Police Maverick
vvvv[24] = AddStaticVehicleEx(497,1825.95812988,-2457.71093750,13.81968784,185.99853516,-1,-1,15); //Police Maverick
vvvv[25] = AddStaticVehicleEx(487,1953.53918457,-2556.92602539,16.69889832,0.00000000,-1,-1,15); //Maverick
vvvv[26] = AddStaticVehicleEx(487,1991.74267578,-2553.38476562,16.69889832,0.00000000,-1,-1,15); //Maverick
vvvv[27] = AddStaticVehicleEx(487,2032.82031250,-2552.52636719,16.69889832,0.00000000,-1,-1,15); //Maverick
vvvv[28] = AddStaticVehicleEx(476,1920.65771484,-2255.81201172,14.71702766,176.00000000,1,1,15); //Rustler
vvvv[29] = AddStaticVehicleEx(476,1942.55334473,-2256.65551758,14.71702766,175.99548340,1,1,15); //Rustler
vvvv[30] = AddStaticVehicleEx(476,1941.50390625,-2268.38183594,14.71702766,175.99548340,1,1,15); //Rustler
vvvv[31] = AddStaticVehicleEx(476,1919.03906250,-2266.43652344,14.71702766,175.99548340,1,1,15); //Rustler
vvvv[32] = AddStaticVehicleEx(476,1918.38964844,-2277.21289062,14.71702766,175.99548340,1,1,15); //Rustler
vvvv[33] = AddStaticVehicleEx(476,1917.91113281,-2288.52148438,14.71702766,175.99548340,1,1,15); //Rustler
vvvv[34] = AddStaticVehicleEx(476,1940.36657715,-2280.09252930,14.71702766,175.99548340,1,1,15); //Rustler
vvvv[35] = AddStaticVehicleEx(476,1939.64160156,-2288.07421875,14.71702766,175.99548340,1,1,15); //Rustler
vvvv[36] = AddStaticVehicleEx(476,1928.61621094,-2293.96289062,14.71702766,175.99548340,17,1,15); //Rustler
vvvv[37] = AddStaticVehicleEx(511,2083.92919922,-2641.22753906,15.06277275,0.00000000,1,1,15); //Beagle
vvvv[38] = AddStaticVehicleEx(511,2061.85961914,-2641.40234375,15.06277275,0.00000000,1,1,15); //Beagle
vvvv[39] = AddStaticVehicleEx(511,2081.10742188,-2621.83569336,15.06277275,0.00000000,1,1,15); //Beagle
vvvv[40] = AddStaticVehicleEx(511,2059.75439453,-2621.88769531,15.06277275,0.00000000,1,1,15); //Beagle
vvvv[41] = AddStaticVehicleEx(519,2039.21789551,-2645.74755859,14.54694748,0.00000000,1,1,15); //Shamal
vvvv[42] = AddStaticVehicleEx(519,2018.69604492,-2646.05932617,14.54694748,0.00000000,1,1,15); //Shamal
vvvv[43] = AddStaticVehicleEx(519,2018.94787598,-2626.91601562,14.54694748,0.00000000,1,1,15); //Shamal
vvvv[44] = AddStaticVehicleEx(519,2039.98718262,-2626.79052734,14.54694748,0.00000000,1,1,15); //Shamal
vvvv[45] = AddStaticVehicleEx(512,1999.08837891,-2646.01831055,14.18087482,0.00000000,1,1,15); //Cropdust
vvvv[46] = AddStaticVehicleEx(512,1987.06628418,-2645.70190430,14.18087482,0.00000000,1,1,15); //Cropdust
vvvv[47] = AddStaticVehicleEx(512,1986.68090820,-2635.21142578,14.18087482,0.00000000,1,1,15); //Cropdust
vvvv[48] = AddStaticVehicleEx(512,1998.17504883,-2634.79541016,14.18087482,0.00000000,1,1,15); //Cropdust
vvvv[49] = AddStaticVehicleEx(513,1975.28820801,-2645.76562500,14.33163166,0.00000000,1,1,15); //Stunt
vvvv[50] = AddStaticVehicleEx(513,1975.08471680,-2637.26562500,14.33163166,0.00000000,1,1,15); //Stunt
vvvv[51] = AddStaticVehicleEx(513,1965.08886719,-2637.50000000,14.33163166,0.00000000,1,1,15); //Stunt
vvvv[52] = AddStaticVehicleEx(513,1964.77453613,-2645.26171875,14.33163166,0.00000000,1,1,15); //Stunt
vvvv[53] = AddStaticVehicleEx(593,1949.35595703,-2649.32250977,14.09705734,0.00000000,-1,-1,15); //Dodo
vvvv[54] = AddStaticVehicleEx(593,1935.32226562,-2649.18457031,14.09705734,0.00000000,-1,-1,15); //Dodo
vvvv[55] = AddStaticVehicleEx(593,1921.30932617,-2648.79760742,14.09705734,0.00000000,-1,-1,15); //Dodo
vvvv[56] = AddStaticVehicleEx(593,1919.87207031,-2666.44018555,14.09705734,0.00000000,-1,-1,15); //Dodo
vvvv[57] = AddStaticVehicleEx(553,1490.36242676,-2592.54809570,15.78187466,270.00000000,1,1,15); //Nevada
vvvv[58] = AddStaticVehicleEx(553,1515.11914062,-2592.17724609,15.78187466,270.00000000,1,1,15); //Nevada
vvvv[59] = AddStaticVehicleEx(553,1542.14916992,-2592.30419922,15.78187466,270.00000000,1,1,15); //Nevada
vvvv[60] = AddStaticVehicleEx(520,1569.35131836,-2641.34301758,14.46645069,0.00000000,1,1,15); //Hydra
vvvv[61] = AddStaticVehicleEx(520,1558.86596680,-2641.89648438,14.46645069,0.00000000,1,1,15); //Hydra
vvvv[62] = AddStaticVehicleEx(520,1548.63024902,-2642.43701172,14.46645069,0.00000000,1,1,15); //Hydra
vvvv[63] = AddStaticVehicleEx(520,1537.39636230,-2643.02978516,14.46645069,0.00000000,1,1,15); //Hydra
vvvv[64] = AddStaticVehicleEx(520,1526.91088867,-2643.58300781,14.46645069,0.00000000,1,1,15); //Hydra
vvvv[65] = AddStaticVehicleEx(520,1526.14550781,-2629.09716797,14.46645069,0.00000000,1,1,15); //Hydra
vvvv[66] = AddStaticVehicleEx(520,1537.37902832,-2628.50341797,14.46645069,0.00000000,1,1,15); //Hydra
vvvv[67] = AddStaticVehicleEx(520,1548.86206055,-2627.89648438,14.46645069,0.00000000,1,1,15); //Hydra
vvvv[68] = AddStaticVehicleEx(520,1558.84667969,-2627.36914062,14.46645069,0.00000000,1,1,15); //Hydra
vvvv[69] = AddStaticVehicleEx(520,1570.57946777,-2626.74951172,14.46645069,0.00000000,1,1,15); //Hydra
}

public OnPlayerSpawn(playerid)
{
    SetVehicleParamsForPlayer(vvvv[0],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[1],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[2],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[3],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[4],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[5],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[6],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[7],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[8],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[9],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[10],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[11],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[12],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[13],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[14],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[15],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[16],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[17],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[18],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[19],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[20],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[21],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[22],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[23],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[24],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[25],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[26],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[27],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[28],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[29],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[30],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[31],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[32],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[33],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[34],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[35],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[36],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[37],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[38],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[39],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[40],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[41],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[42],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[43],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[44],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[45],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[46],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[47],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[48],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[49],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[50],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[51],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[52],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[53],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[54],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[55],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[56],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[57],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[58],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[59],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[60],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[61],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[62],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[63],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[64],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[65],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[66],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[67],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[68],playerid,0,1);
    SetVehicleParamsForPlayer(vvvv[69],playerid,0,1);
    return 1;
}
Reply
#2

pawn Код:
new vvvv [ MAX_VEHICLES ] [ 70 ];
Reply
#3

pawn Код:
C:\DARK\SERVER\gamemodes\dark_fusion.pwn(564) : error 033: array must be indexed (variable "vvvv")
esto es:

pawn Код:
vvvv[0] = AddStaticVehicleEx(432,1881.29675293,-2269.50024414,13.64621162,274.00000000,91,67,15);
como lo hisiera con MAX_VEHICLES esa linea digamos esta en ongamemodeinit intente con vvvv[vehicleid] pero no lo he definido y como funcionaria max_vehicle ahi?
Reply
#4

pawn Код:
new iVehicleObjective[MAX_VEHICLES][2];
 
public OnGameModeInit() //Or another callback
{
new temp = CreateVehicle(400, 0.0, 0.0, 5.0, 0.0, 0,0, -1); //ID 1
iVehicleObjective[temp][0] = 1; //Marker
iVehicleObjective[temp][1] = 0; //Door Lock
return 1;
}
 
stock SetVehicleParamsForPlayerEx(vehicleid, playerid, objective, doorslocked)
{
    SetVehicleParamsForPlayer(vehicleid, playerid, objective, doorslocked);
    iVehicleObjective[vehicleid][0] = objective;
    iVehicleObjective[vehicleid][1] = doorslocked;
}
 
public OnVehicleStreamIn(vehicleid, forplayerid)
{
    SetVehicleParamsForPlayer(vehicleid, forplayerid, iVehicleObjective[vehicleid][0], iVehicleObjective[vehicleid][1]);
}
Wiki..
Reply
#5

fuck xD si si lei la wiki esa parte me mate leyendo antes de postear pero eran tantos ejemplos me confundi ahora gracias al quote me fije bueno gracias
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)