05.08.2012, 11:17
Desculpa o double post mas no caso como ficaria este comando eu tentei e ele da aviso
AVISO
CODE
AVISO
pawn Код:
C:\Documents and Settings\Administrador\Desktop\SAMPSERVER\gamemodes\Guerra.pwn(1031) : error 033: array must be indexed (variable "DName")
C:\Documents and Settings\Administrador\Desktop\SAMPSERVER\gamemodes\Guerra.pwn(1033) : error 033: array must be indexed (variable "DName")
C:\Documents and Settings\Administrador\Desktop\SAMPSERVER\gamemodes\Guerra.pwn(1035) : error 033: array must be indexed (variable "DName")
C:\Documents and Settings\Administrador\Desktop\SAMPSERVER\gamemodes\Guerra.pwn(1037) : error 033: array must be indexed (variable "DName")
C:\Documents and Settings\Administrador\Desktop\SAMPSERVER\gamemodes\Guerra.pwn(1039) : error 033: array must be indexed (variable "DName")
C:\Documents and Settings\Administrador\Desktop\SAMPSERVER\gamemodes\Guerra.pwn(1041) : error 033: array must be indexed (variable "DName")
CODE
pawn Код:
CMD:infocontaoff(playerid,params[])
{
new DName[MAX_PLAYER_NAME], Speed[300];
if(PlayerInfo[playerid][pAdmin]< 4) return SendClientMessage(playerid,0x8000FFAA,"[ERRO] Voce nao e admin/ ou nivel insuficiente");
if(sscanf(params, "s[50]",DName))return SendClientMessage(playerid,-1,"[AVISO] /infocontaoff [nick]");
GetPlayerName(playerid, Name, sizeof(Name));
format(arquivo, sizeof(arquivo), "/Players/%s.ini", DName);
if(!DOF2_FileExists(arquivo))return SendClientMessage(playerid, -1,"[ERRO] Conta Inexistente");
format(Don,sizeof(Don),"|================[ %s ]================|", DName);
strcat(Don, Speed);
format(Don,sizeof(Don),"Nivel de Admin : %d",PlayerInfo[DName][pAdmin]);
strcat(Don, Speed);
format(Don,sizeof(Don),"Score : %d",PlayerInfo[DName][pScore]);
strcat(Don, Speed);
format(Don,sizeof(Don),"Grana : %i",PlayerInfo[DName][pGrana]);
strcat(Don, Speed);
format(Don,sizeof(Don),"Matou : %d",PlayerInfo[DName][pMatou]);
strcat(Don, Speed);
format(Don,sizeof(Don),"Morreu : %d",PlayerInfo[DName][pMorreu]);
strcat(Don, Speed);
format(Don,sizeof(Don),"Logou : %d",PlayerInfo[DName][pLogou]);
strcat(Don, Speed);
format(Don,sizeof(Don),"|================[ FIM ]================|");
strcat(Don, Speed);
ShowPlayerDialog(playerid, InfoPlayer, DIALOG_STYLE_MSGBOX, "Info Player", Speed, "fechar", "");
return true;
}
