01.03.2011, 01:27
O Sistema de Casas e do GF mesmo
quando o
new HouseInfo[1][hInfo]; esta assim em 1 nao ocorre o bug nas gang zonas
postei o que eu achei basico ...
Se precisar de mais do code e sґґo falar que eu posto
quando o
new HouseInfo[1][hInfo]; esta assim em 1 nao ocorre o bug nas gang zonas
pawn Код:
new HouseInfo[72][hInfo];
public LoadProperty()
{
new arrCoords[30][64];
new strFromFile2[256];
new File: file = fopen("property.cfg", io_read);
if (file)
{
new idx;
while (idx < sizeof(HouseInfo))
{
fread(file, strFromFile2);
split(strFromFile2, arrCoords, ',');
HouseInfo[idx][hEntrancex] = floatstr(arrCoords[0]);
HouseInfo[idx][hEntrancey] = floatstr(arrCoords[1]);
HouseInfo[idx][hEntrancez] = floatstr(arrCoords[2]);
HouseInfo[idx][hExitx] = floatstr(arrCoords[3]);
HouseInfo[idx][hExity] = floatstr(arrCoords[4]);
HouseInfo[idx][hExitz] = floatstr(arrCoords[5]);
HouseInfo[idx][hHealthx] = strval(arrCoords[6]);
HouseInfo[idx][hHealthy] = strval(arrCoords[7]);
HouseInfo[idx][hHealthz] = strval(arrCoords[8]);
HouseInfo[idx][hArmourx] = strval(arrCoords[9]);
HouseInfo[idx][hArmoury] = strval(arrCoords[10]);
HouseInfo[idx][hArmourz] = strval(arrCoords[11]);
//printf("HouseInfo hEntrancez %f",HouseInfo[idx][hEntrancez]);
strmid(HouseInfo[idx][hOwner], arrCoords[12], 0, strlen(arrCoords[12]), 255);
strmid(HouseInfo[idx][hDiscription], arrCoords[13], 0, strlen(arrCoords[13]), 255);
HouseInfo[idx][hValue] = strval(arrCoords[14]);
HouseInfo[idx][hHel] = strval(arrCoords[15]);
HouseInfo[idx][hArm] = strval(arrCoords[16]);
HouseInfo[idx][hInt] = strval(arrCoords[17]);
HouseInfo[idx][hLock] = strval(arrCoords[18]);
HouseInfo[idx][hOwned] = strval(arrCoords[19]);
HouseInfo[idx][hRooms] = strval(arrCoords[20]);
HouseInfo[idx][hRent] = strval(arrCoords[21]);
HouseInfo[idx][hRentabil] = strval(arrCoords[22]);
HouseInfo[idx][hTakings] = strval(arrCoords[23]);
HouseInfo[idx][hVec] = strval(arrCoords[24]);
if(HouseInfo[idx][hVec] == 457)
{
HouseInfo[idx][hVec] = 411;
}
HouseInfo[idx][hVcol1] = strval(arrCoords[25]);
HouseInfo[idx][hVcol2] = strval(arrCoords[26]);
HouseInfo[idx][hDate] = strval(arrCoords[27]);
HouseInfo[idx][hLevel] = strval(arrCoords[28]);
HouseInfo[idx][hWorld] = strval(arrCoords[29]);
HouseInfo[idx][hLevel] = strval(arrCoords[28]);
HouseInfo[idx][hWorld] = strval(arrCoords[29]);
//printf("HouseInfo:%d Owner:%s hTakings %d hVec %d",idx,HouseInfo[idx][hOwner],HouseInfo[idx][hTakings],HouseInfo[idx][hVec]);
print("Moradias Fixa : Carregada");
idx++;
}
fclose(file);
}
return 1;
}
// Gang Zonas
GZconstrucao = GangZoneCreate(2497.3013, 1962.9711, 2372.4241, 1823.5942); // Construзгo
//GZestadio = GangZoneCreate(1017.2111, 1382.9227, 1180.4696, 1804.3538); //Castelo
GZbarco = GangZoneCreate(1893.2604,1467.3412,2032.7643,1629.0620);// Navio
GZpraca = GangZoneCreate(1138.0619,2726.6240,1496.7953,2844.5059); // terminada
// Gangzones de Los Santos
GZfavela = GangZoneCreate(1226.1698, -1271.1938, 1333.0027, -1159.0004); // Construзгo
GZSkate = GangZoneCreate(1861.9410,-1450.6462,1976.5867,-1351.4069);
GZShop = GangZoneCreate(1061.1545,-1566.9081,1190.9424,-1411.1282);
GZAero = GangZoneCreate(1417.611, -2609.581, 1950.008, -2455.619);
// forte carson
GZforte1 = GangZoneCreate( 105.1009, 1331.278, 291.9469, 1483.90);// fabrica
GZforte2 = GangZoneCreate(-256.9133, 1027.653, -198.5239, 1074.365);// boca
// San fierro
GZfierro1 = GangZoneCreate(-2135.883, 124.611, -2004.552, 325.8042);// Construзгo
GZfierro2 = GangZoneCreate(-2410.133, 69.38152, -2259.489, 290.2995);// Parque alguma coisa
GZfierro3 = GangZoneCreate(-1703.262, 1375.165, -1571.931, 1501.404);//Pier 69
GZfierro4 = GangZoneCreate(-2862.067, 949.1086, -2734.599, 1280.486);//Parque 2
GZfierro5 = GangZoneCreate(-1672.361, 37.8218, -1498.54, 195.6204);//Docas
//red countri
GZred1 = GangZoneCreate(-595.5717, -210.2018, -408.7256, -23.35575);// madereira do pinokio
GZred2 = GangZoneCreate( 1541.479, 186.846, 1751.681, 397.0478);// Cruzamento Mulholland
GZred3 = GangZoneCreate( 2358.931, -677.3168, 2580.811, -420.4035);// North Rock
GZred4 = GangZoneCreate( 805.7734, -128.4566, 957.5858, 46.7115);// Fern Ridge
GZred5 = GangZoneCreate( 1996.917, -198.5239, 2183.763, -35.03363);// lagoa Fisher
// Deserto
GZdeserto1 = GangZoneCreate(-1121.076, 1097.72, -829.1292, 1377.989);// Cruzamento Robada
GZdeserto2 = GangZoneCreate(-794.0955, 1961.883, -607.2495, 2113.696);// Represa Sherman
GZdeserto3 = GangZoneCreate(-899.1964, 2253.83, -688.9946, 2464.032);// Arco del Oeste
GZdeserto4 = GangZoneCreate(-2253.83, 2569.133, -1961.883, 2697.589);// Tunel BaySide
GZdeserto5 = GangZoneCreate(-350.3363, 1810.071, -210.2018, 1915.172);//Regular Tom (Geyser)
Se precisar de mais do code e sґґo falar que eu posto