SA-MP Forums Archive
[Ajuda] Bug em carro de casa - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Bug em carro de casa (/showthread.php?tid=325390)



[Ajuda] Bug em carro de casa - Markos - 13.03.2012

Eu to com um problema,a casa й em vinewood,mas o carro dela fica la do outro lado da cidade.Atй aqui beleza,mas quando eu vou la no pawn e mudo o local de spawn do carro.Ele compila normal,Mas no jogo, fica um carro na casa (que nao da pra entra) e o carro da casa fica no mesmo lugar.Que linhas eu posto ? O que eu faзo.Sei que parece ser meio bobo,mas eu so muito noob ainda.Ajuda ae pf.Valeu


Re: [Ajuda] Bug em carro de casa - Lуs - 13.03.2012

Qual й sistema de casas?


Re: [Ajuda] Bug em carro de casa - Markos - 13.03.2012

Ja veio com o gamemode,nгo й fs nao.Como faзo pra descobrir qual й ?


Re: [Ajuda] Bug em carro de casa - Đeagle - 13.03.2012

No caso eu acho que vocк teria que postar o Sistema.


Re: [Ajuda] Bug em carro de casa - Lуs - 13.03.2012

Poste a linha de criaзгo dos carros.


Re: [Ajuda] Bug em carro de casa - Markos - 13.03.2012

