#1

deleted
Reply
#2

Please
Reply
#3

these is a fs for it . ****** samp ******* player
Reply
#4

I now how to make DIALOG but i cannot find how to make that it will safe the link
Reply
#5

load the links in a .txt file
Reply
#6

I dont now how to make that i will safe the link who player insert in DIALOG_STYLE_INPUT
Reply
#7

try search for dini tutorials, its used for data storeage like your car info (x,y,z, etc.)
Reply
#8

pawn Код:
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);
}
Usage:

pawn Код:
file_put_contents("filename.txt", "hello world", .addNewLine = true);
Not tested, wrote this up quickly.
Reply
#9

Код:
(25) : error 038: extra characters on line
I have got this code


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
Reply
#10

Plese help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)