Jail time problem - 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: Jail time problem (
/showthread.php?tid=407869)
Jail time problem -
nor15 - 15.01.2013
when i make the dini , jailTime =1
then i been released from jail , then i relog it jail me again
Код:
if(GetPVarInt(i, "Jailed") == 1 && GetPVarInt(i, "JailTime") < 0)
{
SetPlayerPos(i, 237.110794, 111.975547, 1003.218750);
SetPlayerInterior(i, 10);
new string[120];
format(string, 120, "[PRISON] %s has been auto released from prison.", PlayerInfo(i));
SendClientMessageToAll(COLOR_LIGHTBLUE, string);
CNR_PrintString(string);
SetPVarInt(i, "Jailed", 0);
SetPVarInt(i, "JailTime", 0);
}
Re : Jail time problem -
yusei - 15.01.2013
delete
Re: Jail time problem -
nor15 - 15.01.2013
delete what ?
Re : Jail time problem -
yusei - 15.01.2013
sorry I dipped the post
Re: Jail time problem -
Scrillex - 15.01.2013
Because it didnt save the change of releasing..... It didnt change to 0.. OnPlayerDissconnect just you need to put to update it or onplayerupdate. Put the code to reupdate that you are released!
Re: Jail time problem -
nor15 - 15.01.2013
Quote:
Originally Posted by Scrillex
Because it didnt save the change of releasing..... It didnt change to 0.. OnPlayerDissconnect just you need to put to update it or onplayerupdate. Put the code to reupdate that you are released!
|
so can you give me a code
Re: Jail time problem -
nor15 - 16.01.2013
anyone help please ??