File Manager [ Help ] - 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: File Manager [ Help ] (
/showthread.php?tid=423803)
File Manager [ Help ] -
RicaNiel - 19.03.2013
Problem: [red] I don't Understand how to use this plugin I am confused [/red]
pawn Код:
new file:fop = f_open("dada.ini","r");
f_close(fop);
the errors / warnings
Код:
C:\Users\Daniel\samp\server\filterscripts\ricaniel.pwn(30) : warning 213: tag mismatch
C:\Users\Daniel\samp\server\filterscripts\ricaniel.pwn(32) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Warnings.
My Message:
Please can someone let me understand how to use this things
because i always get a warning sign
and the writing one
Re: File Manager [ Help ] -
newbienoob - 19.03.2013
The second fopen parameter is not a string
https://sampwiki.blast.hk/wiki/Fopen
Re: File Manager [ Help ] -
Misiur - 19.03.2013
pawn Код:
new file:fop
//to
new File:fop
Tags are case-sensitive
Cheerios.
@up: *khm*
https://sampforum.blast.hk/showthread.php?tid=92246
Re: File Manager [ Help ] -
newbienoob - 19.03.2013
Quote:
Originally Posted by Misiur
|
Ahh.. I didn't know about that. Sorry.
Re: File Manager [ Help ] -
RicaNiel - 19.03.2013
How can i let a string
read
ne
i always got error if i use this one also
pawn Код:
new data[500];
new File:info = f_open("sadasda/asdasdasd/dadada.ini");
test[512] = f_read(info,"asdasdasl/sadasdas/dadada.ini");
f_close(info);
Код:
C:\Users\Daniel\samp\server\filterscripts\ricaniel.pwn(27) : error 032: array index out of bounds (variable "test")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Re: File Manager [ Help ] -
Misiur - 19.03.2013
pawn Код:
native f_read(File:file, storage, sizeof(storage)); // Reads from a file opened by f_open, line by line.
Plugin topic is 16 pages long, there has to be some more information about it.
pawn Код:
new test[128]; //You don't need 512
while(f_read(info, test)) {
printf("Current line : %s", test);
}
Or simply first line
pawn Код:
new test[128], f_read(info, test);