Help with Compiler Message
#1

To be honest guys i dont know what i have done wrong

Here is the code:
Код:
.pwn(50) : error 001: expected token: ";", but found "-identifier-"
If you need me to copy a part to show you i'm happy to do so
Reply
#2

go to line 50 and copy it and show us. the
Код:
.pwn(50)
shows that you need to go to the line 50 and show us the problem.
Reply
#3

Quote:
If you need me to copy a part to show you i'm happy to do so
Please, show the line "50".
Reply
#4

Quote:
Originally Posted by ExeC
Посмотреть сообщение
Please, show the line "60".
you mean 50 :P

its (50) not (60) ^^

or is that u pressed the wrong button :P

EDIT:

Quote:
Originally Posted by ExeC
Посмотреть сообщение
Please, show the line "50".
wrong button? ^^
Reply
#5

Here is line 50
Код:
main()
{
	print("\n----------------------------------");
	print(" Lscnr Cops And Robbers             ");
	print("----------------------------------\n");
}
Here is line 60
Код:
public OnGameModeInit()
{
	// Don't use these lines if it's a filterscript
	SetGameModeText("Cops And Robbers");
Reply
#6

Quote:
Originally Posted by jonnyboy
Посмотреть сообщение
you mean 50 :P

its (50) not (60) ^^

or is that u pressed the wrong button :P
Yeah, sorry, i pressed the wrong button.
Reply
#7

Generally this error means that your missing a semicolon before the error line. Thus you'll have to show us line 50 and some lines before it.

Also ExeC, what does line 60 have to do with anything?

Edit:

Keep showing us script before the main().
Reply
#8

Here is a big chunk you wanted
Код:
#include <a_samp>
#include <colors>

#define COLOR_LIGHTBLUE 0x00FFFFFF;
#define COLOR_ORANGE 0xFF9900FF
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_RED 0xFF0000AA
#define lightblue 0x33CCFFAA
#define red 0xFF0000AA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_BLUEVIOLET 0x8A2BE2AA
#define COLOR_DEADCONNECT 0x808080AA
#define COLOR_BLUE 0x0000FFAA
#define COLOR_FORESTGREEN 0x228B22AA
#define COLOR_DODGERBLUE 0x1E90FFAA
#define COLOR_DARKOLIVEGREEN 0x556B2FAA
#define COLOR_PURPLE 0x800080AA
#define COLOR_ROYALBLUE 0x4169FFAA
#define COLOR_ERROR 0xD2691EAA
#define TEAM_ROBBERS 0
#define TEAM_POLICE 1
#define TEAM_SWAT 2
#define TEAM_ARMY 3
#define TEAM_ROBBERS_COLOUR 0xFFFFFFAA // White
#define TEAM_POLICE_COLOUR 0x0000FFAA // Blue
#define TEAM_SWAT_COLOUR 0x800080AA // Purple
#define TEAM_ARMY_COLOUR 0x33AA33AA // Green
new gTeam[MAX_PLAYERS]

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Blank Filterscript by your name here");
	print("--------------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

#else

main()
{
	print("\n----------------------------------");
	print(" Lscnr Cops And Robbers             ");
	print("----------------------------------\n");
}
Reply
#9

Change this line:

pawn Код:
new gTeam[MAX_PLAYERS]
To:

pawn Код:
new gTeam[MAX_PLAYERS];
You where just missing a semicolon.
Reply
#10

Quote:

Also ExeC, what does line 60 have to do with anything?

As i said, i pressed the wrong button.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)