Line Too Long.. HELP!
#1

Hey hey!... [SAP]Sidhu here. I'm making a GM and am stuck on making a command. I've made one before, for all my public service teams (like 13 teams) and its fine. When I try to make it for the robbers, I think the line with the Robber team names may be too long so I get errors... Can someone please tell me how to fix this up?

Pastebin : http://pastebin.com/mb075a11

Errors : C:\Users\Sidhu\Desktop\CopsN'Robbers.pwn(865) : error 075: input line too long (after substitutions)
C:\Users\Sidhu\Desktop\CopsN'Robbers.pwn(866) : error 017: undefined symbol "TEAM_Azt"
C:\Users\Sidhu\Desktop\CopsN'Robbers.pwn(867) : error 017: undefined symbol "ecas2"
C:\Users\Sidhu\Desktop\CopsN'Robbers.pwn(867) : warning 217: loose indentation
C:\Users\Sidhu\Desktop\CopsN'Robbers.pwn(867) : error 029: invalid expression, assumed zero
C:\Users\Sidhu\Desktop\CopsN'Robbers.pwn(86 : warning 217: loose indentation
C:\Users\Sidhu\Desktop\CopsN'Robbers.pwn(872) : error 029: invalid expression, assumed zero
C:\Users\Sidhu\Desktop\CopsN'Robbers.pwn(873) : warning 217: loose indentation
C:\Users\Sidhu\Desktop\CopsN'Robbers.pwn(876) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Reply
#2

start a new line then lol
Reply
#3

Quote:
Originally Posted by !MaVe
start a new line then lol
How would I do that:S.. Just move like half of the teams onto the next line? :S
Reply
#4

pawn Code:
if (strcmp(cmdtext, "/thugcmds", true)==0)
  {
        if(gTeam[playerid] == TEAM_Biker1 ||
        gTeam[playerid] == TEAM_Biker2 ||
        gTeam[playerid] == TEAM_Biker3 ||
        gTeam[playerid] == TEAM_Biker4 ||
        gTeam[playerid] == TEAM_Balla1 ||
        gTeam[playerid] == TEAM_Balla2 ||
        gTeam[playerid] == TEAM_Balla3 ||
        gTeam[playerid] == TEAM_Grove1 ||
        gTeam[playerid] == TEAM_Grove2 ||
        gTeam[playerid] == TEAM_Grove3 ||
        gTeam[playerid] == TEAM_Vagos1 ||
        gTeam[playerid] == TEAM_Vagos2 ||
        gTeam[playerid] == TEAM_Vagos3 ||
        gTeam[playerid] == TEAM_Aztecas1 ||
        gTeam[playerid] == TEAM_Aztecas2 ||
        gTeam[playerid] == TEAM_Aztecas3 ||
        gTeam[playerid] == TEAM_Rifa1 ||
        gTeam[playerid] == TEAM_Rifa2 ||
        gTeam[playerid] == TEAM_Rifa3)
    {
      SendClientMessage(playerid, COLOR_GREEN, "/radio");
      SendClientMessage(playerid, COLOR_GREEN, "/me");
     }
    else
   {
    SendClientMessage(playerid, COLOR_RED, "You are not apart of the Police!");
   }
    return 1;
    }
    return 0;
}
clever use of carriage return
Reply
#5

Use 'switch'

Or maybe just 'if (gTeam[playerid] != TEAM_Police)' ?
Reply
#6

Got it.. I just put half and half on 2 lines :P
Thanks for the help guys
Reply
#7

Why have you done it like that, Just do what Orb said lol
Reply
#8

Lol... I kind of did it before Orb's post and it worked :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)