Properties edit

Ja kas neizprotams.

Moderator: Moderatori

Locked
prokiller
Jauniņais
Jauniņais
Posts: 17
Joined: 15 Jan 2009, 19:16

Properties edit

Post by prokiller »

Sveiki.....
karo4e tā , man ir PropertySystem by Sandra un man iekš scriptfiles\PropertySystem ir fails PropertyInfo.txt
kurā man ir visas manas properties ! Un tām koda veids ir sakojoš ( 3 piemeri) :

Four Dragons Casino,2024.56,1007.65,10.81,750000,2500,Nobody,0,0
Come A Lot,2182.12,1115.15,12.35,76855,800,Nobody,0,0
Camels Toe,2208.27,1286.29,10.81,163895,900,Nobody,0,0

:) Un es gribu tos parlikt lai laša šadā veidā (3 piemeri) :

2030.5945,997.8455,10.8131,Four dragons Casino,750000,2500
2412.1421,1020.9696,14.2725,Xtreme Mod Garage,200000,750
2177.5625,962.3287,10.8203,Ammunation South LV,125000,700

:)Tb zinu kur to mana , iekš \pawno\include/properties.txt
viesas no šīm rindiņam , bet kuras nezinu :

}
new PropInfo[MAX_PROPERTIES][propinfo];
new PayoutTimer = -1;
new PropertyPayoutFrequency = 60; //Propertyowners will get every 60 seconds money from their properties
new MAX_PROPERTIES_PER_PLAYER = 3;
new PropertyCount;
new PropertyPickup[MAX_PROPERTIES];
new PlayerPropertyCount[MAX_PLAYERS];
new PlayerEarnings[MAX_PLAYERS];
new Text:PropertyText1[MAX_PLAYERS];
new Text:PropertyText2[MAX_PLAYERS];
new IsTextdrawActive[MAX_PLAYERS];
new TextdrawTimer[MAX_PLAYERS];

/*
native AddProperty(const name[], Float:X, Float:Y, Float:Z, price, sell, earning);
native SellPropertyForPlayer(playerid);
native BuyPropertyForPlayer(playerid);
native GetPropertyInfo(propertyID, &Float:X, &Float:Y, &Float:Z, &Price, &SellValue, &Earning);
native GetPropertyName(propertyID);
native GetPropertyOwner(propertyID);
native GetPropertyStatus(propertyID);
native GetPlayerProperties(playerid);
native SetPayoutFrequency(seconds);
native SetMaxPropertiesPerPlayer(amount);
native ToggleProperty(propertyID, toggle);
native ResetPlayerPropertyInfo(playerid);
native LocatePropertyForPlayer(property, playerid);
native OnPropertyPickupPickup(playerid, pickupid);
native DestroyAllPropertyPickups();
native UsePropertyTextdraw(toggle);
native SetPropertyPrice(propertyID, price);
native SetPropertySellValue(propertyID, value);
native SetPropertyEarning(propertyID, earning);
native DoesPropertyExists(propertyID);
native IsPlayerNearProperty(playerid);
native SaveProperty(propertyID, const comment[]);
*/

stock AddProperty(const name[], Float:X, Float:Y, Float:Z, price, sell, earning)
{


:D vai arii šeit kautkur , kautas jamaina :D

}
PropInfo[ID][PropExists] = 1;
PropInfo[ID][PropIsEnabled] = 1;
format(PropInfo[ID][PropName], 60, "%s", name);
PropInfo[ID][PropX] = X;
PropInfo[ID][PropY] = Y;
PropInfo[ID][PropZ] = Z;
PropInfo[ID][PropPrice] = price;
PropInfo[ID][PropSell] = sell;
PropInfo[ID][PropEarning] = earning;
PropInfo[ID][PropOwner] = -1;
PropertyPickup[ID] = CreatePickup(1273, 1, X, Y, Z);
return ID;
}


P.s palidzat :(
User avatar
[AoD]Aleksis
Nelabojams spameris
Nelabojams spameris
Posts: 3891
Joined: 25 May 2008, 14:05
Location: Tepat.

Re: Properties edit

Post by [AoD]Aleksis »

1.) nav īstā sadaļa
2.) kam tev tas vajadzīgs ? es neredzu vajadzību tam lai lasītu tā,
jo tai sistēmai include tā ir veidots un nekā nepadarīsi
Image
prokiller
Jauniņais
Jauniņais
Posts: 17
Joined: 15 Jan 2009, 19:16

Re: Properties edit

Post by prokiller »

vajadziba ir taga ka , uz proprtysistem ir 65 properties , bet es gribu rediget uz bizness properties kur ir 193 properties !! Jo savādāk visas tas 193 jataisa uz to properties sistem !!

properties Code:
Four Dragons Casino,2024.56,1007.65,10.81,750000,2500,Nobody,0,0

Bisness Code:
2030.5945,997.8455,10.8131,Four dragons Casino,750000,2500
Locked