[Ajuda] Aonde ta errado.
#1

quero que ele ler os nomes que estao no arquivo e mostre na dialog mais ele nгo ler os nomes.


PHP код:
         if(dialogid == 9999)
        {
            new 
String[128], info[400];
            if(
response)
            {
                if(
listitem == 0)
                {
                    for(new 
i=0i<MAX_PLAYERSi++)
                    {
                   if(
Player[i][Admin] > && Player[i][Faccoes] ==  Player[playerid][Faccoes])
                               {
                               
format(Stringsizeof(String), "{1D4FC4}» {ffffff}[Admin]%s\n"Nome(i));
                          
strcat(infoString);
                          new 
File:Arquivo fopen "FA/Informacoes/Admins.txt" io_read ), String[100];
                            while ( 
fread Arquivo String ) )
                            {
                            }
                          
fclose Arquivo );
                        }
                    }
                    
strcat(info" ");
                    
ShowPlayerDialog(playeridD_HQDIALOG_STYLE_LIST,"{1D4FC4}» {ffffff}Administradores da Comunidade"info,"Ok","");
                } 
Reply
#2

ini, ou txt, qual usar?
Reply
#3

Quote:
Originally Posted by TheBob
Посмотреть сообщение
ini, ou txt, qual usar?
eu uso txt
Reply
#4

Quote:
Originally Posted by didimk157
Посмотреть сообщение
eu uso txt
eu estou enfrentando a mesma dъvida que vocк, porйm estou usando .ini, pra fazer a verificaзгo no DOF2
Reply
#5

https://sampwiki.blast.hk/wiki/Fread

A linha que o fred leu no while fica armazenado no vetor String, veja o wiki para ver como usar a funзгo.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)