Jail time problem
#1

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);
			}
Reply
#2

delete
Reply
#3

delete what ?
Reply
#4

sorry I dipped the post
Reply
#5

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!
Reply
#6

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
Reply
#7

anyone help please ??
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)