Quote:
Originally Posted by IceCube!
+1
DO you even know pawn code?
pawn Код:
CMD:c(file[], input[]) { File:filevar; if(!fexist(file)) filevar = fopen(file, io_write); else filevar = fopen(file, io_append); if(!fexist(file)) { printf("Failed to load '%s'", file); return 0; } else { new str[512]; format(str, sizeof(str), "%s\r\n", input); fwrite(filevar, input); fclos(filevar); return 1; } }
Untested - I dont know basic SAMP file input text to file saving so this is a first
If this doesnt work wait for somone to edit it or i can make it for you in Y_INI
|
Since he wants to do it with a dialog, it's actually easier to make under ondialogresponse, since it has the "inputtext" option.