Dini help
#1

How to make that this saves to "server/scriptfiles/Fightstyles/"

Код:
public OnPlayerConnect(playerid)
{
	SendClientMessage(playerid, COLOR_RED, "This server contains a system that allows you to choose a style for the fight, use /FightStyles to choose your!");

	GetPlayerName(playerid,pname,30);
    if(!dini_Exists(pname))
    	dini_Create(pname);
    else if(dini_Exists(pname))
    {
        FightStyle[playerid] = dini_Int(pname,"FightStyle");
	}
	
	return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
	GetPlayerName(playerid,pname,30);
    dini_IntSet(pname,"FightStyle", FightStyle[playerid]);

	return 1;
}
I try to find fith search dini.inc but it gets other stuff... i can't find

Please help i hope this is easy
Reply


Messages In This Thread
Dini help - by sMog. - 17.03.2011, 17:54
Re: Dini help - by Stigg - 17.03.2011, 17:58
Re: Dini help - by Calgon - 17.03.2011, 18:00
Re: Dini help - by sMog. - 17.03.2011, 18:11
Respuesta: Dini help - by Code8976Man - 17.03.2011, 18:13
Re: Dini help - by sMog. - 17.03.2011, 21:56
Re: Dini help - by sMog. - 19.03.2011, 10:22

Forum Jump:


Users browsing this thread: 2 Guest(s)