[AJUDA][HELP] "error 075: input line too long (after substitutions)"
#1

Olб ! Postarei este tуpico em 2 idiomas (Inglкs e Portuguкs) para que a ajuda seja mais ampla e chegue mais rбpido !

Bom, meu problema й o seguinte:

C:\Documents and Settings\Geral\Meus documentos\Downloads\samp03e_svr_R2_win32\pawno\GA NGS.pwn(405) : error 075: input line too long (after substitutions)

E a linha й:

Код:
/* ORGANIZAЗФES NГO GOVERNAMENTAIS */[/pwn]
Porйm, se eu apagar esta linha, o erro se transfere para a linha anterior e assim por diante ...

C:\Documents and Settings\Geral\Meus documentos\Downloads\samp03e_svr_R2_win32\pawno\GA NGS.pwn(404) : error 075: input line too long (after substitutions)

Linha:

Код:
if(vehicleid == PCCCars[0] || vehicleid == PCCCars[1] || vehicleid == PCCCars[2] || vehicleid == PCCCars[3] || vehicleid == PCCCars[4] || vehicleid == PCCCars[5] || vehicleid == PCCCars[6] && pDados[playerid][Organizacao] != PCC) return SendClientMessage(playerid, -1, "Vocк nгo й do PCC !"), RemovePlayerFromVehicle(playerid);
E assim vai .. Independente do tamanho da linha ...

Alguйm consegue me ajudar ?

Obrigado !

English (Translate ******)

Hello! I'll post this topic in two languages ​​(English and Portuguese) for that aid is broader and come faster!

Well, my problem is as follows:

C:\Documents and Settings\Geral\Meus documentos\Downloads\samp03e_svr_R2_win32\pawno\GA NGS.pwn(405) : error 075: input line too long (after substitutions)

And the line is:

Код:
/* ORGANIZAЗФES NГO GOVERNAMENTAIS */
However, if I delete this line, the error moves to the previous line and so on ...

C:\Documents and Settings\Geral\Meus documentos\Downloads\samp03e_svr_R2_win32\pawno\GA NGS.pwn(404) : error 075: input line too long (after substitutions)

line:

Код:
if(vehicleid == PCCCars[0] || vehicleid == PCCCars[1] || vehicleid == PCCCars[2] || vehicleid == PCCCars[3] || vehicleid == PCCCars[4] || vehicleid == PCCCars[5] || vehicleid == PCCCars[6] && pDados[playerid][Organizacao] != PCC) return SendClientMessage(playerid, -1, "Vocк nгo й do PCC !"), RemovePlayerFromVehicle(playerid);
And so it goes .. Regardless of the size of the line ...

Can anyone help me?

Thank you!
Reply
#2

use strcat
https://sampwiki.blast.hk/wiki/Strcat
Reply
#3

Quote:
Originally Posted by [D]ry[D]esert
Посмотреть сообщение
How do I use this? Would you show me how? thank you
Reply
#4

try this:
pawn Код:
stock IsCarForMe(vehicleid)
{
   for(new i = 0; i <= 6; i++)
  {
   if(vehicleid == PCCCars[i]) return true;
  }
  return false;
 }
pawn Код:
if(IsCarForMe(vehicleid) && pDados[playerid][Organizacao] != PCC)
        {
          RemovePlayerFromVehicle(playerid);
          return SendClientMessage(playerid, -1, "Vocк nгo й do PCC !");
        }
}
Reply
#5

Quote:
Originally Posted by Azazelo
Посмотреть сообщение
try this:
pawn Код:
stock IsCarForMe(vehicleid)
{
   for(new i = 0; i <= 6; i++)
  {
   if(vehicleid == PCCCars[i]) return true;
  }
  return false;
 }
pawn Код:
if(IsCarForMe(vehicleid) && pDados[playerid][Organizacao] != PCC) return SendClientMessage(playerid, -1, "Vocк nгo й do PCC !"), RemovePlayerFromVehicle(playerid);
}
Ok, Trying

#Edit

And how I do it to other gangs too?

