SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 21/12/2016, 09:03 PM   #1
SukMathcuck
Gangsta
 
SukMathcuck's Avatar
 
Join Date: Jun 2014
Posts: 646
Reputation: 2
Lightbulb DOF2_RemoveFile.

Então colegas, eu tenho um problema aqui que é o seguinte, estou tentando excluir um arquivo que foi criado usando DOF2, mas ele não está funcionando, não está excluindo por quê? O que eu fiz errado?

PHP Code:
        new arquivo2[150], nome[MAX_PLAYERS];
        
     
nome[playerid] = Account[playerid][pPersonagem1];

        
format(arquivo2sizeof(arquivo2), "/Personagens/%s.ini"nome[playerid]);
        
DOF2_RemoveFile(arquivo2);
        
        
format(strglobalsizeof(strglobal), "Character %s has been deleted."nome[playerid]);
          
SendClientMessage(playerid, -1strglobal); 
SukMathcuck is offline   Reply With Quote
Old 21/12/2016, 09:24 PM   #2
wender_sousa
Big Clucker
 
Join Date: Sep 2011
Posts: 123
Reputation: 1
Default Re: DOF2_RemoveFile.

pawn Code:
new arquivo2[150], nome[MAX_PLAYERS];
         
     nome[playerid] = Account[playerid][pPersonagem1];

        format(arquivo2, sizeof(arquivo2), "Personagens/%s.ini", nome[playerid]);
        DOF2_RemoveFile(arquivo2);
         
        format(strglobal, sizeof(strglobal), "Character %s has been deleted.", nome[playerid]);
          SendClientMessage(playerid, -1, strglobal);
testa e me diz se funfo
wender_sousa is offline   Reply With Quote
Old 21/12/2016, 11:50 PM   #3
SukMathcuck
Gangsta
 
SukMathcuck's Avatar
 
Join Date: Jun 2014
Posts: 646
Reputation: 2
Default Re: DOF2_RemoveFile.

Problem not fixed.
SukMathcuck is offline   Reply With Quote
Old 22/12/2016, 12:18 AM   #4
RodrigoMSR
High-roller
 
RodrigoMSR's Avatar
 
Join Date: Mar 2015
Location: Brazil
Posts: 1,079
Reputation: 140
Default Re: DOF2_RemoveFile.

Tente:
Code:
new arquivo2[150], nome[MAX_PLAYER_NAME]; 
         
     format(nome, sizeof(nome), "%s", Account[playerid][pPersonagem1]); 

        format(arquivo2, sizeof(arquivo2), "/Personagens/%s.ini", nome); 
        DOF2_RemoveFile(arquivo2); 
         
        format(strglobal, sizeof(strglobal), "Character %s has been deleted.", nome); 
          SendClientMessage(playerid, -1, strglobal);
__________________
sttserver.net

RodrigoMSR is offline   Reply With Quote
Old 22/12/2016, 12:54 PM   #5
SukMathcuck
Gangsta
 
SukMathcuck's Avatar
 
Join Date: Jun 2014
Posts: 646
Reputation: 2
Default Re: DOF2_RemoveFile.

Tranks, topic closed, error yes fixed!
SukMathcuck is offline   Reply With Quote
Old 22/12/2016, 12:58 PM   #6
SammyJ
Gangsta
 
SammyJ's Avatar
 
Join Date: May 2015
Location: Rio de Janeiro
Posts: 811
Reputation: 71
Default Respuesta: Re: DOF2_RemoveFile.

Quote:
Originally Posted by SukMathcuck View Post
Tranks, topic closed, error yes fixed!
O uso da lingua portuguesa é permitido e obrigatório apenas nesta área do fórum, toda postagem externa deverá estar em inglês.
__________________
SammyJ is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 10:35 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.