[Ajuda] Dinheiro - 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] Dinheiro (
/showthread.php?tid=550760)
Dinheiro -
Tiaraujo - 14.12.2014
Dinheiro nao carrega me ajudem pf
Re: Dinheiro -
paulotuto - 14.12.2014
Como assim o dinheiro nгo carrega amigo??
Tenta fazer uma demonstraзгo
fala oque esta acontecendo
Re: Dinheiro -
ipsLuan - 14.12.2014
Cria um sistema de salvamento e salva o dinheiro com GetPlayerMoney.
Apos ele logar, carregue o dinheiro dele e usa GivePlayerMoney pra dб a grana.
Use uma das includes de salvamento: Dini, bCini, DOF2, MySQL, bINI, YSI.
Re: Dinheiro -
[BOPE]Seu._.Madruga - 14.12.2014
PHP код:
public OnPlayerConnect(playerid)
{
new file[255], aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, sizeof(aname));
format(file, sizeof(file), "/%s.ini", aname);
if(dini_Exists(file))
{
GivePlayerMoney(playerid, dini_Get(file, "Dinheiro"));
}
else
{
dini_Create(file);
}
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new file[255], aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, sizeof(aname));
format(file, sizeof(file), "/%s.ini", aname);
if(dini_Exists(file))
{
dini_IntSet(file, "Dinheiro", GetPlayerMoney(playerid));
}
else
{
dini_Create(file);
dini_IntSet(file, "Dinheiro", GetPlayerMoney(playerid));
}
return 1;
}
Re: Dinheiro -
Seidel - 14.12.2014
Obs.: Isso aqui - SetPlayerMoney - nгo existe nas funзхes nativas do SA-MP...
@topic
Quando vocк estiver com uma dъvida, exemplifique ao mбximo e explique-a, caso contrбrio, nгo conseguiremos ajuda-lo.
Re: Dinheiro -
[BOPE]Seu._.Madruga - 14.12.2014
Quote:
Originally Posted by Seidel
Obs.: Isso aqui - SetPlayerMoney - nгo existe nas funзхes nativas do SA-MP...
|
HUSAHSUAHUSAH й que eu estava fazendo um FS e usando a funзгo SetPlayerScore, ai acabou passando vlws xD