10.06.2010, 15:29
Quote:
Originally Posted by Bruno Gysin
[pawn]
if(strcmp(cmd, "/profadmin", true) == 0 || strcmp(cmd, "/pf", true) == 0 || strcmp(cmd, "/trabalha", true) == 0 || strcmp(cmd, "/tb", true) == 0) { if(PlayerInfo[playerid][pAdmin] >= 1) { if(admtrampando[playerid] > 0) { admtrampando[playerid] = 0; GetPlayerName(playerid,sendername,sizeof(sendernam e)); SendClientMessageToAll(COLOR_LIGHTBLUE, "|___________ Aviso da Administraзгo ___________|"); format(string, 256, "Admin: %s ID(%d) estб Jogando, Digite /admins para mais informaзхes.",sendername, playerid); SendClientMessageToAll(COLOR_LIGHTBLUE, string); KillTimer(TempoAdministrador); SetPlayerToTeamColor(playerid); ResetPlayerWeapons(playerid); SetPlayerHealth(playerid,100); } else { admtrampando[playerid] = 1; GetPlayerName(playerid,sendername,sizeof(sendernam e)); SendClientMessageToAll(COLOR_LIGHTBLUE, "|___________ Aviso da Administraзгo ___________|"); format(string, 256, "Admin: %s ID(%d) estб Trabalhando, Digite /admins para mais informaзхes.",sendername, playerid); SendClientMessageToAll(COLOR_LIGHTBLUE, string); SetPlayerToTeamColor(playerid); TempoAdministrador = SetTimerEx("Administrador", 1000, 1, "i", playerid); } } return 1; } [pawn/] No fim do GM [pawn] public Administrador(playerid) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] > 0) { if(admtrampando[playerid] > 0) { ResetPlayerWeapons(playerid); // REtirar as armas do gm SetPlayerHealth(playerid,9999); // ficara com life infinito return 1; } return 1; } return 1; } return 1; } [pawn/] tente agora |
C:\Users\Mateus\Desktop\gf\gamemode\construзгo.pwn (208 : warning 219: local variable "TempoAdministrador" shadows a variable at a preceding level
C:\Users\Mateus\Desktop\gf\gamemode\construзгo.pwn (208 : warning 203: symbol is never used: "TempoAdministrador"
C:\Users\Mateus\Desktop\gf\gamemode\construзгo.pwn (2882) : warning 217: loose indentation
C:\Users\Mateus\Desktop\gf\gamemode\construзгo.pwn (2883) : warning 217: loose indentation
C:\Users\Mateus\Desktop\gf\gamemode\construзгo.pwn (5872) : warning 204: symbol is assigned a value that is never used: "warrests"
C:\Users\Mateus\Desktop\gf\gamemode\construзгo.pwn (16123) : warning 217: loose indentation
C:\Users\Mateus\Desktop\gf\gamemode\construзгo.pwn (16124) : warning 217: loose indentation
C:\Users\Mateus\Desktop\gf\gamemode\construзгo.pwn (16133) : warning 217: loose indentation
C:\Users\Mateus\Desktop\gf\gamemode\construзгo.pwn (16134) : warning 217: loose indentation
C:\Users\Mateus\Desktop\gf\gamemode\construзгo.pwn (26151) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
C:\Users\Mateus\Desktop\gf\gamemode\construзгo.pwn (26187) : warning 235: public function lacks forward declaration (symbol "Administrador")
C:\Users\Mateus\Desktop\gf\gamemode\construзгo.pwn (26196) : warning 217: loose indentation
C:\Users\Mateus\Desktop\gf\gamemode\construзгo.pwn (26197) : warning 217: loose indentation
C:\Users\Mateus\Desktop\gf\gamemode\construзгo.pwn (26199) : warning 217: loose indentation
C:\Users\Mateus\Desktop\gf\gamemode\construзгo.pwn (26201) : warning 217: loose indentation
C:\Users\Mateus\Desktop\gf\gamemode\construзгo.pwn (26203) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Header size: 5944 bytes
Code size: 1099868 bytes
Data size: 4444248 bytes
Stack/heap size: 16384 bytes; estimated max. usage=5103 cells (20412 bytes)
Total requirements: 5566444 bytes
16 Warnings.