help: error 001: expected token: "-string end-", but found "-identifier-"
#1

I have some problems with my script:

pawn Код:
new Log[400];
new Path[70];
new File:FileLog; //error line
new Year,Month,Day;
getdate(Year,Month,Day);
format(Path, 70, "ladmin/logs/%s.txt", filename);
format(Log,500,"[%d.%d.%d] %s\r\n",Day,Month,Year, text);

FileLog = fopen(Path,io_append);

fwrite(FileLog,Log);
fclose(FileLog)
Errors & warnings:

Код:
SVDIR\gamemodes\projectGM\tdb8.8v.pwn(16804) : error 001: expected token: "-string end-", but found "-identifier-"
Can you explain me what is wrong?

Thanks!

UPDATED
Reply
#2

new File:filee = fopen(fpath, io_append);
Reply
#3

Add to line 16805 this:
PHP код:
#endif 
Reply
#4

Quote:
Originally Posted by radiobizza
Посмотреть сообщение
Add to line 16805 this:
PHP код:
#endif 
I dont have any "#if" in these lines.

****** i cant fix my code, please anyone help me!


EDIT: New lines:

pawn Код:
new Log[400];
new Path[70];
new File:FileLog; //error line
new Year,Month,Day;
getdate(Year,Month,Day);
format(Path, 70, "ladmin/logs/%s.txt", filename);
format(Log,500,"[%d.%d.%d] %s\r\n",Day,Month,Year, text);

FileLog = fopen(Path,io_append);

fwrite(FileLog,Log); \
fclose(FileLog)
The error stills:

Код:
C:\Documents and Settings\Oscar Montes\Escritorio\SERVERS\SERVER3\gamemodes\proyectGM\tdb8.8v.pwn(16805) : error 001: expected token: "-string end-", but found "-identifier-"
Reply
#5

HELP PLEASE! My free time is ending!

EDIT: I will +rep :DD
Reply
#6

I have a feeling that you may have defined 'FileLog' as a macro/function.
Reply
#7

I only use "FileLog" in the function i posted D:

How i will fix this error? D:
Reply
#8

/bump .________.
Reply
#9

pawn Код:
new Log[400];
new Path[70];
new File:FileLog; //error line
new Year,Month,Day;
getdate(Year,Month,Day);
format(Path, 70, "ladmin/logs/%s.txt", filename);
format(Log,500,"[%d.%d.%d] %s\r\n",Day,Month,Year, text);

FileLog = fopen(Path,io_append);

fwrite(FileLog,Log);
fclose(FileLog);
try it dude

you miss ; at
pawn Код:
fclose(FileLog)
so add

pawn Код:
fclose(FileLog);
Reply
#10

its work dude ? i just ask, if not i can help again
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)