[Ajuda] Score nгo aparece no SCOREBOARD
#5

Faz um sistema de salvamento de conta, e coloca SetPlayerScore + GetPlayerScore

Code de quando matar ganha +1 score:

PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    if(
killerid != INVALID_PLAYER_ID)
    {
        new 
File150 ], Nome[MAX_PLAYER_NAME];
        
GetPlayerName(playeridNomesizeof(Nome));
        
format(Filesizeof(File), "Contas/%s.ini"Nome(playerid));
        
SetPlayerScore(killeridGetPlayerScore(killerid)+1);
        
DOF2_SetInt(File"Score"DOF2_GetInt(File"Score")+1);
    }
    return 
1;

Sem o salvamento

PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    if(
killerid != INVALID_PLAYER_ID)
    {
        
SetPlayerScore(killeridGetPlayerScore(killerid)+1);
    }
    return 
1;

Reply


Messages In This Thread
Score nгo aparece no SCOREBOARD - by axellech - 28.05.2018, 20:40
Re: Score nгo aparece no SCOREBOARD - by Ermanhaut - 28.05.2018, 20:43
Re: Score nгo aparece no SCOREBOARD - by axellech - 28.05.2018, 20:56
Re: Score nгo aparece no SCOREBOARD - by RodrigoMSR - 28.05.2018, 20:58
Re: Score nгo aparece no SCOREBOARD - by AutoMatic2 - 28.05.2018, 21:08
Re: Score nгo aparece no SCOREBOARD - by axellech - 28.05.2018, 21:13

Forum Jump:


Users browsing this thread: 1 Guest(s)