17.10.2012, 12:09
it is the "new" line:
OnDialogResponse:
the player make the command: /Act
and dialog shows and him need to write a name to the Activity, and it's save on this file:
i make it will save in "Name":
and then, new dialog show to the player, and there he have to write the amount of money to the winner, and it will save on the Act File with the name i wrote in last dialog. and i don't know what to write in:
PHP код:
new ActNameis[] = "";
the player make the command: /Act
and dialog shows and him need to write a name to the Activity, and it's save on this file:
PHP код:
stock ActFile(ActName[])
{
format(file, sizeof(file), "InfinityDM/Acts/%s.ini", ActName);
return file;
}
PHP код:
ActNameis = inputtext;
PHP код:
if(dialogid == 4501)
{
if(!response) return 0;
if(response)
{
dini_Create(ActFile(inputtext));
dini_Set(ActFile(inputtext),"Name",inputtext);
dini_Set(ActFile(inputtext),"ManageBy",GetName(playerid));
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
dini_FloatSet(ActFile(inputtext),"X",X);
dini_FloatSet(ActFile(inputtext),"Y",Y);
dini_FloatSet(ActFile(inputtext),"Z",Z);
ActNameis = inputtext;
ShowPlayerDialog(playerid,4502,DIALOG_STYLE_INPUT,"~~~ отшлъ фтймейеъ ~~~","шщен аъ слен джлййд морцз бфтймеъ","айщеш","йцйад");
}
}
if(dialogid == 4502)
{
if(!response) return 0;
if(response)
{
dini_IntSet(ActFile(HERE!!!!!!!!!!!!!!!!!!!!!!!??? WHAT WRITE?),"[/COLOR]WinMoney",strval(inputtext));
}
}

