[AJUDA] Salvando Profissхes - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] Salvando Profissхes (
/showthread.php?tid=268762)
[AJUDA] Salvando Profissхes -
Rodox_Mortein - 13.07.2011
Boa tarde galera depois de muito tentar e nada conseguir venha ate vocкs (NOVAMENTE ¬¬) pedir ajuda....
to usando 2 sistemas criados pelo falcon aqui..
o sistema de login .. e o de criar profissхes..
dai tudo funciona direitinho e tals.. sу bateu uma duvida aqui... como eu faзo pra salvar e carregar as profissхes ??
ai o link do sistema de registro
https://sampforum.blast.hk/showthread.php?tid=268151
link do sistema de empregos
https://sampforum.blast.hk/showthread.php?tid=187764
grato desde jб! estrelinha pra quem me ajudar xD
Re: [AJUDA] Salvando Profissхes -
Tymer - 13.07.2011
Dini? Fini? Etc...
Escolhe 1 Primeiro.
Re: [AJUDA] Salvando Profissхes -
Rodox_Mortein - 13.07.2011
dini
Re: [AJUDA] Salvando Profissхes -
SuYaNw - 13.07.2011
pawn Код:
#include <a_samp>
#include dini
new
Profissao[MAX_PLAYERS];
#define PASTA "%s.ini"
public OnPlayerConnect(playerid)
{
static String[200];GetPlayerName(playerid, String, sizeof(String));
format(String, sizeof(String),PASTA,String);
if(fexist(String))
{
Profissao[playerid] = dini_Int(String, "Profissao");
}
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
static String[200];GetPlayerName(playerid, String, sizeof(String));
format(String, sizeof(String),PASTA,String);
if(!fexist(String))
{
dini_Create(String);
dini_IntSet(String, "Profissao", Profissao[playerid]);
}
dini_IntSet(String, "Profissao", Profissao[playerid]);
return 1;
}
criei agora, minha stelinhaa