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.
new msg[128];
{
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))
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. Код:
new msg[128]; Код:
{ Код:
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)) |
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: }
PlayerToPoint(20,playerid,-1997.9504,248.4633,31.5155)
can't you just make an if with half the PlayerToPoint and an else if?
|