Saving Y_INI
#1

<Fixed>
Reply
#2

Erm when you do the gmx command, simply add a timer for example 2 seconds timer is enough!

pawn Код:
CMD:gmx(playerid)
{
    SaveUserDate(playerid);
    SetTimer(#Restart, 2 * 1000, 0);
}

forward Restart();
public Restart()
{
     SendRconCommand(#gmx);
}
Simple is it? Should be working.
Reply
#3

<Fixed>
Reply
#4

Anything else that saves the skin, or anything that writes the skin, etc ?
Reply
#5

remove from command
SendRconCommand("gmx");
and add
pawn Код:
forward Gmx();
public Gmx()
{
          SendRconCommand("gmx");
          return 1;
}
Reply
#6

<Fixed>
Reply
#7

pawn Код:
public OnGameModeExit()
{
    foreach (Player,i)
    {
        SaveUserDate(i);
    }
//Saving function here
    printf("[INFO]: Gamemode Restarted.");
    return 1;
}
Reply
#8

<Fixed>
Reply
#9

Quote:
Originally Posted by Zh3r0
Посмотреть сообщение
Erm when you do the gmx command, simply add a timer for example 2 seconds timer is enough!

pawn Код:
CMD:gmx(playerid)
{
    SaveUserDate(playerid);
    SetTimer(#Restart, 2 * 1000, 0);
}

forward Restart();
public Restart()
{
     SendRconCommand(#gmx);
}
Simple is it? Should be working.
What does the "#" symbol do?
Reply
#10

Quote:
Originally Posted by jameskmonger
Посмотреть сообщение
What does the "#" symbol do?
Yes try
pawn Код:
SendRconCommand("gmx");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)