SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 02/08/2010, 11:06 PM   #1
keller012
Huge Clucker
 
keller012's Avatar
 
Join Date: Feb 2010
Posts: 390
Reputation: 0
Default [Ajuda]Deletar conta

oque eu colok para deletar um arquivo .ini?
como por exemplo uma conta...

Code:
if (strcmp(cmd, "/removeradm", true)==0)
{
if (PlayerInfo[playerid][pAdmin] >= 1338)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USE: /removeradm [PlayerName]");
return 1;
}
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, 256, "ADM: %s removeu ADM de %s", sendername,tmp);
ABroadCast(COLOR_YELLOW,string,1);
new str1[40];
format(str1,49,"users/%s.ini",tmp);
dini_IntSet(str1,"AdminLevel",0);
SendClientMessage(playerid, COLOR_GRAD1, "ADM Removido");
}else{
SendClientMessage(playerid, COLOR_GRAD1, "ERRO: Voce nao possui acesso.");
}
return 1;
}
oque eu troco no lugar de
Code:
dini_IntSet(str1,"AdminLevel",0);
para que a conta seja deletada?

edit:

Descobri:

Code:
fremove(str1);
keller012 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[PEDIDO] tipo de conta do player em cima da cabeça dele brundavid Português/Portuguese 7 10/08/2010 05:40 PM
[Ajuda]Deletar conta keller012 Português/Portuguese 6 22/06/2010 10:55 PM
[RESOLVIDO!] Conta não Salva a senha! krayvhus Português/Portuguese 4 15/05/2010 07:38 PM
Meu GM quando logo ele bani minha conta !!! matheusass Português/Portuguese 18 02/03/2010 09:03 PM
[AJUDA]Como criar uma conta premmy? andmeida10 Português/Portuguese 0 12/02/2010 02:11 PM


All times are GMT. The time now is 01:11 PM.


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