Dini question :(
#1

I am making a script so when people are in jail and if they die or disconnect, they go back to jail when they come back.

When he goes to jail a variable called JailTime will determine how long he is in jail.


When he goes to jail
Код:
JailTime=320;
dini_IntSet("/JailTime/Jail.ini", playername, JailTime); // will this show up as playername=320(or whatever his time is??)
When he spawns
Код:
OnPlayerSpawn(playerid)
{
	if(dini_Int("/JailTime/Jail.ini", playername) != 0) //checking if he has time left
	{
		SetPlayerPos(...
		dini_Int("JailTime/Jail.ini", playername); //gets stuff from his jailtime (playername=wateva)
		JailTime=JailTime; //will that work? its getting the varriable stored inside the .ini file ^^ and putting it in the jailtime varriable in the script. ..
	return 1;
}
thanks a lot
Reply


Messages In This Thread
Dini question :( - by Yoyoyo - 22.08.2009, 00:29
Re: Dini question :( - by Gamer_Z - 22.08.2009, 00:57

Forum Jump:


Users browsing this thread: 1 Guest(s)