[Ajuda] Como fazer salvamento Dini
#1

Alguem sabe como faz salvar em dini os pontos do players ?


Код:
#include <YSI\y_hooks>




public OnDeath(playerid, killerid, reason)
{
	d:3:GLOBAL_DEBUG("[OnPlayerDeath] in /gamemodes/sss/extensions/score.pwn");

	SetPlayerScore(killerid, GetPlayerScore(killerid)+1);
	return 1;
}
ir para pasta scripfiles
Reply
#2

PHP код:
#include <dini>
public OnPlayerConnect(playerid)
{
    if(
dini_Get("score.ini",PlayerName(playerid))) SetPlayerScore(playerid,dini_Int("score.ini",PlayerName(playerid)));
    return 
1;
}
public 
OnPlayerDisconnect(playeridreason)
{
    
dini_IntSet("score.ini",name(playerid),GetPlayerScore(playerid));
    return 
1;
}
public 
OnPlayerDeath(playeridkilleridreason)
{
    
SetPlayerScore(killeridGetPlayerScore(killerid)+1);
    return 
1;

Simples, estude um pouco mais o salvamento DINI
Reply
#3

Obrigado . como da reputation ?
Reply
#4

Quote:
Originally Posted by LukeCage
Посмотреть сообщение
Obrigado . como da reputation ?
Nгo й necessбrio.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)