[Ajuda] Substituir linha
#8

Deu certo, finalmente kkkk
Muitнssimo obrigado, Luan e Dark

Sу mais uma dъvida para nгo precisar criar outro tуpico... Estou agora tentando formatar a linha para enviar uma mensagem para o jogador, porйm nгo estб pegando o nъmero correto da linha. Lembrando que sгo nъmeros inteiros.

PHP код:
                                        new File:temptmpx[256], LikeG[128], DLike[128];
                                        new 
string[128];
                                        new 
line 0;                    
                                        
format(stringsizeof(A), "ArquivoC%d.txt"ArquivoLoad);
                                        
temp fopen(stringio_readwrite);
                                        while(
fread(temptmpxsizeof(tmpx), false))
                                        {
                                            if(
line == 3)
                                            {
                                                
format(LikeGsizeof(LikeG), "%d"tmpx);
                                                
line 4;
                                            }
                                            else if(
line == 4)
                                            {
                                                
format(DLikesizeof(DLike), "%d"tmpx);
                                                
line 5;
                                            }
                                        }
                                        
fclose(temp);
                                        new 
S[128];
                                        
format(Ssizeof(S), "%d - %d"LikeGDLike);
                                        
SendClientMessage(playerid, -1S); 
Reply


Messages In This Thread
Substituir linha - by ByAwolN - 20.12.2018, 16:47
Re: Substituir linha - by DarkBr - 20.12.2018, 18:35
Re: Substituir linha - by ipsLuan - 20.12.2018, 18:36
Re: Substituir linha - by ByAwolN - 20.12.2018, 22:26
Re: Substituir linha - by ipsLuan - 20.12.2018, 22:33
Re: Substituir linha - by ByAwolN - 20.12.2018, 22:36
Re: Substituir linha - by ipsLuan - 20.12.2018, 22:38
Re: Substituir linha - by ByAwolN - 21.12.2018, 00:59
Re: Substituir linha - by ipsLuan - 21.12.2018, 01:33
Re: Substituir linha - by ByAwolN - 21.12.2018, 01:41

Forum Jump:


Users browsing this thread: 2 Guest(s)