06.05.2011, 18:11
(
Последний раз редактировалось DesertFoxNight; 06.05.2011 в 19:25.
)
I've getting a 15 warnings of tag mismatch in my gamemode when there is no tag mismatch at all in the snippet causing the warnings. I've checked my code for any mistakes and also compiled the snippet on my C compiler with no errors or warnings. I'll also would like to know if there's a way to suppress the warnings so they don't show when I compile my gamemode. Thank you for your time.
Here's the snippet cause the warnings in Pawno
The warnings:
Here's the snippet cause the warnings in Pawno
pawn Код:
enum WeaponName {
Brass_Knuckles = 1, Golf_Club = 2, Nite_Stick = 3,
Knife = 4, Baseball_Bat = 5, Shovel = 6,
Pool_Cue = 7, Katana = 8, Chainsaw = 9,
Purple_Dildo = 10, Small_White_Vibrator = 11, Large_White_Vibrator = 12,
Silver_Vibrator = 13, Flowers = 14, Cane = 15,
Grenade = 16, Tear_Gas = 17, Molotov_Cocktail = 18,
Pistol_9mm = 22, Silenced_9mm = 23, Desert_Eagle = 24,
Shotgun = 25, Sawnoff_Shotgun = 26, Combat_Shotgun = 27,
Uzi = 28, MP5 = 29, AK_47 = 30,
M4 = 31, Tec9 = 32, Country_Rifle = 33,
Sniper_Rifle = 34, Rocket_Launcher = 35, HS_Rocket_Launcher = 36,
Flamethrower = 37, Minigun = 38
};
new WeaponsPolice[5][3][2] = {
{ { M4, 700 }, { Combat_Shotgun, 400 }, { Desert_Eagle, 500 } }, // Army [Line: 49]
{ { MP5, 500 }, { AK_47, 600 }, { Sniper_Rifle, 200 } }, // CIA [Line: 50]
{ { MP5, 500 }, { Desert_Eagle, 200 }, { Shotgun, 300 } }, // FBI [Line: 51]
{ { Uzi, 400 }, { Combat_Shotgun, 500 }, { Sniper_Rifle, 300 } }, // SWAT [Line: 52]
{ { Pistol_9mm, 500 }, { Shotgun, 300 }, { Tec9, 300 } } // Police [Line: 53]
};
public OnPlayerSpawn(playerid){
for(new i = 0; 3 > i; i++)
GivePlayerWeapon(playerid, WeaponsPolice[0][i][0], WeaponsPolice[0][i][1]);
return 1;
}
pawn Код:
Server\gamemodes\las_venturas_gamemode.pwn(49) : warning 213: tag mismatch
Server\gamemodes\las_venturas_gamemode.pwn(49) : warning 213: tag mismatch
Server\gamemodes\las_venturas_gamemode.pwn(49) : warning 213: tag mismatch
Server\gamemodes\las_venturas_gamemode.pwn(50) : warning 213: tag mismatch
Server\gamemodes\las_venturas_gamemode.pwn(50) : warning 213: tag mismatch
Server\gamemodes\las_venturas_gamemode.pwn(50) : warning 213: tag mismatch
Server\gamemodes\las_venturas_gamemode.pwn(51) : warning 213: tag mismatch
Server\gamemodes\las_venturas_gamemode.pwn(51) : warning 213: tag mismatch
Server\gamemodes\las_venturas_gamemode.pwn(51) : warning 213: tag mismatch
Server\gamemodes\las_venturas_gamemode.pwn(52) : warning 213: tag mismatch
Server\gamemodes\las_venturas_gamemode.pwn(52) : warning 213: tag mismatch
Server\gamemodes\las_venturas_gamemode.pwn(52) : warning 213: tag mismatch
Server\gamemodes\las_venturas_gamemode.pwn(53) : warning 213: tag mismatch
Server\gamemodes\las_venturas_gamemode.pwn(53) : warning 213: tag mismatch
Server\gamemodes\las_venturas_gamemode.pwn(53) : warning 213: tag mismatch