Save colors and teams
#1

PHP Code:
{  0"Grove Street",      "LS"2440.60, -1629.702540.90, -1723.70COLOR_GREEN,   TEAM_GROVE,   -10000}, 
color_green and Team_grove how to save??


PHP Code:
 format(coordsstringsizeof(coordsstring), "%s|%s___________________\n",
turfs[idx][TurfColor],
turfs[idx][TurfOwner], 
I use %s how to use ??
Reply
#2

HELLLLPPPPPPP.....
Reply
#3

You don't save these, they are defines. There is no reason to save color and team_grove. Just use the grove street ID (the first value, 0 in your case) to navigate through an array of colors and team numbers (TEAM_GROVE and so on).
Reply
#4

this is gang zone. I want save captured zone.. Help me please
PHP Code:
enum tinfo
{
     
turfID,
      
turfName40 ],
      
cityName40 ],
     
Float:zMinX,
     
Float:zMinY,
     
Float:zMaxX,
     
Float:zMaxY,
     
TurfColor40 ], // <<<<<<<
     
TurfOwner40 ], // <<<<<<<
     
TurfAttacker,
     
TurfKills,
     
TurfAttackKills,
     
TurfWarStarted,
     
MIT
}
new 
turfs[MAX_TURFS][tinfo] = {
{  
0"Grove Street",      "LS"2440.60, -1629.702540.90, -1723.70,>>  COLOR_GREEN,   TEAM_GROVE,<<   -10000},
{  
1"Ganton",            "LS"2440.60, -1629.702226.30, -1723.70COLOR_GREEN,   TEAM_GROVE,   -10000},
{  
2"Idlewood",          "LS"1812.60, -1852.801971.60, -1742.30CIVILIAN_COLOR,  TEAM_CIVILIAN,  -10000},
{  
3"Idlewood",          "LS"1951.60, -1742.302124.60, -1602.30CIVILIAN_COLOR,   TEAM_CIVILIAN,   -10000},
{  
4"Idlewood",          "LS"1812.60, -1602.302124.60, -1449.60CIVILIAN_COLOR,   TEAM_CIVILIAN,   -10000},
{  
5"Idlewood",          "LS"2124.60, -1742.302222.50, -1494.00CIVILIAN_COLOR,   TEAM_CIVILIAN,   -10000},
{  
6"Idlewood",          "LS"1971.60, -1852.802222.50, -1742.30CIVILIAN_COLOR,   TEAM_CIVILIAN,   -10000},
{  
7"Idlewood",          "LS"1812.60, -1742.301951.60, -1602.30CIVILIAN_COLOR,  TEAM_CIVILIAN,  -10000},
{  
8"Willow Field",      "LS"1970.60, -2179.202089.00, -1852.80AZTECA_COLOR,  TEAM_AZTECAS,  -10000},
{  
9"Willow Field",      "LS"2089.00, -1989.902324.00, -1852.80AZTECA_COLOR,  TEAM_AZTECAS,  -10000},
10"Willow Field",      "LS"2089.00, -2235.802201.80, -1989.90AZTECA_COLOR,  TEAM_AZTECAS,  -10000},
11"Jefferson",         "LS"2056.80, -1372.002281.40, -1210.70BALLA_COLOR,   TEAM_BALLAS,   -10000},
12"Jefferson",         "LS"2056.80, -1210.702185.30, -1126.30BALLA_COLOR,   TEAM_BALLAS,   -10000},
13"Jefferson",         "LS"2056.80, -1449.602266.20, -1372.00BALLA_COLOR,   TEAM_BALLAS,   -10000},
14"East Los Santos",   "LS"2421.00, -1628.502632.80, -1454.30CIVILIAN_COLOR,   TEAM_CIVILIAN,   -10000},
15"East Los Santos",   "LS"2222.50, -1628.502421.00, -1494.00CIVILIAN_COLOR,   TEAM_CIVILIAN,   -10000},
16"East Los Santos",   "LS"2266.20, -1494.002381.60, -1372.00BALLA_COLOR,   TEAM_BALLAS,   -10000},
17"East Los Santos",   "LS"2281.60, -1372.002381.60, -1135.00BALLA_COLOR,   TEAM_BALLAS,   -10000},
18"East Los Santos",   "LS"2381.60, -1454.302462.10, -1135.00VAGOS_COLOR,   TEAM_VAGOS,   -10000},
19"East Los Santos",   "LS"2462.10, -1454.302581.70, -1135.00VAGOS_COLOR,   TEAM_VAGOS,   -10000},
20"El Corona",         "LS"1812.60, -2179.201970.60, -1852.80AZTECA_COLOR,  TEAM_AZTECAS,  -10000},
21"El Corona",         "LS"1692.60, -2179.201812.60, -1842.20AZTECA_COLOR,  TEAM_AZTECAS,  -10000},
22"Glen Park",         "LS"1812.60, -1350.702056.80, -1100.80BALLA_COLOR,   TEAM_BALLAS,   -10000},
23"Los Flores",        "LS"2581.70, -1393.402747.70, -1135.00VAGOS_COLOR,   TEAM_VAGOS,   -10000},
24"Las Colinas",       "LS"1994.30, -1100.802056.80,  -920.80BALLA_COLOR,   TEAM_BALLAS,   -10000},
25"Las Colinas",       "LS"2056.80, -1126.302126.80,  -920.80BALLA_COLOR,   TEAM_BALLAS,   -10000},
26"Las Colinas",       "LS"2185.30, -1154.502281.40,  -934.40VAGOS_COLOR,   TEAM_VAGOS,   -10000},
27"Las Colinas",       "LS"2126.80, -1126.302185.30,  -934.40VAGOS_COLOR,   TEAM_VAGOS,   -10000},
28"Las Colinas",       "LS"2632.70, -1135.002747.70,  -945.00VAGOS_COLOR,   TEAM_VAGOS,   -10000},
29"Las Colinas",       "LS"2281.40, -1135.002632.70,  -945.00VAGOS_COLOR,   TEAM_VAGOS,   -10000}, 
Reply
#5

Save the ID of the team that's owning the zone, not the color of the team. It's stupid.
Reply
#6

See code.. End war captured zone save new owner Team_.... and new COLOR
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)