07.03.2011, 18:04
Oi gente, estou escrevendo um GM A/D baseado em Los Santos e gangues.
Portanto, fiz um sistema de Skin randфmica, ou seja, assim que o player escolhe sua equipe, a skin dele й selecionada aleatoriamente.
O *ЪNICO* problema й que o cуdigo faz o favor de me dar tag mismatches:
As linha que dгo tag mismatch :
A outra parte:
Agradeзo desde jб.
Portanto, fiz um sistema de Skin randфmica, ou seja, assim que o player escolhe sua equipe, a skin dele й selecionada aleatoriamente.
O *ЪNICO* problema й que o cуdigo faz o favor de me dar tag mismatches:
Код:
C:\Users\vhnn\Documents\uberhax\gamemodes\lswar.pwn(17) : warning 213: tag mismatch C:\Users\vhnn\Documents\uberhax\gamemodes\lswar.pwn(18) : warning 213: tag mismatch C:\Users\vhnn\Documents\uberhax\gamemodes\lswar.pwn(19) : warning 213: tag mismatch C:\Users\vhnn\Documents\uberhax\gamemodes\lswar.pwn(20) : warning 213: tag mismatch C:\Users\vhnn\Documents\uberhax\gamemodes\lswar.pwn(21) : warning 213: tag mismatch C:\Users\vhnn\Documents\uberhax\gamemodes\lswar.pwn(24) : warning 213: tag mismatch C:\Users\vhnn\Documents\uberhax\gamemodes\lswar.pwn(25) : warning 213: tag mismatch C:\Users\vhnn\Documents\uberhax\gamemodes\lswar.pwn(26) : warning 213: tag mismatch C:\Users\vhnn\Documents\uberhax\gamemodes\lswar.pwn(27) : warning 213: tag mismatch C:\Users\vhnn\Documents\uberhax\gamemodes\lswar.pwn(28) : warning 213: tag mismatch C:\Users\vhnn\Documents\uberhax\gamemodes\lswar.pwn(29) : warning 213: tag mismatch C:\Users\vhnn\Documents\uberhax\gamemodes\lswar.pwn(30) : warning 213: tag mismatch C:\Users\vhnn\Documents\uberhax\gamemodes\lswar.pwn(31) : warning 213: tag mismatch C:\Users\vhnn\Documents\uberhax\gamemodes\lswar.pwn(32) : warning 213: tag mismatch C:\Users\vhnn\Documents\uberhax\gamemodes\lswar.pwn(94) : warning 213: tag mismatch C:\Users\vhnn\Documents\uberhax\gamemodes\lswar.pwn(97) : warning 213: tag mismatch
pawn Код:
new Float:gRandomPoliceSkins[5][1] = {
{280}, //SP LS Police officer
{284}, //Bike officer
{285}, //S.W.A.T Dude
{286}, //FBI Dude
{287} //Army Dude (Might put these on a different spawn, who knows...)
};
new Float:gRandomGangSkins[9][1] = {
{102}, //Those 3 skins are all Ballas
{103},
{104},
{105}, //Now on, Families
{106},
{107},
{108}, //Vagos...
{109},
{110}
};
pawn Код:
public OnPlayerSpawn(playerid)
{ //Randomly selecting their skin after they spawn, depending on their team
if (gTeam[playerid] == POLICE ) {
new rand = random(sizeof(gRandomPoliceSkins));
(94) SetPlayerSkin(playerid, gRandomPoliceSkins[rand][0]);
}else if (gTeam[playerid] == GANGS ) {
new rand = random(sizeof(gRandomGangSkins));
(97) SetPlayerSkin(playerid, gRandomGangSkins[rand][0]); }
return 1;
}