25.03.2013, 17:41
I have got this code
And this errors can someone fix it
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