[HELP] Help me with this small error please :)
#1

Heres the error, hope you can help me
Код:
C:\Server\filterscripts\lol.pwn(4501) : error 075: input line too long (after substitutions)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

1 Error.
Heres the error line
Код:
(4501)if(!strlen(params)) return SendClientMessage(playerid, red, "Usage: /p (Text)"); //I think this is wrong row because just after it comes something i will show below.
Heres the whole command
Код:
(4493)dcmd_p(playerid,params[])
(4494){
(4495)  new vehicleid;
(4496)
(4497)  for (new i = 0; i < MAX_PLAYERS; i++)
(4498)  {
(4499)    vehicleid = GetPlayerVehicleID(i);
(4500)    if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, red, "Error: Well at least you need to be in a vehicle >_<");
(4501)    if(!strlen(params)) return SendClientMessage(playerid, red, "Usage: /p (Text)");
(4502)    if(GetVehicleModel(vehicleid) == 417 || GetVehicleModel(vehicleid) == 425 || GetVehicleModel(vehicleid) == 447 || GetVehicleModel(vehicleid) == 460 || GetVehicleModel(vehicleid) == 464 || GetVehicleModel(vehicleid) == 465 || GetVehicleModel(vehicleid) == 469 || GetVehicleModel(vehicleid) == 476 || GetVehicleModel(vehicleid) == 487 || GetVehicleModel(vehicleid) == 488 || GetVehicleModel(vehicleid) == 497 || GetVehicleModel(vehicleid) == 501 || GetVehicleModel(vehicleid) == 511 || GetVehicleModel(vehicleid) == 512 || GetVehicleModel(vehicleid) == 513 || GetVehicleModel(vehicleid) == 519 || GetVehicleModel(vehicleid) == 520 || GetVehicleModel(vehicleid) == 548 || GetVehicleModel(vehicleid) == 553 || GetVehicleModel(vehicleid) == 563 || GetVehicleModel(vehicleid) == 577 || GetVehicleModel(vehicleid) == 592 || GetVehicleModel(vehicleid) == 593 || GetVehicleModel(vehicleid) == 488)
(4503)    {
(4504)      new string[128], pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName, sizeof(pName));
(4505)      format(string,sizeof(string),"Pilot Chat: %s: %s",pName, params); SendClientMessage(i,green,string);
(4506)    }
(4507)    return 1;
(4508)  }
(4509)  return 1;
(4510)}
Reply
#2

4502 line is too long just try to make it short .
Reply
#3

Quote:
Originally Posted by _Saif_
4502 line is too long just try to make it short .
How can i make it short? I need that thing, all of it >_<
Reply
#4

Quote:
Originally Posted by [NWA
Hannes ]
Quote:
Originally Posted by _Saif_
4502 line is too long just try to make it short .
How can i make it short? I need that thing, all of it >_<
i think if thats your last line you needed to put return 0;
not return 1 hope this helps!
Reply
#5

Quote:
Originally Posted by Micko9
Quote:
Originally Posted by [NWA
Hannes ]
Quote:
Originally Posted by _Saif_
4502 line is too long just try to make it short .
How can i make it short? I need that thing, all of it >_<
i think if thats your last line you needed to put return 0;
not return 1 hope this helps!
Tryed to return 0; But i still get the same error
Reply
#6

