Help "extra characters on line"
#1

Help me to fix this script
[code]ERROR:: (25 line) : error 038: "extra characters on line"

[pawn]#include <a_samp>
#include <dini>
#include <zcmd>

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


file_put_contents(file[], contents[], bool: append = true, bool: addNewLine = false)
{
new File: fileHandle = fopen(file, (append) ? io_append : io_write);

if(addNewLine)
{
fwrite(fileHandle, "\r\n");
}

fwrite(fileHandle, contents);
fclose(fileHandle);
}

25LINE-----#pragma unused file_put_contents("filename.ini", "hello world", addNewLine = true);

//ret_memcpy
#pragma unused ret_memcpy
{/pawn]




2--How to fix this?[/SIZE]

Reply
#2

What in the hell is this supposed to do? Looks like piece of your code was eaten by aliens. #pragma unused expects sing variable (and no other characters in line)
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)