05.11.2013, 19:19
Ola , o Que Eu Fiz De Errado ?
Cod Todo
pawn Код:
C:\Users\Allisson\Documents\[GM] Brasil Knight Games\gamemodes\BKC.pwn(48890) : warning 219: local variable "Admin" shadows a variable at a preceding level
C:\Users\Allisson\Documents\[GM] Brasil Knight Games\gamemodes\BKC.pwn(48891) : warning 213: tag mismatch
C:\Users\Allisson\Documents\[GM] Brasil Knight Games\gamemodes\BKC.pwn(48891) : warning 206: redundant test: constant expression is non-zero
C:\Users\Allisson\Documents\[GM] Brasil Knight Games\gamemodes\BKC.pwn(48890) : warning 204: symbol is assigned a value that is never used: "Admin"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Header size: 12220 bytes
Code size: 2219684 bytes
Data size: 8610884 bytes
Stack/heap size: 16384 bytes; estimated max. usage=7438 cells (29752 bytes)
Total requirements:10859172 bytes
4 Warnings.
pawn Код:
new Admin = PlayerInfo[playerid][pAdmin];
pawn Код:
if(Admin >= 1)
Cod Todo
pawn Код:
//Administraзгo
forward IsAAdmin(playerid);
forward IsAAdminCar(carid);
pawn Код:
else if(IsAAdminCar(newcar))
{
if(IsAAdmin(playerid)) { }
{
SendClientMessage(playerid, COR_ADMIN, "Voce Nгo й Um Admin Ou Nгo Estб Em Modo Trabalho!");
RemovePlayerFromVehicleEx(playerid);
}
}
pawn Код:
public IsAAdmin(playerid)
{
if(IsPlayerConnected(playerid))
{
new Admin = PlayerInfo[playerid][pAdmin];
if(Admin >= 1)
{
return 1;
}
}
return 0;
}
public IsAAdminCar(carid)
{
if((carid >= 204) && (carid <= 228))
{
return 1;
}
return 0;
}