GRRRR : ERRORS
#1

Код:
C:\Users\Leon\Desktop\Spreee.pwn(187) : error 010: invalid function or declaration
C:\Users\Leon\Desktop\Spreee.pwn(189) : error 010: invalid function or declaration
C:\Users\Leon\Desktop\Spreee.pwn(192) : error 054: unmatched closing brace ("}")
C:\Users\Leon\Desktop\Spreee.pwn(194) : error 010: invalid function or declaration
C:\Users\Leon\Desktop\Spreee.pwn(216) : error 017: undefined symbol "ETL"
C:\Users\Leon\Desktop\Spreee.pwn(239) : error 017: undefined symbol "ETL"
C:\Users\Leon\Desktop\Spreee.pwn(244) : error 017: undefined symbol "ETL"
C:\Users\Leon\Desktop\Spreee.pwn(249) : error 017: undefined symbol "ETL"
C:\Users\Leon\Desktop\Spreee.pwn(254) : error 017: undefined symbol "ETL"
C:\Users\Leon\Desktop\Spreee.pwn(259) : error 017: undefined symbol "ETL"
C:\Users\Leon\Desktop\Spreee.pwn(264) : error 017: undefined symbol "ETL"
C:\Users\Leon\Desktop\Spreee.pwn(275) : error 017: undefined symbol "ETL"
C:\Users\Leon\Desktop\Spreee.pwn(280) : error 017: undefined symbol "ETL"
C:\Users\Leon\Desktop\Spreee.pwn(285) : error 017: undefined symbol "ETL"
C:\Users\Leon\Desktop\Spreee.pwn(290) : error 017: undefined symbol "ETL"
C:\Users\Leon\Desktop\Spreee.pwn(295) : error 017: undefined symbol "ETL"
C:\Users\Leon\Desktop\Spreee.pwn(300) : error 017: undefined symbol "ETL"
C:\Users\Leon\Desktop\Spreee.pwn(311) : error 017: undefined symbol "ETL"
C:\Users\Leon\Desktop\Spreee.pwn(316) : error 017: undefined symbol "ETL"
Thats pawn code
Код:
stock ETL(playerid,msg[])
{
new name[256];
GetPlayerName(playerid,name,256);
new ye,mo,da,ho,mi,se;
gettime(ho,mi,se);
getdate(ye,mo,da);
new f1[256];
format(f1,256,"%s %s Date: %d / %d / %d Time: %d : %d : %d",name,msg,da,mo,ye,ho,mi,se);
new File:Evo=fopen("evotunelog.txt",io_append);
fwrite(Evo,f1);
fclose(Evo);
}
Reply
#2

stock ETL(playerid, msg[])
{
new
name[MAX_PLAYER_NAME], // use MAX_PLAYER_NAME for names... 256 is unneeded...
ye,
mo,
da,
ho,
mi,
se
f1[128], // 128 is all you need...
File: Evo=fopen("evotunelog.txt", io_append);
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
gettime(ho, mi, se);
getdate(ye, mo, da);
format(f1, 128, "%s %s Date: %d / %d / %d Time: %d : %d : %d\n", name, msg, da, mo, ye, ho, mi, se);
fwrite(Evo, f1);
fclose(Evo);
return 1;
}
Reply
#3

Errors
Quote:

C:\Users\Leon\Desktop\Spreee.pwn(981) : error 001: expected token: ";", but found "-identifier-"
C:\Users\Leon\Desktop\Spreee.pwn(981) : error 017: undefined symbol "f1"
C:\Users\Leon\Desktop\Spreee.pwn(981) : warning 215: expression has no effect
C:\Users\Leon\Desktop\Spreee.pwn(981) : error 001: expected token: ";", but found "]"
C:\Users\Leon\Desktop\Spreee.pwn(981) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Reply
#4

Can you please post the lines?
Reply
#5

// Nevermind, I found the mistake.

stock ETL(playerid, msg[])
{
new
name[MAX_PLAYER_NAME],
ye,
mo,
da,
ho,
mi,
se, // Missed the comma =o
f1[128],
File: Evo=fopen("evotunelog.txt", io_append);
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
gettime(ho, mi, se);
getdate(ye, mo, da);
format(f1, 128, "%s %s Date: %d / %d / %d Time: %d : %d : %d\n", name, msg, da, mo, ye, ho, mi, se);
fwrite(Evo, f1);
fclose(Evo);
return 1;
}
Reply
#6

it says:
Quote:

undefined symbol "ETL"

Need Define: ?
Reply
#7

It's a callback, so no.

Meybe you forgot to add the rest of that line or just delete it and see what happens.
Reply
#8

Your code looks fine to me.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)