05.11.2012, 22:46
After my problem from yesterday which could be found here, I decided to add the gmx function and move on, but for my gmx function I took out the Kick() part and the weapons would not save again but they would if I kicked the person. I even tried editing it a bit so that if the gmx() function is called, no stats would be saved on disconnect.
(To long^?)
Weapons still won't save on gmx even if I have it modified to not save on disconnect/gmx at the same time.
(To long^?)
Weapons still won't save on gmx even if I have it modified to not save on disconnect/gmx at the same time.
pawn Код:
//under disconnect
if(Restarting == 0)
{
if(Logged[playerid] == 1)
{
SavePlayerData(playerid);
}
}
stock gmx()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
Restarting = true;
SavePlayerData(i);
// Kick(i);
}
}
SendRconCommand("gmx");
}