SA-MP Forums Archive
GRRRR : ERRORS - 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: GRRRR : ERRORS (/showthread.php?tid=288073)



GRRRR : ERRORS - Salsa - 06.10.2011

Код:
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);
}



Re: GRRRR : ERRORS - TheLazySloth - 06.10.2011

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;
}


Re: GRRRR : ERRORS - Salsa - 06.10.2011

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.




Re: GRRRR : ERRORS - TheLazySloth - 06.10.2011

Can you please post the lines?


Re: GRRRR : ERRORS - TheLazySloth - 06.10.2011

// 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;
}


Re: GRRRR : ERRORS - Salsa - 06.10.2011

it says:
Quote:

undefined symbol "ETL"

Need Define: ?


Re: GRRRR : ERRORS - TheLazySloth - 06.10.2011

It's a callback, so no.

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


Re: GRRRR : ERRORS - HyperZ - 06.10.2011

Your code looks fine to me.