Simple, instead of your code:
Quote:
Originally Posted by [NWA
Hannes ]
pawn Код:
if(GetVehicleModel(vehicleid) == 417 || GetVehicleModel(vehicleid) == 425 || GetVehicleModel(vehicleid) == 447 || GetVehicleModel(vehicleid) == 460 || GetVehicleModel(vehicleid) == 464 || GetVehicleModel(vehicleid) == 465 || GetVehicleModel(vehicleid) == 469 || GetVehicleModel(vehicleid) == 476 || GetVehicleModel(vehicleid) == 487 || GetVehicleModel(vehicleid) == 488 || GetVehicleModel(vehicleid) == 497 || GetVehicleModel(vehicleid) == 501 || GetVehicleModel(vehicleid) == 511 || GetVehicleModel(vehicleid) == 512 || GetVehicleModel(vehicleid) == 513 || GetVehicleModel(vehicleid) == 519 || GetVehicleModel(vehicleid) == 520 || GetVehicleModel(vehicleid) == 548 || GetVehicleModel(vehicleid) == 553 || GetVehicleModel(vehicleid) == 563 || GetVehicleModel(vehicleid) == 577 || GetVehicleModel(vehicleid) == 592 || GetVehicleModel(vehicleid) == 593 || GetVehicleModel(vehicleid) == 488)
{
  // code..
}
use this:
pawn Код:
if(GetVehicleModel(vehicleid) == 417 || GetVehicleModel(vehicleid) == 425 || GetVehicleModel(vehicleid) == 447
|| GetVehicleModel(vehicleid) == 460 || GetVehicleModel(vehicleid) == 464 || GetVehicleModel(vehicleid) == 465
|| GetVehicleModel(vehicleid) == 469 || GetVehicleModel(vehicleid) == 476 || GetVehicleModel(vehicleid) == 487
|| GetVehicleModel(vehicleid) == 488 || GetVehicleModel(vehicleid) == 497 || GetVehicleModel(vehicleid) == 501
|| GetVehicleModel(vehicleid) == 511 || GetVehicleModel(vehicleid) == 512 || GetVehicleModel(vehicleid) == 513
|| GetVehicleModel(vehicleid) == 519 || GetVehicleModel(vehicleid) == 520 || GetVehicleModel(vehicleid) == 548
|| GetVehicleModel(vehicleid) == 553 || GetVehicleModel(vehicleid) == 563 || GetVehicleModel(vehicleid) == 577
|| GetVehicleModel(vehicleid) == 592 || GetVehicleModel(vehicleid) == 593 || GetVehicleModel(vehicleid) == 488)
{
  // code..
}
Reply
#7

Quote:
Originally Posted by Don Correlli
Simple, instead of your code:
Quote:
Originally Posted by [NWA
Hannes ]
pawn Код:
if(GetVehicleModel(vehicleid) == 417 || GetVehicleModel(vehicleid) == 425 || GetVehicleModel(vehicleid) == 447 || GetVehicleModel(vehicleid) == 460 || GetVehicleModel(vehicleid) == 464 || GetVehicleModel(vehicleid) == 465 || GetVehicleModel(vehicleid) == 469 || GetVehicleModel(vehicleid) == 476 || GetVehicleModel(vehicleid) == 487 || GetVehicleModel(vehicleid) == 488 || GetVehicleModel(vehicleid) == 497 || GetVehicleModel(vehicleid) == 501 || GetVehicleModel(vehicleid) == 511 || GetVehicleModel(vehicleid) == 512 || GetVehicleModel(vehicleid) == 513 || GetVehicleModel(vehicleid) == 519 || GetVehicleModel(vehicleid) == 520 || GetVehicleModel(vehicleid) == 548 || GetVehicleModel(vehicleid) == 553 || GetVehicleModel(vehicleid) == 563 || GetVehicleModel(vehicleid) == 577 || GetVehicleModel(vehicleid) == 592 || GetVehicleModel(vehicleid) == 593 || GetVehicleModel(vehicleid) == 488)
{
  // code..
}
use this:
pawn Код:
if(GetVehicleModel(vehicleid) == 417 || GetVehicleModel(vehicleid) == 425 || GetVehicleModel(vehicleid) == 447
|| GetVehicleModel(vehicleid) == 460 || GetVehicleModel(vehicleid) == 464 || GetVehicleModel(vehicleid) == 465
|| GetVehicleModel(vehicleid) == 469 || GetVehicleModel(vehicleid) == 476 || GetVehicleModel(vehicleid) == 487
|| GetVehicleModel(vehicleid) == 488 || GetVehicleModel(vehicleid) == 497 || GetVehicleModel(vehicleid) == 501
|| GetVehicleModel(vehicleid) == 511 || GetVehicleModel(vehicleid) == 512 || GetVehicleModel(vehicleid) == 513
|| GetVehicleModel(vehicleid) == 519 || GetVehicleModel(vehicleid) == 520 || GetVehicleModel(vehicleid) == 548
|| GetVehicleModel(vehicleid) == 553 || GetVehicleModel(vehicleid) == 563 || GetVehicleModel(vehicleid) == 577
|| GetVehicleModel(vehicleid) == 592 || GetVehicleModel(vehicleid) == 593 || GetVehicleModel(vehicleid) == 488)
{
  // code..
}
Ok but when i try to compile it just says
Код:
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
You get a cookie ^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)