help please....
#1

hi i have a gangwar gamemode but im having problems with addin new turfs idk what the problem is but it tells me that i loosin indentation or something like that and it gives me and error

this are the turfs on ma gamemode


pawn Код:
enum tinfo
{
     turfID,
     turfName[ 40 ],
     Float:zMinX,
     Float:zMinY,
     Float:zMaxX,
     Float:zMaxY,
     TurfColor,
     TurfOwner,
     TurfAttacker,
     TurfKills,
     TurfAttackKills,
     TurfWarStarted,
     MIT // Members In Turf
}

new turfs[ MAX_TURFS ][ tinfo ] = {
{ 0, "Ganton",      2222.50, -1852.80, 2632.80, -1722.30, GROVE_COLOR,  TEAM_GROVE,  -1, 0, 0, 0, 0},
{ 1, "Ganton",      2222.50, -1722.30, 2632.80, -1628.50, GROVE_COLOR,  TEAM_GROVE,  -1, 0, 0, 0, 0},
{ 2, "Idlewood",     1812.60, -1852.80, 1971.60, -1742.30, COPS_COLOR,   TEAM_COPS,   -1, 0, 0, 0, 0},
{ 3, "Idlewood",     1951.60, -1742.30, 2124.60, -1602.30, COPS_COLOR,   TEAM_COPS,   -1, 0, 0, 0, 0},
{ 4, "Idlewood",     1812.60, -1602.30, 2124.60, -1449.60, COPS_COLOR,   TEAM_COPS,   -1, 0, 0, 0, 0},
{ 5, "Idlewood",     2124.60, -1742.30, 2222.50, -1494.00, GROVE_COLOR,  TEAM_GROVE,  -1, 0, 0, 0, 0},
{ 6, "Idlewood",     1971.60, -1852.80, 2222.50, -1742.30, GROVE_COLOR,  TEAM_GROVE,  -1, 0, 0, 0, 0},
{ 7, "Idlewood",     1812.60, -1742.30, 1951.60, -1602.30, COPS_COLOR,   TEAM_COPS,   -1, 0, 0, 0, 0},
{ 8, "Willow Field",   1970.60, -2179.20, 2089.00, -1852.80, AZTECAS_COLOR, TEAM_AZTECAS, -1, 0, 0, 0, 0},
{ 9, "Willow Field",   2089.00, -1989.90, 2324.00, -1852.80, AZTECAS_COLOR, TEAM_AZTECAS, -1, 0, 0, 0, 0},
{ 10, "Willow Field",   2089.00, -2235.80, 2201.80, -1989.90, AZTECAS_COLOR, TEAM_AZTECAS, -1, 0, 0, 0, 0},
{ 11, "Willow Field",   2324.00, -2059.20, 2541.70, -1852.80, GROVE_COLOR,  TEAM_GROVE,  -1, 0, 0, 0, 0},
{ 12, "Jefferson",     2056.80, -1372.00, 2281.40, -1210.70, BALLAS_COLOR,  TEAM_BALLAS,  -1, 0, 0, 0, 0},
{ 13, "Jefferson",     2056.80, -1210.70, 2185.30, -1126.30, BALLAS_COLOR,  TEAM_BALLAS,  -1, 0, 0, 0, 0},
{ 14, "Jefferson",     2056.80, -1449.60, 2266.20, -1372.00, BALLAS_COLOR,  TEAM_BALLAS,  -1, 0, 0, 0, 0},
{ 15, "East Los Santos",  2421.00, -1628.50, 2632.80, -1454.30, GROVE_COLOR,  TEAM_GROVE,  -1, 0, 0, 0, 0},
{ 16, "East Los Santos",  2222.50, -1628.50, 2421.00, -1494.00, GROVE_COLOR,  TEAM_GROVE,  -1, 0, 0, 0, 0},
{ 17, "East Los Santos",  2266.20, -1494.00, 2381.60, -1372.00, BALLAS_COLOR,  TEAM_BALLAS,  -1, 0, 0, 0, 0},
{ 18, "East Los Santos",  2281.60, -1372.00, 2381.60, -1135.00, BALLAS_COLOR,  TEAM_BALLAS,  -1, 0, 0, 0, 0},
{ 19, "East Los Santos",  2381.60, -1454.30, 2462.10, -1135.00, BALLAS_COLOR,  TEAM_BALLAS,  -1, 0, 0, 0, 0},
{ 20, "East Los Santos",  2462.10, -1454.30, 2581.70, -1135.00, BALLAS_COLOR,  TEAM_BALLAS,  -1, 0, 0, 0, 0},
{ 21, "East Beach",    2632.80, -1852.80, 2959.30, -1668.10, DEALERS_COLOR, TEAM_DEALERS, -1, 0, 0, 0, 0},
{ 22, "East Beach",    2632.80, -1668.10, 2747.70, -1393.40, DEALERS_COLOR, TEAM_DEALERS, -1, 0, 0, 0, 0},
{ 23, "East Beach",    2747.70, -1668.10, 2959.30, -1498.60, DEALERS_COLOR, TEAM_DEALERS, -1, 0, 0, 0, 0},
{ 24, "East Beach",    2747.70, -1498.60, 2959.30, -1120.00, VAGOS_COLOR,  TEAM_VAGOS,  -1, 0, 0, 0, 0},
{ 25, "Playa Del Seville", 2703.50, -2126.90, 2959.30, -1852.80, DEALERS_COLOR, TEAM_DEALERS, -1, 0, 0, 0, 0},
{ 26, "El Corona",     1812.60, -2179.20, 1970.60, -1852.80, AZTECAS_COLOR, TEAM_AZTECAS, -1, 0, 0, 0, 0},
{ 27, "El Corona",     1692.60, -2179.20, 1812.60, -1842.20, AZTECAS_COLOR, TEAM_AZTECAS, -1, 0, 0, 0, 0},
{ 28, "Glen Park",     1812.60, -1350.70, 2056.80, -1100.80, BALLAS_COLOR,  TEAM_BALLAS,  -1, 0, 0, 0, 0},
{ 29, "Los Flores",    2581.70, -1393.40, 2747.70, -1135.00, VAGOS_COLOR,  TEAM_VAGOS,  -1, 0, 0, 0, 0},
{ 30, "Las Colinas",    1994.30, -1100.80, 2056.80, -920.80, VAGOS_COLOR,  TEAM_VAGOS,  -1, 0, 0, 0, 0},
{ 31, "Las Colinas",    2056.80, -1126.30, 2126.80, -920.80, VAGOS_COLOR,  TEAM_VAGOS,  -1, 0, 0, 0, 0},
{ 32, "Las Colinas",    2185.30, -1154.50, 2281.40, -934.40, VAGOS_COLOR,  TEAM_VAGOS,  -1, 0, 0, 0, 0},
{ 33, "Las Colinas",    2126.80, -1126.30, 2185.30, -934.40, VAGOS_COLOR,  TEAM_VAGOS,  -1, 0, 0, 0, 0},
{ 34, "Las Colinas",    2632.70, -1135.00, 2747.70, -945.00, VAGOS_COLOR,  TEAM_VAGOS,  -1, 0, 0, 0, 0},
{ 35, "Las Colinas",    2281.40, -1135.00, 2632.70, -945.00, VAGOS_COLOR,  TEAM_VAGOS,  -1, 0, 0, 0, 0},
{ 36, "Verona Beach",    930.20, -2006.70, 1073.20, -1804.20, BIKERS_COLOR,  TEAM_BIKERS,  -1, 0, 0, 0, 0},
{ 37, "Verona Beach",    851.40, -1804.20, 1046.10, -1577.50, BIKERS_COLOR,  TEAM_BIKERS,  -1, 0, 0, 0, 0},
{ 38, "Verona Beach",   1161.50, -1722.20, 1323.90, -1577.50, BIKERS_COLOR,  TEAM_BIKERS,  -1, 0, 0, 0, 0},
{ 39, "Verona Beach",   1046.10, -1722.20, 1161.50, -1577.50, BIKERS_COLOR,  TEAM_BIKERS,  -1, 0, 0, 0, 0},
{ 40, "Mulholland",    1169.10, -910.10, 1318.10, -768.00, RAPPERS_COLOR, TEAM_RAPPERS, -1, 0, 0, 0, 0},
{ 41, "Mulholland",    1318.10, -910.10, 1357.00, -768.00, RAPPERS_COLOR, TEAM_RAPPERS, -1, 0, 0, 0, 0},
{ 42, "Mulholland",    1357.00, -926.90, 1463.90, -768.00, RAPPERS_COLOR, TEAM_RAPPERS, -1, 0, 0, 0, 0},
{ 43, "Mulholland",    1185.58, -767.09, 1462.02, -641.76, RAPPERS_COLOR, TEAM_RAPPERS, -1, 0, 0, 0, 0},
{ 44, "Pershing Square", 1327.8929,-1729.3352,1821.7725,-1573.5878, COPS_COLOR, TEAM_COPS,   -1, 0, 0, 0, 0},
{ 45, "LS International", 1249.60, -2394.30, 1852.00, -2179.20, GUARDS_COLOR,  TEAM_GUARDS,  -1, 0, 0, 0, 0},
{ 46, "LS International", 1852.00, -2394.30, 2089.00, -2179.20, GUARDS_COLOR,  TEAM_GUARDS,  -1, 0, 0, 0, 0},
{ 47, "LS International", 1382.70, -2730.80, 2201.80, -2394.30, GUARDS_COLOR,  TEAM_GUARDS,  -1, 0, 0, 0, 0},
{ 48, "Ocean Docks",    2373.70, -2697.00, 2809.20, -2330.40, HOODLUMS_COLOR, TEAM_HOODLUMS, -1, 0, 0, 0, 0},
{ 49, "Ocean Docks",    2201.80, -2418.30, 2324.00, -2095.00, HOODLUMS_COLOR, TEAM_HOODLUMS, -1, 0, 0, 0, 0},
{ 50, "Ocean Docks",    2324.00, -2302.30, 2703.50, -2145.10, HOODLUMS_COLOR, TEAM_HOODLUMS, -1, 0, 0, 0, 0},
{ 51, "Ocean Docks",    2089.00, -2394.30, 2201.80, -2235.80, HOODLUMS_COLOR, TEAM_HOODLUMS, -1, 0, 0, 0, 0},
{ 52, "Ocean Docks",    2201.80, -2730.80, 2324.00, -2418.30, HOODLUMS_COLOR, TEAM_HOODLUMS, -1, 0, 0, 0, 0},
{ 53, "Ocean Docks",    2703.50, -2302.30, 2959.30, -2126.90, DEALERS_COLOR, TEAM_DEALERS, -1, 0, 0, 0, 0},
{ 54, "Ocean Docks",    2324.00, -2145.10, 2703.50, -2059.20, HOODLUMS_COLOR, TEAM_HOODLUMS, -1, 0, 0, 0, 0},
{ 55, "Market",       787.40, -1416.20, 1072.60, -1310.20, WORKERS_COLOR, TEAM_WORKERS, -1, 0, 0, 0, 0},
{ 56, "Market",       952.60, -1310.20, 1072.60, -1130.80, WORKERS_COLOR, TEAM_WORKERS, -1, 0, 0, 0, 0},
{ 57, "Market",      1072.60, -1416.20, 1370.80, -1130.80, WORKERS_COLOR, TEAM_WORKERS, -1, 0, 0, 0, 0},
{ 58, "Market",       926.90, -1577.50, 1370.80, -1416.20, BIKERS_COLOR,  TEAM_BIKERS,  -1, 0, 0, 0, 0},
{ 59, "Downtown LS",    1370.80, -1384.90, 1463.90, -1170.80, WORKERS_COLOR, TEAM_WORKERS, -1, 0, 0, 0, 0}
};