Beleza, ta ai,й meio grande mas vamos la
pawn Код:
new Float:HouseCarSpawns[216][8] = {
{1849.4982,-1925.5737,13.2900,269.0401},//House 1
{1871.3917,-1925.8879,13.2899,269.1748},//House 2
{1892.9766,-1926.0437,13.2903,271.2716},//House 3
{1914.0115,-1924.4537,13.2899,270.2092},//House 4
{1929.7886,-1926.0729,13.2902,270.7549},//House 5
{1939.3484,-1925.9573,13.2898,269.9824},//House 6
{1910.4330,-1118.2250,25.5575,181.0549},//House 7
{1180.7435,-1252.5255,14.9737,182.7825},//House 8
{1192.6936,-1273.5597,13.3416,87.6046},//House 9
{1175.0167,-1272.9294,13.3417,90.2634},//House 10
{2498.9478,-1249.5275,34.0686,270.1946},//House 11
{1170.9451,-1239.2083,18.3494,273.3052},//House 12
{1196.9413,-1238.5664,18.3943,273.2929},//House 13
{1176.4779,-1219.5706,18.4081,272.2165},//House 14
{1190.4327,-1219.2605,18.3734,91.7042},//House 15
{2787.4866,-1288.4287,42.1518,268.7791},//House 16
{2805.5789,-1288.3579,42.0388,88.0861}, //House 17
{2787.0332,-1313.7335,36.2163,272.2736},//House 18
{2805.9197,-1310.0641,36.9896,83.7590},//House 19
{2786.4358,-1340.6472,29.8615,271.9752},//House 20
{2805.2693,-1331.9712,31.8388,84.1128},//House 21
{2786.0234,-1365.7836,23.9176,273.3652},//House 22
{2801.8293,-1355.6475,26.0534,359.1473},//House 23
{1110.0980,-726.4769,100.2775,90.1167},//House 24
{259.7329,-1221.1926,74.6363,201.0530},//House 25
{1463.6920,-901.7015,54.6260,358.9970},//House 26
{1440.1053,-890.6041,50.4033,359.9137},//House 27
{251.8644,-1359.2205,52.9348,303.7466},//House 28
{225.6491,-1263.4418,66.3373,141.0180}, //House 29
{244.5874,-1265.7161,68.6251,129.7593},//House 30
{311.3341,-1335.1876,53.2553,38.0402},//House 31
{405.7558,-1263.5070,50.4031,21.9046}, //House 32
{658.3419,-1065.0410,48.6738,141.5126},//House 33
{346.8729,-1198.7612,76.2213,37.6200},//House 34
{322.6475,-1765.9531,4.4238,178.5158},//House 35
{295.5023,-1775.9580,4.2171,93.4352},//House 36
{280.8075,-1775.3854,4.0512,87.9319},//House 37
{207.1892,-1774.6537,3.6090,91.3147},//House 38
{192.9391,-1774.9485,3.4986,92.1630},//House 39
{158.1870,-1770.4294,4.1838,180.5296},//House 40
{232.5652,-1406.9209,51.4151,332.2393},//House 41
{893.5425,-1648.2144,13.3423,90.9365},//House 42
{865.2274,-1647.5223,13.3278,87.6618},//House 43
{858.6662,-1717.7675,13.3167,176.8085},//House 44
{859.5588,-1793.5956,13.7028,265.4355},//House 45
{886.3644,-1795.3136,13.4518,263.3625},//House 46
{186.3153,-1744.9629,4.1400,358.8522},//House 47
{-2662.8369,-286.4962,7.1653,45.2360},//House 48
{-2656.7075,-292.1844,7.1234,45.2123},//House 49
{762.1455,-1750.7178,12.5131,1.1641},//House 50
{762.5828,-1704.2640,5.4890,353.6793},//House 51
{763.5857,-1660.6586,4.2317,90.7014},//House 52
{757.2587,-1604.3864,13.0929,5.9952},//House 53
{688.2308,-1597.6438,13.9033,2.2492},//House 54
{644.3828,-1619.9209,14.9068,178.7542},//House 55
{651.8380,-1656.6346,14.5463,84.2223},//House 56
{640.4855,-1715.3002,14.0018,350.2966},//House 57
{263.4509,-1775.2330,4.0219,87.2185},//House 58
{229.2565,-1774.8066,3.9794,89.9125},//House 59
{1177.8580,-1108.5828,25.0556,96.3383},//House 60
{1148.6967,-1101.2035,25.3972,271.7426},//House 61
{1177.7563,-1067.5601,28.7511,89.4310},//House 62
{1148.2141,-1061.2251,29.4986,274.9547},//House 63
{1098.0648,-1060.9714,29.4398,89.6238},//House 64
{1098.4087,-1101.3031,25.3413,89.5804},//House 65
{1278.5043,-1098.5215,25.8433,86.8810},//House 66
{1247.6974,-1107.8274,25.2462,268.3052},//House 67
{1247.3267,-1067.8013,28.9153,269.5094},//House 68
{1278.1199,-1058.3632,29.5117,88.9960},//House 69
{1934.4705,-1122.1460,26.0856,180.4290},//House 70
{1991.4327,-1119.3549,26.5167,270.0136},//House 71
{2021.6805,-1128.7836,24.6966,88.9300},//House 72
{2051.9412,-1119.8440,24.5100,181.1352},//House 73
{2078.9299,-1128.1758,23.6885,2.2788},//House 74
{2089.0764,-1141.4445,25.2655,90.6571},//House 75
{479.7771,-1091.5778,82.2181,358.6423},//House 76
{2077.2048,-1188.1725,23.5396,180.4763},//House 77
{2091.2695,-1227.8802,23.7770,269.2285},//House 78
{2104.8574,-1238.3297,24.4608,359.5674},//House 79
{2185.0420,-1465.7026,25.2823,272.7695},//House 80
{2148.4448,-1238.5730,24.2841,0.6127},//House 81
{2138.3110,-1284.9482,24.4670,181.0458},//House 82
{2103.9817,-1276.1344,25.2348,179.9895},//House 83
{2094.7827,-1285.0341,24.7188,179.0456},//House 84
{2095.7930,-1316.7681,24.5058,0.8542},//House 85
{2141.3748,-1327.7395,25.2884,359.9716},//House 86
{2196.6633,-1280.3999,24.2767,181.8215},//House 87
{2216.8311,-1282.2571,24.3189,183.4800},//House 88
{2231.6025,-1293.4851,23.7217,271.0650},//House 89
{2255.3960,-1282.0201,25.0892,183.8116},//House 90
{2259.2869,-1392.6798,23.7864,87.6052},//House 91
{2245.5818,-1392.7546,23.8039,89.3087},//House 92
{2232.2793,-1392.7249,23.8124,91.1336},//House 93
{2451.4126,-2023.5222,13.3839,3.0543},//House 94
{2462.6924,-2015.7365,13.3705,269.7538},//House 95
{2497.5188,-2023.6563,13.3154,359.1064},//House 96
{2507.5095,-2016.0697,13.3386,272.9436},//House 97
{2473.3721,-1996.3116,13.3839,177.1863},//House 98
{166.8582,-1341.0671,69.5281,179.6169},//House 99
{1533.0730,-841.5164,65.0301,85.6957},//House 100
{1529.4301,-813.3212,71.6962,87.5072},//House 101
{1514.4915,-768.3907,80.1071,139.3631},//House 102
{1460.1550,-634.8544,95.6349,180.3095},//House 103
{1028.4092,-809.3570,101.6375,22.4174},//House 104
{1023.4676,-776.5500,102.8895,85.9234},//House 105
{976.9719,-826.1484,96.1396,27.7099},//House 106
{942.2021,-839.4097,94.3384,29.2666},//House 107
{967.4248,-759.9371,110.7354,97.0316},//House 108
{1354.3202,-629.7422,108.8383,15.4581},//House 109
{857.5845,-818.4150,88.4680,19.7793},//House 110
{873.1438,-868.6379,77.2717,25.7657},//House 111
{832.5815,-860.8075,69.6735,186.3269},//House 112
{830.2504,-886.6093,68.6002,240.1175},//House 113
{724.9798,-993.8918,52.4405,236.0503},//House 114
{1102.2498,-820.1213,86.7616,94.0184},//House 115
{686.1296,-1072.7681,49.3897,60.1605},//House 116
{619.2938,-1102.0067,46.5483,121.8466},//House 117
{635.1069,-1121.2477,44.9110,48.1246},//House 118
{542.3256,-1200.5511,44.2029,108.8708},//House 119
{422.6566,-1262.1964,51.4085,22.9768},//House 120
{568.3619,-1131.6035,50.4823,123.9380},//House 121
{1102.6473,-643.8488,112.7890,42.6801},//House 122
{1053.1963,-637.6051,119.9118,89.0114},//House 123
{1008.9766,-660.4042,120.9398,118.8311},//House 124
{912.9079,-665.6145,116.8016,237.1444},//House 125
{940.3124,-708.1927,122.0105,25.6720},//House 126
{866.5078,-710.9155,105.5066,329.7114},//House 127
{402.2745,-1148.2843,76.8555,146.8472},//House 128
{837.4636,-759.5170,84.9513,234.4386},//House 129
{2375.2605,-1146.4277,27.3545,178.0937},//House 130
{2400.0210,-1136.1881,29.8213,179.4731},//House 131
{2422.5791,-1131.1589,34.1230,182.4121},//House 132
{2490.6006,-1142.1642,38.0013,91.7532},//House 133
{2502.4731,-1133.9078,38.9480,153.9394},//House 134
{1855.3026,-2143.7849,13.2740,90.9317},//House 135
{1876.6418,-2143.8484,13.2740,90.6687},//House 136
{1898.3320,-2143.6541,13.2740,90.0334},//House 137
{1899.8561,-2060.0862,13.2752,269.2708},//House 138
{1877.6840,-2060.2092,13.2740,271.4854},//House 139
{1856.8407,-2060.2251,13.2739,269.8126},//House 140
{342.3443,-1876.0426,2.2556,185.0970},//House 141
{294.5735,-1876.1187,1.9910,179.1540},//House 142
{250.3848,-1875.6232,1.5720,182.1286},//House 143
{205.9865,-1876.2771,1.8068,180.8197},//House 144
{1184.6124,-1252.5688,14.9079,182.0491},//House 145
{643.0599,-1692.1389,14.6595,355.8115},//House 146
{2432.4036,-1058.5281,54.0708,1.0216},//House 147
{2428.7241,-1016.5968,54.0287,193.6693},//House 148
{2452.0002,-1056.6379,59.4693,356.1369},//House 149
{2454.2297,-1013.0950,59.4570,178.5090},//House 150
{2485.7505,-1015.7893,65.0382,152.5809},//House 151
{2475.2380,-1059.4473,66.5169,343.6566},//House 152
{2503.7432,-1025.2019,69.8130,177.6173},//House 153
{2497.3608,-1063.0977,69.8599,0.1788},//House 154
{1337.5875,-1096.0389,23.7476,171.7952},//House 155
{2067.6392,-1738.8765,13.6783,269.7427},//House 156
{2074.2124,-1714.0375,13.2683,180.2601},//House 157
{2052.5747,-1695.1714,13.2751,269.9927},//House 158
{2069.8877,-1653.6063,13.2616,270.4084},//House 159
{2074.3994,-1644.2268,13.3056,1.5210},//House 160
{2074.3162,-1627.4417,13.2695,0.3678},//House 161
{2009.4080,-1630.3995,13.2679,180.4287},//House 162
{2009.4829,-1640.2030,13.2681,180.4762},//House 163
{2009.6040,-1655.1643,13.2671,180.4767},//House 164
{2016.5885,-1707.6719,13.2685,90.1251},//House 165
{2009.2926,-1721.1993,13.2741,181.4235},//House 166
{2013.9171,-1737.2247,13.2739,91.1623},//House 167
{1965.1614,-1709.1593,15.6874,89.7320},//House 168
{1977.4946,-1708.0625,15.6905,270.3337},//House 169
{1966.4865,-1674.2998,15.6943,91.0181},//House 170
{1977.1470,-1674.1792,15.6924,272.6857},//House 171
{1965.3494,-1657.7709,15.6889,89.0905},//House 172
{1976.4122,-1657.5651,15.6904,268.6701},//House 173
{1964.0996,-1637.5804,15.6914,90.1747},//House 174
{1977.0326,-1637.9534,15.6924,90.9899},//House 175
{1983.6398,-1714.9231,15.6906,0.4947},//House 176
{1966.3846,-1682.8446,15.6877,359.3173},//House 177
{1962.2632,-1628.0461,15.6673,359.4508},//House 178
{2137.0073,-1483.8253,23.7542,1.6942},//House 179
{2142.0134,-1437.3711,24.4159,93.3585},//House 180
{2155.6753,-1423.6860,25.3094,89.9264},//House 181
{2150.2600,-1408.6781,24.9393,87.1573},//House 182
{2136.6177,-1359.7472,25.3103,181.0419},//House 183
{2138.8279,-1371.9531,24.0338,182.4558},//House 184
{2189.1489,-1376.1112,23.7610,90.5970},//House 185
{1724.8994,-2127.2815,13.3548,0.3840}, //House 186
{1704.8944,-2127.9180,13.3475,359.6997},//House 187
{1744.9438,-2127.8958,13.3475,359.7429},//House 188
{1772.3884,-2126.9788,13.3475,359.7937},//House 189
{1793.5256,-2128.0461,13.3475,359.9629},//House 190
{1724.7358,-2098.8306,13.3474,180.4743},//House 191
{1747.5973,-2097.8967,13.3473,180.0130},//House 192
{1773.0033,-2098.4465,13.3474,179.5512},//House 193
{1784.1661,-2107.3918,13.2619,90.5782},//House 194
{1805.0066,-2107.1440,13.2617,89.6616},//House 195
{2465.7439,-1688.2839,13.2231,267.3799},//House 196
{2443.1267,-1645.1866,13.1773,179.7829},//House 197
{2403.8394,-1646.1586,13.2527,179.8597},//House 198
{2384.0750,-1645.7604,13.2320,179.6723},//House 199
{2372.7646,-1644.2150,13.2236,178.4814},//House 200
{2361.0459,-1677.3054,13.2497,0.3276},//House 201
{2393.1558,-1673.1257,13.6244,359.5457},//House 202
{2418.8188,-1672.2328,13.3117,0.5091},//House 203
{2327.0874,-1677.2684,14.1298,268.9741},//House 204
{2319.2739,-1717.8595,13.2516,180.0293},//House 205
{2308.7886,-1726.6083,13.1674,89.1289},//House 206
{2409.1560,-1719.4171,13.3826,178.3921},//House 207
{2390.1707,-1712.2106,13.3255,180.1817},//House 208
{2532.8218,-2012.6118,13.2561,90.5917},//House 209
{2532.8088,-2006.5491,13.2523,89.4100},//House 210
{2507.9360,-2004.3042,13.1111,89.6529},//House 211
{2494.6577,-1996.6238,13.2296,180.3268},//House 212
{2235.8276,-1639.0493,15.3949,161.2258},//House 213
{2264.2471,-1651.4939,15.2303,89.8430},//House 214
{2271.7920,-1646.1603,15.1795,179.6200},//House 215
{2306.1860,-1672.4305,14.0359,0.2121}//House 216



Re: [Ajuda] Bug em carro de casa - Pablo_Seven - 13.03.2012

Lol to com esse bug tmb, jб ia postar um forum sobre isso ...


Re: [Ajuda] Bug em carro de casa - Markos - 13.03.2012

kkkkkk
eh nois entao

Alguem ae ajuda pf


Re: [Ajuda] Bug em carro de casa - [RoxX]Ygor - 13.03.2012

pawn Код:
enum Carros
{
    CarroCasa,
    VeiculoID,
    PosX,
    PosY,
    PosZ,
    PosA,
    Cor1,
    Cor2,
}
new SistemaCarros[216][Carros];

public OnGameModeInit()
{
    CriarCarro(Slot, ID, PosX, PosY, PosZ, PosA, Cor1, Cor2); // faзa isso com todos
    // Ex: CriarCarro(1, 411, 1849.4982, -1925.5737, 13.2900, 269.0401, 0, 0); // Veнculo da casa 1
}

stock CriarCarro(slot, id, posx, posy, posz, posa, cor1, cor2)
{
    SistemaCarros[slot][VeiculoID] = id;
    SistemaCarros[slot][PosX] = posx;
    SistemaCarros[slot][PosY] = posy;
    SistemaCarros[slot][PosZ] = posz;
    SistemaCarros[slot][PosA] = posa;
    SistemaCarros[slot][Cor1] = cor1;
    SistemaCarros[slot][Cor2] = cor2;
    SistemaCarros[slot][CarroCasa] = CreateVehicle(SistemaCarros[slot][VeiculoID], SistemaCarros[slot][PosX], SistemaCarros[slot][PosY], SistemaCarros[slot][PosZ], SistemaCarros[slot][PosA], SistemaCarros[slot][Cor1], SistemaCarros[slot][Cor2], 60000);
}
Faзa isso com todos os carros, organize todos que irб dar certo.

Bem simples, mas espero ter ajudado!


Re: [Ajuda] Bug em carro de casa - Markos - 13.03.2012

Quote:
Originally Posted by [RoxX]Ygor
Посмотреть сообщение
pawn Код:
enum Carros
{
    CarroCasa,
    VeiculoID,
    PosX,
    PosY,
    PosZ,
    PosA,
    Cor1,
    Cor2,
}
new SistemaCarros[216][Carros];

public OnGameModeInit()
{
    CriarCarro(Slot, ID, PosX, PosY, PosZ, PosA, Cor1, Cor2); // faзa isso com todos
    // Ex: CriarCarro(1, 411, 1849.4982, -1925.5737, 13.2900, 269.0401, 0, 0); // Veнculo da casa 1
}

stock CriarCarro(slot, id, posx, posy, posz, posa, cor1, cor2)
{
    SistemaCarros[slot][VeiculoID] = id;
    SistemaCarros[slot][PosX] = posx;
    SistemaCarros[slot][PosY] = posy;
    SistemaCarros[slot][PosZ] = posz;
    SistemaCarros[slot][PosA] = posa;
    SistemaCarros[slot][Cor1] = cor1;
    SistemaCarros[slot][Cor2] = cor2;
    SistemaCarros[slot][CarroCasa] = CreateVehicle(SistemaCarros[slot][VeiculoID], SistemaCarros[slot][PosX], SistemaCarros[slot][PosY], SistemaCarros[slot][PosZ], SistemaCarros[slot][PosA], SistemaCarros[slot][Cor1], SistemaCarros[slot][Cor2], 60000);
}
Faзa isso com todos os carros, organize todos que irб dar certo.

Bem simples, mas espero ter ajudado!
Vou tentar mais tarde,mas agradeзo a ajuda desde ja.
E se eu usar esse sistema ai, o /carrocasa /pintarcarrocasa e etc. Vao continuar funcionando ?