21.04.2013, 15:09
Hi
Can someone tell me why it wont make me links.sav file when I put the link into DIALOG_INPUT
Can someone tell me why it wont make me links.sav file when I put the link into DIALOG_INPUT
PHP код:
#include <a_samp>
#include <dini>
#include <zcmd>
#define links "LINKS/link.sav"
CMD:myradio(playerid, params[])
{
ShowPlayerDialog(playerid,1000010, DIALOG_STYLE_INPUT, "YT LINK", "Enter your ******* LINK:", "OK", "Cancel");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1000010)
{
if(!response)
{
switch(listitem)
{
case 0:
{
new idt[100],ft[256];
format(ft,sizeof(ft),"%s",inputtext);
dini_Set(links,idt,ft);
}
}
}
}
return 1;
}