15.05.2013, 13:24
(
Последний раз редактировалось kalanerik99; 15.05.2013 в 14:23.
)
Hi
Can someone tell me why it show me this errors
Errors
My script all
Can someone tell me why it show me this errors
Errors
Код:
(272) : warning 204: symbol is assigned a value that is never used: "Angle" (271) : warning 204: symbol is assigned a value that is never used: "z" (270) : warning 204: symbol is assigned a value that is never used: "y" (269) : warning 204: symbol is assigned a value that is never used: "x"
My script all
Код:
enum TSpawnLocation { Float:SpawnX, Float:SpawnY, Float:SpawnZ, Float:SpawnAngle } // Setup spawnlocations for each class (when selecting "Spawn" at class-selection, a random spawnlocation is selected) new ASpawnLocationsTrucker[][TSpawnLocation] = { {-525.0, -502.0, 26.0, 0.0}, // Fallen Tree Depot {-74.7, -1137.5, 4.5, 0.0}, // Flint Trucking Depot {1457.0, 975.5, 11.0, 0.0}, // LVA Freight Depot {-2136.0, -247.5, 36.5, 270.0}, // Doherty Depot {1766.5, -2040.7, 14.0, 270.0}, // El Corona Depot {-546.0, 2594.0, 54.0, 270.0}, // Las Payasdas Depot {332.0, 900.0, 25.0, 205.0}, // Quarry Top {-1575.0, -2724.0, 49.0, 146.0} // Shady Creek Depot }; new ASpawnLocationsBusDriver[][TSpawnLocation] = { {1809.0, -1905.0, 13.6, 90.0}, // Los Santos busdepot {-1983.0, 110.0, 27.7, 180.0}, // San Fierro busdepot {1060.0, 1260.0, 11.0, 270.0} // Las Venturas busdepot }; new ASpawnLocationsPilot[][TSpawnLocation] = { {2010.0, -2345.0, 13.6, 90.0}, // Los Santos airport {-1211.0, -105.0, 14.2, 135.0}, // San Fierro airport {1630.0, 1615.0, 10.9, 90.0} // Las Venturas airport }; new ASpawnLocationsMafia[][TSpawnLocation] = { {2822.5, 898.5, 10.8, 0.0} // Mafia hideout }; new ASpawnLocationsCourier[][TSpawnLocation] = { {798.0, -618.75, 16.4, 0.0}, // Los Santos {-1849.25, -135.0, 12.0, 90.0}, // San Fierro {1050.5, 1931.0, 10.9, 270.0} // Las Venturas }; new ASpawnLocationsAssistance[][TSpawnLocation] = { {211.25, 24.75, 2.6, 270.0} }; new ASpawnLocationsRoadWorker[][TSpawnLocation] = { {-1866.25, -1715.25, 22.7, 125.0} // Junkyard }; public OnPlayerConnect(playerid) { return 1; } public OnPlayerRequestSpawn(playerid) { new Index, Float:x, Float:y, Float:z, Float:Angle,Name[24], Msg[128]; GetPlayerName(playerid, Name, sizeof(Name)); switch (PlayerInfo[playerid][PlayerClass]) { case 1: { Index = random(sizeof(ASpawnLocationsTrucker)); x = ASpawnLocationsTrucker[Index][SpawnX]; y = ASpawnLocationsTrucker[Index][SpawnY]; z = ASpawnLocationsTrucker[Index][SpawnZ]; Angle = ASpawnLocationsTrucker[Index][SpawnAngle]; } case 2: { Index = random(sizeof(ASpawnLocationsBusDriver)); x = ASpawnLocationsBusDriver[Index][SpawnX]; y = ASpawnLocationsBusDriver[Index][SpawnY]; z = ASpawnLocationsBusDriver[Index][SpawnZ]; Angle = ASpawnLocationsBusDriver[Index][SpawnAngle]; format(Msg, 128, "{00FF00}Player {FFFF00}%s{00FF00} joined {FFFF00}Busdriver class", Name); } case 3: { Index = random(sizeof(ASpawnLocationsPilot)); x = ASpawnLocationsPilot[Index][SpawnX]; y = ASpawnLocationsPilot[Index][SpawnY]; z = ASpawnLocationsPilot[Index][SpawnZ]; Angle = ASpawnLocationsPilot[Index][SpawnAngle]; format(Msg, 128, "{00FF00}Player {FFFF00}%s{00FF00} joined {FFFF00}Pilot class", Name); } case 4: { Index = random(sizeof(ASpawnLocationsMafia)); x = ASpawnLocationsPilot[Index][SpawnX]; y = ASpawnLocationsPilot[Index][SpawnY]; z = ASpawnLocationsPilot[Index][SpawnZ]; Angle = ASpawnLocationsMafia[Index][SpawnAngle]; format(Msg, 128, "{00FF00}Player {FFFF00}%s{00FF00} joined {FFFF00}Mafia class", Name); } case 5: { Index = random(sizeof(ASpawnLocationsCourier)); x = ASpawnLocationsPilot[Index][SpawnX]; y = ASpawnLocationsPilot[Index][SpawnY]; z = ASpawnLocationsPilot[Index][SpawnZ]; Angle = ASpawnLocationsCourier[Index][SpawnAngle]; format(Msg, 128, "{00FF00}Player {FFFF00}%s{00FF00} joined {FFFF00}Courier class", Name); } case 6: { Index = random(sizeof(ASpawnLocationsAssistance)); x = ASpawnLocationsPilot[Index][SpawnX]; y = ASpawnLocationsPilot[Index][SpawnY]; z = ASpawnLocationsPilot[Index][SpawnZ]; Angle = ASpawnLocationsAssistance[Index][SpawnAngle]; format(Msg, 128, "{00FF00}Player {FFFF00}%s{00FF00} joined {FFFF00}Assistance class", Name); } case 7: { Index = random(sizeof(ASpawnLocationsRoadWorker)); x = ASpawnLocationsPilot[Index][SpawnX]; y = ASpawnLocationsPilot[Index][SpawnY]; z = ASpawnLocationsPilot[Index][SpawnZ]; Angle = ASpawnLocationsRoadWorker[Index][SpawnAngle]; format(Msg, 128, "{00FF00}Player {FFFF00}%s{00FF00} joined {FFFF00}RoadWorker class", Name); } } return 0; }