SA-MP Forums Archive
Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Other (https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: Help (/showthread.php?tid=425440)



Help - kalanerik99 - 25.03.2013

I have got this code

pawn Код:
#include <a_samp>
#include <dini>
#include <zcmd>
#pragma unused ret_memcpy


CMD:myradio(playerid, params[])
{
ShowPlayerDialog(playerid,10000, DIALOG_STYLE_INPUT, "YT LINK", "Enter your ******* LINK:", "OK", "Cancel");
return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 10000)
{
if(!response)
{
switch(listitem)
{
case 0:file_put_contents("Links.ini", "Hello world!", .addNewLine = true);
}
}
}
return 1;
}


And this errors can someone fix it

Код:
(21) : error 017: undefined symbol "file_put_contents"
(21) : error 029: invalid expression, assumed zero
(21) : warning 215: expression has no effect
(25) : error 010: invalid function or declaration