Error at end of file.
#1

i get this error at the end of file ...:
pawn Код:
C:\Users\shady\Desktop\server\gamemodes\shady.pwn(47244) : error 075: input line too long (after substitutions)
Please some ideas ?
Reply
#2

Your line 47244 is too long. If it's function call, you can simply add enter after some argument, if it's a string you need to use \ character
Reply
#3

Show us the code.
and not only the single line, the code around it too
Reply
#4

pawn Код:
else if (delim != 'z') //47220
            {                         //47221
                return delim; //.....
            }
        }
    }
    while (delim > ' ');
    return 0;
}


public MoveCamera(playerid)
{
    //this is called trigonometry. It makes the camera spin
    //you can experiment with this line. Just change the values 2, 10 and 3 to make different effects
    SetPlayerCameraPos(playerid, player_x - 2 * floatsin(-PlayerInfo[playerid][SpawnAngle], degrees), player_y - 10 * floatcos(-PlayerInfo[playerid][SpawnAngle], degrees), player_z + 3);
    SetPlayerCameraLookAt(playerid, player_x, player_y, player_z + 0.5);

    //changing the angle a little
    PlayerInfo[playerid][SpawnAngle] += 0.5;

    if (PlayerInfo[playerid][SpawnAngle] >= 360.0)
        PlayerInfo[playerid][SpawnAngle] = 0.0;

} // line 47244
Even if i comment that public it still show the error ...
Reply
#5

trough crashdetector and some prints i have discovered that the problem is here :
pawn Код:
new fEnter[17]; //global
//OnGamemodeInit()
for(new f = 0;f<=sizeof(sFactions);f++)
    {
        new stringf[256];
        format(stringf,sizeof(stringf),"{FFFF00}%s\n{FF0000}Leader:%s\n{0000FF}",sFactions[f][fName],sFactions[f][fLeader]); //line 11756
        if(f == 1)
        {
            fEnter[f] = Create3DTextLabel(stringf,RED,sFactions[f][fX],sFactions[f][fY],sFactions[f][fZ],15,-1,1);
        }
        else{
        fEnter[f] = Create3DTextLabel(stringf,RED,sFactions[f][fX],sFactions[f][fY],sFactions[f][fZ],15,-1,1);
        AddStaticPickup(19198, 23, sFactions[f][fX],sFactions[f][fY],sFactions[f][fZ]);
        }
       
    }
I have always have a problem whit that giving me a Warning :
pawn Код:
warning 213: tag mismatch
but never give it much importance because all worked fine...
pawn Код:
[18:20:20] [debug] Run time error 4: "Array index out of bounds"
[18:20:20] [debug]  Accessing element at index 17 past array upper bound 16
[18:20:20] [debug] AMX backtrace:
[18:20:20] [debug] #0 0008e7e8 in public OnGameModeInit () at shady.pwn:11756
Please some help i don't know how to solve this!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)