Код:
if(vehicleid == GrooveCars[0] || vehicleid == GrooveCars[1] || vehicleid == GrooveCars[2] || vehicleid == GrooveCars[3] || vehicleid == GrooveCars[4] || vehicleid == GrooveCars[5] || vehicleid == GrooveCars[6] && pDados[playerid][Organizacao] != GROOVE) return SendClientMessage(playerid, -1, "Vocк nгo й da Groove Street !"), RemovePlayerFromVehicle(playerid);
    if(vehicleid == AztecaCars[0] || vehicleid == AztecaCars[1] || vehicleid == AztecaCars[2] || vehicleid == AztecaCars[3] || vehicleid == AztecaCars[4] || vehicleid == AztecaCars[5] || vehicleid == AztecaCars[6] && pDados[playerid][Organizacao] != AZTECAS) return SendClientMessage(playerid, -1, "Vocк nгo й dos Aztecas !"), RemovePlayerFromVehicle(playerid);
    if(vehicleid == VagosCars[0] || vehicleid == VagosCars[1] || vehicleid == VagosCars[2] || vehicleid == VagosCars[3] || vehicleid == VagosCars[4] || vehicleid == VagosCars[5] || vehicleid == VagosCars[6] && pDados[playerid][Organizacao] != VAGOS) return SendClientMessage(playerid, -1, "Vocк nгo й dos Vagos !"), RemovePlayerFromVehicle(playerid);
    if(vehicleid == BallaCars[0] || vehicleid == BallaCars[1] || vehicleid == BallaCars[2] || vehicleid == BallaCars[3] || vehicleid == BallaCars[4] || vehicleid == BallaCars[5] || vehicleid == BallaCars[6] && pDados[playerid][Organizacao] != BALLAS) return SendClientMessage(playerid, -1, "Vocк nгo й dos Ballas !"), RemovePlayerFromVehicle(playerid);
	if(vehicleid == PCCCars[0] || vehicleid == PCCCars[1] || vehicleid == PCCCars[2] || vehicleid == PCCCars[3] || vehicleid == PCCCars[4] || vehicleid == PCCCars[5] || vehicleid == PCCCars[6] && pDados[playerid][Organizacao] != PCC) return SendClientMessage(playerid, -1, "Vocк nгo й do PCC !"), RemovePlayerFromVehicle(playerid);
Reply
#6

pawn Код:
stock IsCarForMe(vehicleid)
{
   for(new i = 0; i <= 6; i++)
  {
   if(vehicleid == PCCCars[i]) return false;//swap this
  }
  return true;//swap this
 }
If and only if you all gangs has 6 cars;

Im not sure about this code below :
pawn Код:
stock IsCarForMe(vehicleid,gang[],max_car = 6)
{
   for(new i = 0; i <= max_car; i++)
  {
   if(vehicleid == gang[i]) return false;//swap this
  }
  return true;//swap this
 }
use
pawn Код:
IsCarForMe(vehicleid,PCCCars)
let me know is it worked for all gangs.
Reply
#7

Quote:
Originally Posted by Azazelo
Посмотреть сообщение
pawn Код:
stock IsCarForMe(vehicleid)
{
   for(new i = 0; i <= 6; i++)
  {
   if(vehicleid == PCCCars[i]) return false;//swap this
  }
  return true;//swap this
 }
I have one more question .. How to do it the other gangs too?
Код:
if(vehicleid == GrooveCars[0] || vehicleid == GrooveCars[1] || vehicleid == GrooveCars[2] || vehicleid == GrooveCars[3] || vehicleid == GrooveCars[4] || vehicleid == GrooveCars[5] || vehicleid == GrooveCars[6] && pDados[playerid][Organizacao] != GROOVE) return SendClientMessage(playerid, -1, "Vocк nгo й da Groove Street !"), RemovePlayerFromVehicle(playerid);
    if(vehicleid == AztecaCars[0] || vehicleid == AztecaCars[1] || vehicleid == AztecaCars[2] || vehicleid == AztecaCars[3] || vehicleid == AztecaCars[4] || vehicleid == AztecaCars[5] || vehicleid == AztecaCars[6] && pDados[playerid][Organizacao] != AZTECAS) return SendClientMessage(playerid, -1, "Vocк nгo й dos Aztecas !"), RemovePlayerFromVehicle(playerid);
    if(vehicleid == VagosCars[0] || vehicleid == VagosCars[1] || vehicleid == VagosCars[2] || vehicleid == VagosCars[3] || vehicleid == VagosCars[4] || vehicleid == VagosCars[5] || vehicleid == VagosCars[6] && pDados[playerid][Organizacao] != VAGOS) return SendClientMessage(playerid, -1, "Vocк nгo й dos Vagos !"), RemovePlayerFromVehicle(playerid);
    if(vehicleid == BallaCars[0] || vehicleid == BallaCars[1] || vehicleid == BallaCars[2] || vehicleid == BallaCars[3] || vehicleid == BallaCars[4] || vehicleid == BallaCars[5] || vehicleid == BallaCars[6] && pDados[playerid][Organizacao] != BALLAS) return SendClientMessage(playerid, -1, "Vocк nгo й dos Ballas !"), RemovePlayerFromVehicle(playerid);
	if(vehicleid == PCCCars[0] || vehicleid == PCCCars[1] || vehicleid == PCCCars[2] || vehicleid == PCCCars[3] || vehicleid == PCCCars[4] || vehicleid == PCCCars[5] || vehicleid == PCCCars[6] && pDados[playerid][Organizacao] != PCC) return SendClientMessage(playerid, -1, "Vocк nгo й do PCC !"), RemovePlayerFromVehicle(playerid);
Thanks for trying! Rep +
Reply
#8

Quote:
Originally Posted by Azazelo
Посмотреть сообщение
Im not sure about this code below :
pawn Код:
stock IsCarForMe(vehicleid,gang[],max_car = 6)
{
   for(new i = 0; i <= max_car; i++)
  {
   if(vehicleid == gang[i]) return false;//swap this
  }
  return true;//swap this
 }
use
pawn Код:
IsCarForMe(vehicleid,PCCCars)
let me know is it worked for all gangs.
EDIT
Reply
#9

#EDIT

Thank you! It worked! Thanks for real! Some three days I was looking for solution!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)