help me please... - 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: help me please... (
/showthread.php?tid=385704)
help me please... -
tomsalmon - 17.10.2012
it is the "new" line:
PHP код:
new ActNameis[] = "";
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:
PHP код:
stock ActFile(ActName[])
{
format(file, sizeof(file), "InfinityDM/Acts/%s.ini", ActName);
return file;
}
i make it will save in "Name":
PHP код:
ActNameis = inputtext;
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 код:
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));
}
}