Errors compiling
#1

Hello, i have few errors in compiling, maybe u know how to fix it?

Код:
C:\GRP\Grp\gamemodes\band7.pwn(8657) : error 075: input line too long (after substitutions)
C:\GRP\Grp\gamemodes\band7.pwn(8659) : error 001: expected token: ",", but found "-integer value-"
C:\GRP\Grp\gamemodes\band7.pwn(8659) : warning 215: expression has no effect
C:\GRP\Grp\gamemodes\band7.pwn(8659) : warning 215: expression has no effect
C:\GRP\Grp\gamemodes\band7.pwn(8659) : error 001: expected token: ";", but found ")"
C:\GRP\Grp\gamemodes\band7.pwn(8659) : error 029: invalid expression, assumed zero
C:\GRP\Grp\gamemodes\band7.pwn(8659) : fatal error 107: too many error messages on one line

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


5 Errors.
8657 Line:
Код:
new msg[128];
8659 Line:
Код:
{
But after 8657 and before 8659 is:
Код:
if(PlayerToPoint(20,playerid,-1997.9504,248.4633,31.5155) || PlayerToPoint(20,playerid,-2044.3632,-62.5524,36.8530) || PlayerToPoint(20,playerid,-2244.2883,5.0918,36.8595) || PlayerToPoint(20,playerid,-2293.5061,413.7183,36.7111) || PlayerToPoint(20,playerid,-2185.7832,1086.7455,57.2654) || PlayerToPoint(20,playerid,-2757.7483,971.2451,56.0001) || PlayerToPoint(20,playerid,-2713.0325,98.1342,5.8751) || PlayerToPoint(20,playerid,-2253.9551,-402.6029,52.5548) || PlayerToPoint(20,playerid,-1559.8062,486.0329,8.7189) || PlayerToPoint(20,playerid,-1994.7281,571.0565,36.7111) || PlayerToPoint(20,playerid,-2014.2764,893.0132,46.9845) || PlayerToPoint(20,playerid,-2185.8091,1086.5471,57.2654) || PlayerToPoint(20,playerid,-1812.5453,81.1547,16.6486))
It's in 1 line, maybe it's too long? D
Reply
#2

Yes, it's too long I think, try to comment the lines, and you'll see what happens
Reply
#3

Quote:
Originally Posted by Daslee
Посмотреть сообщение
Hello, i have few errors in compiling, maybe u know how to fix it?

Код:
C:\GRP\Grp\gamemodes\band7.pwn(8657) : error 075: input line too long (after substitutions)
C:\GRP\Grp\gamemodes\band7.pwn(8659) : error 001: expected token: ",", but found "-integer value-"
C:\GRP\Grp\gamemodes\band7.pwn(8659) : warning 215: expression has no effect
C:\GRP\Grp\gamemodes\band7.pwn(8659) : warning 215: expression has no effect
C:\GRP\Grp\gamemodes\band7.pwn(8659) : error 001: expected token: ";", but found ")"
C:\GRP\Grp\gamemodes\band7.pwn(8659) : error 029: invalid expression, assumed zero
C:\GRP\Grp\gamemodes\band7.pwn(8659) : fatal error 107: too many error messages on one line

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


5 Errors.
8657 Line:
Код:
new msg[128];
8659 Line:
Код:
{
But after 8657 and before 8659 is:
Код:
if(PlayerToPoint(20,playerid,-1997.9504,248.4633,31.5155) || PlayerToPoint(20,playerid,-2044.3632,-62.5524,36.8530) || PlayerToPoint(20,playerid,-2244.2883,5.0918,36.8595) || PlayerToPoint(20,playerid,-2293.5061,413.7183,36.7111) || PlayerToPoint(20,playerid,-2185.7832,1086.7455,57.2654) || PlayerToPoint(20,playerid,-2757.7483,971.2451,56.0001) || PlayerToPoint(20,playerid,-2713.0325,98.1342,5.8751) || PlayerToPoint(20,playerid,-2253.9551,-402.6029,52.5548) || PlayerToPoint(20,playerid,-1559.8062,486.0329,8.7189) || PlayerToPoint(20,playerid,-1994.7281,571.0565,36.7111) || PlayerToPoint(20,playerid,-2014.2764,893.0132,46.9845) || PlayerToPoint(20,playerid,-2185.8091,1086.5471,57.2654) || PlayerToPoint(20,playerid,-1812.5453,81.1547,16.6486))
It's in 1 line, maybe it's too long? D
it doesn't matter how long your script described in 1 line.
we need the script before line 8657, because the compiler expects ',' token.
Reply
#4

Ok i'll give all that fuction:

Код:
8655: public Matuoja(playerid)
8656: {
8657: new msg[128];
8658: if(PlayerToPoint(20,playerid,-1997.9504,248.4633,31.5155))
8659: {
8660: if(GetPlayerSpeed(playerid) >= 100)
8661: {
8662: if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
8663: {
8664: if(!playerDB[playerid][matavimas])
8665: {
8666: playerDB[playerid][matavimas]=true;
8667: SetTimer("Pamatav",3000,1);
8668: SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+2);
8669: new msg2[128],name[MAX_PLAYER_NAME];
8670: GetPlayerName(playerid,name,sizeof(name));
8671: format(msg2,sizeof(msg2),"[racija] %s Virsijo leistina greiti(100KM/H)",name);
8672: SendMessageToCops(BLUE,msg2);
8673: format(msg,128,"* Jus virsijote greiti, leistinas greitis 100 KM/H o jusu buvo %d KM/H.",GetPlayerSpeed(playerid));
8674: SendClientMessage(playerid,RED,msg);
8675: }
8676: }
8677: }
8678: return 1;
8679: }
8680: return 1;
8681: }
It's in Lithuanian language ;P forward is in script starting. And i really think it's too long, because now is just one:
Код:
PlayerToPoint(20,playerid,-1997.9504,248.4633,31.5155)
And now it's compiling successfully, but when i make 13 PlayerToPoint it has compiling errors ;//
Reply
#5

I know the problem: it's too long, i tested, i added 8 PlayerToPoint it's compiled, added 9 PlayerToPoint, and error ;// How i can add more?
Reply
#6

Pls help... Srry for trouble post ;/
Reply
#7

can't you just make an if with half the PlayerToPoint and an else if?
Reply
#8

Whoops.. double post ><
Reply
#9

Quote:
Originally Posted by gangstajoe
Посмотреть сообщение
can't you just make an if with half the PlayerToPoint and an else if?
That'd be a long and not needed code.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)