new TurfInfo[ MAX_TURFS ][ MAX_TEAMS ][ tinfo ];



i changed the max turfs like this
from
pawn Код:
#define MAX_TURFS    60
to this
pawn Код:
#define MAX_TURFS    70
it gave me this error

pawn Код:
C:\Documents and Settings\GAMERS\Desktop\gangwarzone r4\gamemodes\GANGWARZONE2.pwn(197) : error 052: multi-dimensional arrays must be fully initialized
can someone help me please??

i aded the cops turf but it still giving me the same error
Reply
#2

Well clearly you have to add to 'turfs[ MAX_TURFS ][ tinfo ] = {'
Reply
#3

i dint bumped in less than 3 hours...i post this yesterday..a=and the max tuf is all the way to the bottom
Reply
#4

i aded what you told me but it gave me these erors



pawn Код:
C:\Documents and Settings\GAMERS\Desktop\gangwarzone r4\gamemodes\GANGWARZONE2.pwn(136) : error 027: invalid character constant
C:\Documents and Settings\GAMERS\Desktop\gangwarzone r4\gamemodes\GANGWARZONE2.pwn(197) : error 010: invalid function or declaration
Reply
#5

Bump .............
Reply
#6

ANYONE
Reply
#7

You only have 60 turfs. So why change it to 70? Thats the problem. You need to increase "#define MAX_TURFS" with 1 for each turf you add. If you delete one, you have to decrease it with 1!
pawn Код:
#define MAX_TURFS 60 // Add a extra one for each turf you add. If you have 61 turfs, this should be 61!
// Remember, the turfs start from 0, not 1!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)