[Ajuda] Adicionar e subtrair
#10

Desculpa o double post mas no caso como ficaria este comando eu tentei e ele da aviso


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;
}
Reply


Messages In This Thread
Adicionar e subtrair - by Don_Speed - 04.08.2012, 13:03
AW: Adicionar e subtrair - by billy the kid - 04.08.2012, 13:07
Re: Adicionar e subtrair - by rjjj - 04.08.2012, 13:12
Re: Adicionar e subtrair - by Don_Speed - 04.08.2012, 13:34
Re: Adicionar e subtrair - by leonardo1434 - 04.08.2012, 13:42
Re: Adicionar e subtrair - by Don_Speed - 04.08.2012, 13:58
Re: Adicionar e subtrair - by leonardo1434 - 04.08.2012, 14:03
Re: Adicionar e subtrair - by paulor - 04.08.2012, 14:04
Re: Adicionar e subtrair - by Don_Speed - 04.08.2012, 16:47
Re: Adicionar e subtrair - by Don_Speed - 05.08.2012, 11:17

Forum Jump:


Users browsing this thread: 2 Guest(s)