Saving Y_INI - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Saving Y_INI (
/showthread.php?tid=281322)
Saving Y_INI [Solved] -
Kingunit - 05.09.2011
<Fixed>
Re: Saving Y_INI -
Zh3r0 - 05.09.2011
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.
Re: Saving Y_INI -
Kingunit - 05.09.2011
<Fixed>
Re: Saving Y_INI -
Darnell - 05.09.2011
Anything else that saves the skin, or anything that writes the skin, etc ?
Re: Saving Y_INI -
System64 - 05.09.2011
remove from command
SendRconCommand("gmx");
and add
pawn Код:
forward Gmx();
public Gmx()
{
SendRconCommand("gmx");
return 1;
}
Re: Saving Y_INI -
Kingunit - 05.09.2011
<Fixed>
Re: Saving Y_INI -
Darnell - 05.09.2011
pawn Код:
public OnGameModeExit()
{
foreach (Player,i)
{
SaveUserDate(i);
}
//Saving function here
printf("[INFO]: Gamemode Restarted.");
return 1;
}
Re: Saving Y_INI -
Kingunit - 05.09.2011
<Fixed>
Re: Saving Y_INI -
jameskmonger - 05.09.2011
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?
Re: Saving Y_INI -
SantarioLeone - 05.09.2011
Quote:
Originally Posted by jameskmonger
What does the "#" symbol do?
|
Yes try