05.11.2011, 19:37
Tive dois erros com os cуdigos de Nickoff й nickon:
Aqui estгo as linhas dos erros:
Cуdigo completo:
pawn Код:
C:\xx\xx\xx\xx\xx.pwn(291) : warning 217: loose indentation
C:\xx\xx\xx\xx\xx.pwn(294) : warning 217: loose indentation
pawn Код:
for(new i; i < MAX_PLAYERS; i++)if(IsPlayerConnected(i))ShowPlayerNameTagForPlayer(playerid, i, 0);
for(new i; i < MAX_PLAYERS; i++)if(IsPlayerConnected(i))ShowPlayerNameTagForPlayer(playerid, i, 1);
pawn Код:
if(strcmp(cmdtext, "/nickoff", true) == 0){SendClientMessage(playerid, 0xFF9900AA, "(INFO): Nicks desativados !"); GameTextForPlayer(playerid,"~w~Nicks ~r~Desativados",1000,6);
for(new i; i < MAX_PLAYERS; i++)if(IsPlayerConnected(i))ShowPlayerNameTagForPlayer(playerid, i, 0);
gNameTags[playerid] = 0; return 1;}
if(strcmp(cmdtext, "/nickon", true) == 0){SendClientMessage(playerid, 0xFF9900AA, "(INFO): Nicks ativados !"); GameTextForPlayer(playerid,"~w~Nicks ~g~Ativado",1000,6);
for(new i; i < MAX_PLAYERS; i++)if(IsPlayerConnected(i))ShowPlayerNameTagForPlayer(playerid, i, 1);
gNameTags[playerid] = 1;return 1; }