SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 10/09/2014, 03:50 PM   #11
.FuneraL.
High-roller
 
.FuneraL.'s Avatar
 
Join Date: Feb 2012
Location: Pawno.exe
Posts: 2,078
Reputation: 146
Default Re: Salvar LEVEL/SKIN/COR

Se quiser criar um sistema de salvamento, procure começar pelo simples, te recomendo dar uma estudada em DOF2, aqui vai um link tutorial pra você: Link
.FuneraL. is offline   Reply With Quote
Old 10/09/2014, 04:23 PM   #12
leonardoaparecido
Huge Clucker
 
Join Date: Nov 2012
Posts: 272
Reputation: 2
Default Re: Salvar LEVEL/SKIN/COR

Funeral,eu não estou começando o sistema,só estou colocando mas algumas coisas em 1 sistema pronto,mas quando reinicio o server,zera o level o skin e a cor.
leonardoaparecido is offline   Reply With Quote
Old 10/09/2014, 05:30 PM   #13
leonardoaparecido
Huge Clucker
 
Join Date: Nov 2012
Posts: 272
Reputation: 2
Default Re: Salvar LEVEL/SKIN/COR

Consegui fazer salvar o level,agora falta o SKIN e a COR.
leonardoaparecido is offline   Reply With Quote
Old 12/09/2014, 04:05 PM   #14
leonardoaparecido
Huge Clucker
 
Join Date: Nov 2012
Posts: 272
Reputation: 2
Default Re: Salvar LEVEL/SKIN/COR

Alguém help-me ?
leonardoaparecido is offline   Reply With Quote
Old 14/09/2014, 05:41 AM   #15
leonardoaparecido
Huge Clucker
 
Join Date: Nov 2012
Posts: 272
Reputation: 2
Default Re: Salvar LEVEL/SKIN/COR

me ajudem
leonardoaparecido is offline   Reply With Quote
Old 14/09/2014, 12:04 PM   #16
Larceny
Huge Clucker
 
Larceny's Avatar
 
Join Date: Apr 2006
Posts: 276
Reputation: 221
Default Re: Salvar LEVEL/SKIN/COR

Se você conseguiu salvar o level, consegue salvar os outros. Apenas repetindo o processo com as variáveis dos outros.
Larceny is offline   Reply With Quote
Old 14/09/2014, 09:54 PM   #17
leonardoaparecido
Huge Clucker
 
Join Date: Nov 2012
Posts: 272
Reputation: 2
Default Re: Salvar LEVEL/SKIN/COR

Já tentei Larceny,mas não está dando.
leonardoaparecido is offline   Reply With Quote
Old 14/09/2014, 10:27 PM   #18
MultiKill
High-roller
 
Join Date: Apr 2014
Posts: 1,688
Reputation: 111
Default Re: Salvar LEVEL/SKIN/COR

Use as funções do DOF2:
pawn Code:
DOF2_SetHex(file[], key[], value, tag[]= "");
DOF2_GetHex(file[], key[], tag[] = "");
//Exemplo
DOF2_SetHex("MK.ini","Color", 0xFFFFFFFF);
//
SendClientMessage(playerid, DOF2_GetHex("MK.ini","Color"), "Exemplo");
MultiKill is offline   Reply With Quote
Old 14/09/2014, 10:33 PM   #19
ipsLuan
High-roller
 
ipsLuan's Avatar
 
Join Date: Feb 2013
Location: Ilhéus, BA
Posts: 4,484
Reputation: 328
Default Re: Salvar LEVEL/SKIN/COR

Pra salvar a skin:
pawn Code:
DOF2_SetInt(Arquivo, "Skin", GetPlayerSkin(playerid));

Pra carregar a skin:
pawn Code:
SetPlayerSkin(playerid, DOF2_GetInt(Arquivo, "Skin"));
__________________
Brasil New Style
ip.brasilnewstyle.com
ipsLuan 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
[Ajuda] Salvar Skin ElGringo Português/Portuguese 6 04/05/2014 11:40 AM
[Ajuda] Salvar Level Catchorro Português/Portuguese 1 30/10/2013 08:09 PM
[Ajuda] Salvar Skin SouUmaJujuba Português/Portuguese 11 31/07/2013 09:43 PM
[Ajuda] Salvar level e exp Forrest Português/Portuguese 4 08/07/2013 02:06 AM


All times are GMT. The time now is 11:26 AM.


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