[UPDATED LINES]: expected token: "-string end-", but found "-identifier-" HELP PLEASE -
LoLeRo - 15.05.2013
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
Respuesta: help: error 001: expected token: "-string end-", but found "-identifier-" -
LoLeRo - 15.05.2013
new File:filee = fopen(fpath, io_append);
Re: help: error 001: expected token: "-string end-", but found "-identifier-" -
radiobizza - 15.05.2013
Add to line 16805 this:
Respuesta: Re: help: error 001: expected token: "-string end-", but found "-identifier-" -
LoLeRo - 15.05.2013
Quote:
Originally Posted by radiobizza
|
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-"
Respuesta: help: error 001: expected token: "-string end-", but found "-identifier-" -
LoLeRo - 15.05.2013
HELP PLEASE! My free time is ending!
EDIT: I will +rep :DD
Re: help: error 001: expected token: "-string end-", but found "-identifier-" -
MP2 - 15.05.2013
I have a feeling that you may have defined 'FileLog' as a macro/function.
Respuesta: help: error 001: expected token: "-string end-", but found "-identifier-" -
LoLeRo - 15.05.2013
I only use "FileLog" in the function i posted D:
How i will fix this error? D:
Respuesta: help: error 001: expected token: "-string end-", but found "-identifier-" -
LoLeRo - 22.05.2013
/bump .________.
Re: help: error 001: expected token: "-string end-", but found "-identifier-" -
Guest123 - 22.05.2013
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
so add
Re: help: error 001: expected token: "-string end-", but found "-identifier-" -
Guest123 - 23.05.2013
its work dude ? i just ask, if not i can help again