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: Errors (
/showthread.php?tid=435367)
Errors -
NoahF - 06.05.2013
When i try to compile I get these errors:
Код:
C:\Users\Noah\Desktop\[SK] DM SERVER\gamemodes\zma.pwn(2957) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Noah\Desktop\[SK] DM SERVER\gamemodes\zma.pwn(2957) : warning 215: expression has no effect
C:\Users\Noah\Desktop\[SK] DM SERVER\gamemodes\zma.pwn(2957) : error 001: expected token: ";", but found "-string-"
C:\Users\Noah\Desktop\[SK] DM SERVER\gamemodes\zma.pwn(2957) : warning 215: expression has no effect
C:\Users\Noah\Desktop\[SK] DM SERVER\gamemodes\zma.pwn(2957) : error 001: expected token: ";", but found ")"
C:\Users\Noah\Desktop\[SK] DM SERVER\gamemodes\zma.pwn(2957) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
This is the line:
Код:
format(string, sizeof(string), ""chat""COLOR_RED" %s %s has killed %s",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid));
Re: Errors -
Facerafter - 06.05.2013
error 001: expected token: "-string end-", but found "-identifier-"
Isn't that you forgot the ";" on the previous line?
Re: Errors -
NoahF - 06.05.2013
Yes, but can somebody please fix it it's important.
Re: Errors -
Facerafter - 06.05.2013
Quote:
Originally Posted by NoahF
Yes, but can somebody please fix it it's important.
|
So did you forget the ";" on the previous line 2956 ?
Re: Errors -
RajatPawar - 06.05.2013
pawn Код:
#define COL_RED "{F81414}"
format(string, sizeof(string), " "#COL_RED"%s %s has killed %s",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid));
Re: Errors -
NoahF - 06.05.2013
Did you close off the last quotation marks?
Re: Errors -
NoahF - 06.05.2013
I FIXED IT