Jump to content
  • 0

pomoc DOF2 ukládání


Albus Brambůrek

Dotaz

Ahoj, vytvářím si mód ale ukládání zlobí jde o to že když se zabiju na serveru tak se mi do /acount (Info) napíše že jsem zemřel o 1 více ale až se odpojím tak nic.

 

Popřípadě dokládám kód z OnPlayerDisconnect:

public OnPlayerDisconnect(playerid, reason)
{
new str[144];
format(str,sizeof(str),"[Leave] Player %s disconnected from the game.",GetName(playerid));
SendClientMessageToAll(INFO,str);

KillTimer(ElapsedTime[playerid]);

DOF2_SetInt(AC,"Money",PlayerInfo[playerid][pMoney]);
DOF2_SetInt(AC,"Kills",PlayerInfo[playerid][pKills]);
DOF2_SetInt(AC,"Deaths",PlayerInfo[playerid][pDeaths]);
DOF2_SetInt(AC,"Time",ElapsedTime[playerid]);
DOF2_SetInt(AC,"Admin",PlayerInfo[playerid][pAdmin]);
return 1;
}

Děkuji za každou radu jinak bych se chtěl ještě zeptat co je lepší jestli DOF2 nebo Dini

Link to comment
Share on other sites

3 odpovědí na tuto otázku

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...