SA-MP Forums Archive
Help "extra characters on line" - 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 "extra characters on line" (/showthread.php?tid=424493)



Help "extra characters on line" - kalanerik99 - 22.03.2013

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]




Re: Help "extra characters on line" - Misiur - 22.03.2013

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)