Jump to content
  • 0

Eroare.


Gawitkkk

Question

Salut tuturor, am întâmpinat o problemă la o comandă.

 

Aici este comanda:

CMD:factions(playerid, params[])
{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
    {
        ShowPlayerDialog(playerid, DIALOG_FACTIONS, DIALOG_STYLE_MSGBOX, "Server factions:","{2641FE}Police Departamentn{1E519D}Federal Bureau of Investigationsn{1E519D}National Guardn{2C2C30}The Corleone Familyn{98B1AC}The Cuneo Familyn{F2B50C}The Tattaglia Familyn{B7FF3B}Mayorn{D7CE96}Tow Truck Companyn{C2A2DA}News Reportersn{B32CF6}The Paterno Familyn{AA3333}Hitmen Agencyn{41FEAA}School Instructorsn{FFFF00}Taxi Cab Companyn{F29D9D}Paramedicsn{946141}The Stracci FamilynThe Barzini Family","Ok","");
    }
    return 1;
}

Aici este eroarea:

error 075: input line too long (after substitutions)

Aveți idee cum pot proceda să nu mai apară această problemă?

Edited by Gawitkkk
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Buna seara stimate.

Sunt cateva modalitati, dar haideti totusi sa incercam urmatoarea varianta mai usoara a comenzii:

CMD:factions(playerid, params[])
{
  if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
  new fstring[1024];
  strcat(fstring,"{2641FE}Police Departamentn");
  strcat(fstring,"{1E519D}Federal Bureau of Investigationsn");
  strcat(fstring,"{1E519D}National Guardn");
  strcat(fstring,"{2C2C30}The Corleone Familyn");
  strcat(fstring,"{98B1AC}The Cuneo Familyn");
  strcat(fstring,"{F2B50C}The Tattaglia Familyn");
  strcat(fstring,"{B7FF3B}Mayorn");
  strcat(fstring,"{D7CE96}Tow Truck Companyn");
  strcat(fstring,"{C2A2DA}News Reportersn");
  strcat(fstring,"{B32CF6}The Paterno Familyn");
  strcat(fstring,"{AA3333}Hitmen Agencyn");
  strcat(fstring,"{41FEAA}School Instructorsn");
  strcat(fstring,"{FFFF00}Taxi Cab Companyn");
  strcat(fstring,"{F29D9D}Paramedicsn");
  strcat(fstring,"{946141}The Stracci Familyn");
  strcat(fstring,"The Barzini Familyn");
  ShowPlayerDialog(playerid, DIALOG_FACTIONS, DIALOG_STYLE_MSGBOX, "Server factions:",fstring,"Ok","");
  return 1;
}
Edited by ARTIST
  • Upvote 1

ep41yhufqpagka5wfoornw1wjfjie.png

HTjr_G.png
12975.png
 
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.