26.06.2011, 18:21
Gente.. me ajuda aii.. preciso tirar 2 warnings pra continuar codando..
Meu GM ke to fazendo й esse.. e sempre uma linha depois da final ele da Warning. Veja:
E eu tambem to precisando de um Scripter pra me ajudar terminar
pawn Код:
#include <a_samp>
#if defined GAMEMODE
public OnGameModeInit()
/*========================INCLUDES============================*/
#include <a_samp>
#include <a_fini>
#include <tune>
/*=======================DEFINES=========================*/
#define urss_morelli
#define TunePlayerVehicleID
#define MAX_DROP_AMOUNT -1
#define MAX_DROP_LIFETIME 30
#define WEAPON_SLOTS 13
#define INVALID_PICKUP -1
#define PICKUP_TYPE 23
/*=====================PROMPT CMD========================*/
main()
{
print("'-----------Versгo 0.1 Beta-----------' ");
print(" !Brasil Armagedon Play [v0.1] ");
print(" Teste teste teste By URSS_Morelli ");
print("'-----------Versгo 0.1 Beta-----------' ");
}
/*=======================INICIO==========================*/
public OnGamemodeInit()
if TunePlayerVehicle(PlayerId)
{
new bapcarid = GetPlayerVehicleID(PlayerId);
RepairVehicle(bapcarid);
ChangeVehicleColor(bapcarid,174,174);
new modelid;
modelid = GetVehicleModel(bapcarid);
switch(modelid)
{
case 405,477,411,429,402,589,494,541,
451,506,434,603,415,409,602,437,
439,480,550,579,416,587,403,504,
568,514,475,596,599:
{
AddVehicleComponent(bapcarid,1010);
AddVehicleComponent(bapcarid,1087);
AddVehicleComponent(bapcarid,1081);
}
case 432,531,601:
{
AddVehicleComponent(bapcarid,1010);
AddVehicleComponent(bapcarid,1081);
}
case 557:
{
AddVehicleComponent(bapcarid,1010);
}
case 420:
{
AddVehicleComponent(bapcarid,1010);
AddVehicleComponent(bapcarid,1087);
AddVehicleComponent(bapcarid,1081);
AddVehicleComponent(bapcarid,1139);
}
case 534:
{
ChangeVehiclePaintjob(bapcarid,2);
AddVehicleComponent(bapcarid,1180);
AddVehicleComponent(bapcarid,1185);
AddVehicleComponent(bapcarid,1100);
AddVehicleComponent(bapcarid,1010);
AddVehicleComponent(bapcarid,1127);
AddVehicleComponent(bapcarid,1101);
AddVehicleComponent(bapcarid,1122);
AddVehicleComponent(bapcarid,1087);
AddVehicleComponent(bapcarid,1080);
}
case 535:
{
ChangeVehiclePaintjob(bapcarid,2);
AddVehicleComponent(bapcarid,1109);
AddVehicleComponent(bapcarid,1115);
AddVehicleComponent(bapcarid,1117);
AddVehicleComponent(bapcarid,1010);
AddVehicleComponent(bapcarid,1087);
AddVehicleComponent(bapcarid,1114);
AddVehicleComponent(bapcarid,1081);
AddVehicleComponent(bapcarid,1119);
AddVehicleComponent(bapcarid,1121);
}
case 536:
{
AddVehicleComponent(bapcarid,1010);
AddVehicleComponent(bapcarid,1183);
AddVehicleComponent(bapcarid,1181);
AddVehicleComponent(bapcarid,1107);
AddVehicleComponent(bapcarid,1104);
AddVehicleComponent(bapcarid,1108);
AddVehicleComponent(bapcarid,1087);
AddVehicleComponent(bapcarid,1082);
ChangeVehiclePaintjob(bapcarid,random(2)+1);
}
case 558:
{
AddVehicleComponent(bapcarid,1092);
AddVehicleComponent(bapcarid,1166);
AddVehicleComponent(bapcarid,1165);
AddVehicleComponent(bapcarid,1090);
AddVehicleComponent(bapcarid,1094);
AddVehicleComponent(bapcarid,1010);
AddVehicleComponent(bapcarid,1087);
AddVehicleComponent(bapcarid,1163);
AddVehicleComponent(bapcarid,1091);
AddVehicleComponent(bapcarid,1080);
ChangeVehiclePaintjob(bapcarid,random(2)+1);
}
case 559:
{
AddVehicleComponent(bapcarid,1070);
AddVehicleComponent(bapcarid,1066);
AddVehicleComponent(bapcarid,1072);
AddVehicleComponent(bapcarid,1010);
AddVehicleComponent(bapcarid,1087);
AddVehicleComponent(bapcarid,1147);
AddVehicleComponent(bapcarid,1068);
AddVehicleComponent(bapcarid,1080);
AddVehicleComponent(bapcarid,1173);
AddVehicleComponent(bapcarid,1161);
ChangeVehiclePaintjob(bapcarid,random(2)+1);
}
case 560:
{
AddVehicleComponent(bapcarid,1028);
AddVehicleComponent(bapcarid,1140);
AddVehicleComponent(bapcarid,1170);
AddVehicleComponent(bapcarid,1010);
AddVehicleComponent(bapcarid,1087);
AddVehicleComponent(bapcarid,1139);
AddVehicleComponent(bapcarid,1033);
AddVehicleComponent(bapcarid,1080);
AddVehicleComponent(bapcarid,1031);
AddVehicleComponent(bapcarid,1030);
ChangeVehiclePaintjob(bapcarid,random(2)+1);
}
case 561:
{
AddVehicleComponent(bapcarid,1056);
AddVehicleComponent(bapcarid,1156);
AddVehicleComponent(bapcarid,1157);
AddVehicleComponent(bapcarid,1062);
AddVehicleComponent(bapcarid,1059);
AddVehicleComponent(bapcarid,1010);
AddVehicleComponent(bapcarid,1087);
AddVehicleComponent(bapcarid,1146);
AddVehicleComponent(bapcarid,1080);
AddVehicleComponent(bapcarid,1061);
ChangeVehiclePaintjob(bapcarid,random(2)+1);
}
case 562:
{
ChangeVehiclePaintjob(bapcarid,random(2)+1);
AddVehicleComponent(bapcarid,1037);
AddVehicleComponent(bapcarid,1010);
AddVehicleComponent(bapcarid,1035);
AddVehicleComponent(bapcarid,1039);
AddVehicleComponent(bapcarid,1041);
AddVehicleComponent(bapcarid,1086);
AddVehicleComponent(bapcarid,1080);
AddVehicleComponent(bapcarid,1087);
AddVehicleComponent(bapcarid,1147);
AddVehicleComponent(bapcarid,1148);
AddVehicleComponent(bapcarid,1172);
}
case 565:
{
ChangeVehiclePaintjob(bapcarid,random(2)+1);
AddVehicleComponent(bapcarid,1046);
AddVehicleComponent(bapcarid,1151);
AddVehicleComponent(bapcarid,1152);
AddVehicleComponent(bapcarid,1010);
AddVehicleComponent(bapcarid,1087);
AddVehicleComponent(bapcarid,1139);
AddVehicleComponent(bapcarid,1080);
AddVehicleComponent(bapcarid,1081);
AddVehicleComponent(bapcarid,1053);
AddVehicleComponent(bapcarid,1047);
AddVehicleComponent(bapcarid,1051);
}
case 567:
{
AddVehicleComponent(bapcarid,1188);
AddVehicleComponent(bapcarid,1186);
AddVehicleComponent(bapcarid,1102);
AddVehicleComponent(bapcarid,1133);
AddVehicleComponent(bapcarid,1018);
AddVehicleComponent(bapcarid,1010);
AddVehicleComponent(bapcarid,1080);
AddVehicleComponent(bapcarid,1087);
ChangeVehiclePaintjob(bapcarid,random(2)+1);
AddVehicleComponent(bapcarid,1081);
}
default:
{
return 0;
}
}
return 1;
}
public OnGameModeExit()
{
return 1;
}
#else
#endif
new VehicleNames[212][32] = {
"Landstalker",
"Bravura",
"Buffalo",
"Linerunner",
"Pereniel",
"Sentinel",
"Dumper",
"Firetruck",
"Trashmaster",
"Stretch",
"Manana",
"Infernus",
"Voodoo",
"Pony",
"Mule",
"Cheetah",
"Ambulance",
"Leviathan",
"Moonbeam",
"Esperanto",
"Taxi",
"Washington",
"Bobcat",
"Mr Whoopee",
"BF Injection",
"Hunter",
"Premier",
"Enforcer",
"Securicar",
"Banshee",
"Predator",
"Bus",
"Rhino",
"Barracks",
"Hotknife",
"Trailer",
"Previon",
"Coach",
"Cabbie",
"Stallion",
"Rumpo",
"RC Bandit",
"Romero",
"Packer",
"Monster",
"Admiral",
"Squalo",
"Seasparrow",
"Pizzaboy",
"Tram",
"Trailer",
"Turismo",
"Speeder",
"Reefer",
"Tropic",
"Flatbed",
"Yankee",
"Caddy",
"Solair",
"Berkley's RC Van",
"Skimmer",
"PCJ-600",
"Faggio",
"Freeway",
"RC Baron",
"RC Raider",
"Glendale",
"Oceanic",
"Sanchez",
"Sparrow",
"Patriot",
"Quad",
"Coastguard",
"Dinghy",
"Hermes",
"Sabre",
"Rustler",
"ZR 350",
"Walton",
"Regina",
"Comet",
"BMX",
"Burrito",
"Camper",
"Marquis",
"Baggage",
"Dozer",
"Maverick",
"News Chopper",
"Rancher",
"FBI Rancher",
"Virgo",
"Greenwood",
"Jetmax",
"Hotring",
"Sandking",
"Blista Compact",
"Police Maverick",
"Boxville",
"Benson",
"Mesa",
"RC Goblin",
"Hotring Racer",
"Hotring Racer",
"Bloodring Banger",
"Rancher",
"Super GT",
"Elegant",
"Journey",
"Bike",
"Mountain Bike",
"Beagle",
"Cropdust",
"Stunt",
"Tanker",
"RoadTrain",
"Nebula",
"Majestic",
"Buccaneer",
"Shamal",
"Hydra",
"FCR-900",
"NRG-500",
"HPV1000",
"Cement Truck",
"Tow Truck",
"Fortune",
"Cadrona",
"FBI Truck",
"Willard",
"Forklift",
"Tractor",
"Combine",
"Feltzer",
"Remington",
"Slamvan",
"Blade",
"Freight",
"Streak",
"Vortex",
"Vincent",
"Bullet",
"Clover",
"Sadler",
"Firetruck",
"Hustler",
"Intruder",
"Primo",
"Cargobob",
"Tampa",
"Sunrise",
"Merit",
"Utility",
"Nevada",
"Yosemite",
"Windsor",
"Monster",
"Monster",
"Uranus",
"Jester",
"Sultan",
"Stratum",
"Elegy",
"Raindance",
"RC Tiger",
"Flash",
"Tahoma",
"Savanna",
"Bandito",
"Freight",
"Trailer",
"Kart",
"Mower",
"Duneride",
"Sweeper",
"Broadway",
"Tornado",
"AT-400",
"DFT-30",
"Huntley",
"Stafford",
"BF-400",
"Newsvan",
"Tug",
"Trailer",
"Emperor",
"Wayfarer",
"Euros",
"Hotdog",
"Club",
"Trailer",
"Trailer",
"Andromada",
"Dodo",
"RC Cam",
"Launch",
"Police Car (LSPD)",
"Police Car (SFPD)",
"Police Car (LVPD)",
"Police Ranger",
"Picador",
"S.W.A.T. Van",
"Alpha",
"Phoenix",
"Glendale",
"Sadler",
"Luggage Trailer",
"Luggage Trailer",
"Stair Trailer",
"Boxville",
"Farm Plow",
"Utility Trailer"
};
#define MAX_DROP_AMOUNT -1
#define MAX_DROP_LIFETIME 30
#define WEAPON_SLOTS 13
#define INVALID_PICKUP -1
#define PICKUP_TYPE 23
enum pickup
{
creation_time,
weapon,
ammo,
timer
}
new pickups [MAX_PICKUPS][pickup];
new PickWeapons[] =
{
-1, // no fists
331, // - Brass Knuckles
333, // Golf Club
334, // Night Stick
335, // Knife
336, // baseball bat
337, // shovel
338, // pool cue
339, // katama
341, // chainsaw
321, // regular dildo
322, // white dildo
323, // Medium, white vibrator
324, // smaill, silver vibrator
325, // flowers
326, // cane
342, // grendade
343, // tear gas
344, // molotov
-1, // RPG rocket - we can't pick up those, do we oO
-1, // Heat-Seeking Rocket
-1, // Hydra rocket
346, // colt 45
347, // colt 45 + silencer
348, // deagle
349, // shotgun
350, // sawn-off
351, // spaz
352, // micro-uzi
353, // mp5
355, // ak47
356, // m4
372, // tec9
357, // country rifle
358, // sniper rifle
-1, // rocket launcher
-1, // heat-seeking rocket launcher
-1, // flamethrower
-1, // minigun
-1, // sachtel charges
-1, // detonator
365, // spray can
366, // fire extinguisher
367, // camera
-1, // night-vision goggles
-1, // heat-vision goggles
371 // parachute
};
DropWeapons(playerid)
{
new Float: px, Float: py, Float: pz;
new hour,minute,second;
new year, month,day;
gettime(hour, minute, second);
getdate(year, month, day);
GetPlayerPos( playerid, px, py, pz );
new weapon_slots[WEAPON_SLOTS + 1][2];
new used_weapon_slots;
for( new i = 0; i < WEAPON_SLOTS; i ++ )
{
GetPlayerWeaponData( playerid, i, weapon_slots[ i ][ 0 ], weapon_slots[ i ][ 1 ]);
if( i == 0 && weapon_slots[ i ][ 0 ] == 0 ) weapon_slots[ i ][ 1 ] = 0; // no fist...
if( weapon_slots[ i ][ 1 ] > 0 && weapon_slots[ i ][ 0 ] < sizeof( PickWeapons ) && PickWeapons[ weapon_slots[ i ][ 0 ] ] != -1 )
{
used_weapon_slots ++;
}
else
{
weapon_slots[ i ][ 0 ] = 0;
weapon_slots[ i ][ 1 ] = 0;
}
}
new used_weapon_slots2 = used_weapon_slots;
for( new i = 0; i < WEAPON_SLOTS; i ++ )
{
if( weapon_slots[ i ][ 1 ] > 0 )
{
new Float:angle = 360.0 - float(used_weapon_slots--) * ( 360.0 / float(used_weapon_slots2) );
new p = CreatePickup( PickWeapons[ weapon_slots[ i ][ 0 ] ], PICKUP_TYPE, px + floatsin(angle,degrees) * (used_weapon_slots2/2 + 1.0), py + floatcos(angle,degrees) * (used_weapon_slots2/2 + 1.0), pz );
if( p == INVALID_PICKUP )
{
new lowest_time;
new _id;
for( new j = 0; j < MAX_PICKUPS; j ++ )
{
if( pickups[ j ][ creation_time ] < lowest_time )
{
lowest_time = pickups[ j ][ creation_time ];
_id = j;
}
}
DestroyPickupEx( _id );
KillTimer( pickups[ _id ][ timer ] );
p = CreatePickup( PickWeapons[ weapon_slots[ i ][ 0 ] ], PICKUP_TYPE, px + floatsin(angle,degrees) * (used_weapon_slots2/2 + 1.0), py + floatcos(angle,degrees) * (used_weapon_slots2/2 + 1.0), pz );
}
pickups[ p ][ creation_time ] = mktime(hour,minute,second,day,month,year);
pickups[ p ][ weapon ] = weapon_slots[ i ][ 0 ];
pickups[ p ][ ammo ] = weapon_slots[ i ][ 1 ];
#if MAX_DROP_AMOUNT != -1
if( pickups[ p ][ ammo ] > MAX_DROP_AMOUNT )
{
pickups[ p ][ ammo ] = MAX_DROP_AMOUNT;
}
#endif
pickups[ p ][ timer ] = SetTimerEx("DestroyPickupEx", MAX_DROP_LIFETIME * 1000, 0, "i", p);
}
}
}
forward DestroyPickupEx(p);
public DestroyPickupEx(p)
{
DestroyPickup( p );
pickups[ p ][ creation_time ] = 0;
pickups[ p ][ weapon ] = 0;
pickups[ p ][ ammo ] = 0;
}
pawn Код:
Testesss2.pwn(591) : warning 203: symbol is never used: "DropWeapons"
Testesss2.pwn(591) : warning 203: symbol is never used: "VehicleNames"
E eu tambem to precisando de um Scripter pra me ajudar terminar