File Manager [ Help ]
#1

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

The second fopen parameter is not a string
https://sampwiki.blast.hk/wiki/Fopen
Reply
#3

pawn Код:
new file:fop
//to
new File:fop
Tags are case-sensitive
Cheerios.

@up: *khm* https://sampforum.blast.hk/showthread.php?tid=92246
Reply
#4

Quote:
Originally Posted by Misiur
Посмотреть сообщение
Ahh.. I didn't know about that. Sorry.
Reply
#5

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.
Reply
#6

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);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)