SA-MP Forums Archive
Help 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: Help Errors. (/showthread.php?tid=507019)



Help Errors 1+ REP - VanSiera - 15.04.2014

How to fix this.
Код:
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(28729) : error 001: expected token: ",", but found "-identifier-"
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(28729) : error 076: syntax error in the expression, or invalid function call
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(28729) : error 029: invalid expression, assumed zero
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(28729) : fatal error 107: too many error messages on one line

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


4 Errors.
Код:
format(string,sizeof(string),"{8C831F} #%d - {DBCE40}%s By %s",i+1,TopRaceDrivers[raceid][i],(TopRaceTimes[raceid][i]) GetTimeAsStringEx);



Re: Help Errors. - LocMax - 15.04.2014

Код:
format(string,sizeof(string),"{8C831F} #%d - {DBCE40}%s By %s",i+1,TopRaceDrivers[raceid][i],TopRaceTimes[raceid][i], GetTimeAsStringEx);



Re: Help Errors. - VanSiera - 15.04.2014

now have 1error Help Please


Код:
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(28729) : error 076: syntax error in the expression, or invalid function call
Код:
format(string,sizeof(string),"{8C831F} #%d - {DBCE40}%s By %s",i+1,TopRaceDrivers[raceid][i],TopRaceTimes[raceid][i], GetTimeAsStringEx);



Re: Help Errors. - VanSiera - 15.04.2014

Help


Re: Help Errors. - PrivatioBoni - 15.04.2014

Well, I've noticed with LocMax's code, there is a missing closing bracket. I'm not sure if this will solve the problem though.

pawn Код:
format(string,sizeof(string),"{8C831F} #%d - {DBCE40}%s By %s",i+1,TopRaceDrivers[raceid][i],TopRaceTimes[raceid][i], GetTimeAsStringEx));
See what that gives you.


Re: Help Errors. - VanSiera - 15.04.2014

Quote:
Originally Posted by PrivatioBoni
Посмотреть сообщение
Well, I've noticed with LocMax's code, there is a missing closing bracket. I'm not sure if this will solve the problem though.

pawn Код:
format(string,sizeof(string),"{8C831F} #%d - {DBCE40}%s By %s",i+1,TopRaceDrivers[raceid][i],TopRaceTimes[raceid][i], GetTimeAsStringEx));
See what that gives you.
dont work this now have 2 errors :P


AW: Help Errors. - Macronix - 15.04.2014

What is GetTimeAsStringEx ? Can you show me the function?


Re: Help Errors. - PrivatioBoni - 15.04.2014

Quote:
Originally Posted by VanSiera
Посмотреть сообщение
dont work this now have 2 errors :P
And.. what are they?

Sometimes 1 error is worse than 10 errors.


Re: Help Errors. - Konstantinos - 15.04.2014

GetTimeAsStringEx is a function and it must be called with () and its parameters (if it has any).


Re: Help Errors. - VanSiera - 15.04.2014

Код:
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(28729) : error 001: expected token: ",", but found ";"
Код:
format(string,sizeof(string),"{8C831F} #%d - {DBCE40}%s By %s",i+1,TopRaceDrivers[raceid][i],TopRaceTimes[raceid][i],GetTimeAsStringEx();