public TextAdmin()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[i][pAdmin] >= 1)
{
SetPlayerChatBubble(i, "{00FFFF}..: Administrador :..", COLOR_RED, 100.0, 10000);
}
}
}
}
if(strcmp(cmdtext, "/trampar", true) == 0)
{
if(PlayerInfo[playerid][pJailed] != 0)
{
MSGPLAYER(playerid,COLOR_YELLOW," Vocк nгo pode trabalhar na cadeia!");
return 1;
}
if(PlayerInfo[playerid][pAdmin] >= 1)
{
if(admtrampando[playerid] > 0)
{
admtrampando[playerid] = 0;
GetPlayerName(playerid,sendername,sizeof(sendername));
MSGPARATODOS(COLOR_GRAD2, "(=-=-=-=-=-=-=-=-=-=( {FF8C00}Aviso Da Administraзгo{BFC0C2} )=-=-=-=-=-=-=-=-=-=)");
format(string, 128, "Admin: %s ID(%d) estб Jogando, Veja em /admins.",sendername, playerid);
MSGPARATODOS(0xFF1CAEFF, string);
KillTimer(TempoAdministrador);
SetPlayerToTeamColor(playerid);
ResetPlayerWeaponsEx(playerid);
SetPlayerHealth(playerid,100);
SetPlayerSkin(playerid,skinadm[playerid]);
getdate(year, month, day);
gettime(hour,minute,second);
format(gstring, sizeof(gstring), "%s esta jogando [%d/%d/%d - %d:%d:%d]\n", PlayerName(playerid), day, month, year, hour, minute, second);
//AdminLog(gstring);
}
else
{
admtrampando[playerid] = 1;
GetPlayerName(playerid,sendername,sizeof(sendername));
MSGPARATODOS(COLOR_GRAD2, "(=-=-=-=-=-=-=-=-=-=( {FF8C00}Aviso Da Administraзгo{BFC0C2} )=-=-=-=-=-=-=-=-=-=)");
format(string, 128, "Admin: %s ID(%d) estб Trabalhando, veja em /admins.",sendername, playerid);
MSGPARATODOS(0xFF1CAEFF, string);
SetPlayerToTeamColor(playerid);
TempoAdministrador = SetTimerEx("Administrador", 1000, true, "i", playerid);
skinadm[playerid] = GetPlayerSkin(playerid);
SetPlayerSkin(playerid,217);
getdate(year, month, day);
gettime(hour,minute,second);
format(gstring, sizeof(gstring), "%s esta trabalhando [%d/%d/%d - %d:%d:%d]\n", PlayerName(playerid), day, month, year, hour, minute, second);
//AdminLog(gstring);
}
}
return 1;
}
public TextAdmin()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[i][pAdmin] > 0 && admtrampando > 0)
{
SetPlayerChatBubble(i, "{00FFFF}..: Administrador :..", COLOR_RED, 100.0, 10000);
}
}
}
pawn Код:
|
C:\Users\Windows 7\Desktop\samp03e_svr_win32 (1)\gamemodes\Bac.pwn(19147) : warning 217: loose indentation
C:\Users\Windows 7\Desktop\samp03e_svr_win32 (1)\gamemodes\Bac.pwn(19149) : warning 217: loose indentation
C:\Users\Windows 7\Desktop\samp03e_svr_win32 (1)\gamemodes\Bac.pwn(54890) : warning 217: loose indentation
C:\Users\Windows 7\Desktop\samp03e_svr_win32 (1)\gamemodes\Bac.pwn(54895) : warning 217: loose indentation
C:\Users\Windows 7\Desktop\samp03e_svr_win32 (1)\gamemodes\Bac.pwn(61836) : warning 202: number of arguments does not match definition
C:\Users\Windows 7\Desktop\samp03e_svr_win32 (1)\gamemodes\Bac.pwn(69586) : error 033: array must be indexed (variable "admtrampando")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
public TextAdmin()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[i][pAdmin] > 0 && admtrampando[i] > 0)
{
SetPlayerChatBubble(i, "{00FFFF}..: Administrador :..", COLOR_RED, 100.0, 10000);
}
}
}
pawn Код:
|