Error! -
aboa - 25.12.2013
pawn Код:
C:\Users\Mohamad\Desktop\San Andreas Roleplay\gamemodes\sarp.pwn(50518) : error 075: input line too long (after substitutions)
and in the line:
pawn Код:
RemovePlayerAttachedObject(playerid, slotselection[playerid]);
Re: Error! -
CutX - 25.12.2013
please show us the code before that. show us line
50515 -
50517
im guessin' you have a dialog there with a lot of text ^^
if that's the case, you could split it in 2 dialogs or 3,
at least thats how i do it when i need a shitload of text in a dialog
Re: Error! -
aboa - 25.12.2013
pawn Код:
public OnPlayerEditAttachedObject(playerid, response, index, modelid, boneid, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:fRotZ, Float:fScaleX, Float:fScaleY, Float:fScaleZ)
{
if (fScaleX > 2.0) fScaleX = 2.0;
if (fScaleY > 2.0) fScaleY = 2.0;
if (fScaleZ > 2.0) fScaleZ = 2.0;
new slot = slotselection[playerid];
if (response)
{
new string[64];
PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = fOffsetX;
PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = fOffsetY;
PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = fOffsetZ;
PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = fRotX;
PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = fRotY;
PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = fRotZ;
PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX] = fScaleX;
PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY] = fScaleY;
PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ] = fScaleZ;
return 1;
}
else
{
RemovePlayerAttachedObject(playerid, slotselection[playerid]);
if(PlayerToyInfo[playerid][slotselection[playerid]][ptModelID] != 0) SetPlayerAttachedObject(playerid, slotselection[playerid], PlayerToyInfo[playerid][slotselection[playerid]][ptModelID], PlayerToyInfo[playerid][slotselection[playerid]][ptBone], PlayerToyInfo[playerid][slotselection[playerid]][ptPosX], PlayerToyInfo[playerid][slotselection[playerid]][ptPosY], PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ], PlayerToyInfo[playerid][slotselection[playerid]][ptRotX], PlayerToyInfo[playerid][slotselection[playerid]][ptRotY], PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ], PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX], PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY], PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ]);
}
return 1;
}
Re: Error! -
CutX - 25.12.2013
that line almost at the end:
if(PlayerToyInfo[playerid][slotselection[playerid]][ptModelID] != 0) .................. an so on
it's too long oO
shorten it, use \
here, use this:
PHP код:
SetPlayerAttachedObject(playerid, slotselection[playerid], PlayerToyInfo[playerid][slotselection[playerid]][ptModelID],\
PlayerToyInfo[playerid][slotselection[playerid]][ptBone], PlayerToyInfo[playerid][slotselection[playerid]][ptPosX],\
PlayerToyInfo[playerid][slotselection[playerid]][ptPosY], PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ],\
PlayerToyInfo[playerid][slotselection[playerid]][ptRotX], PlayerToyInfo[playerid][slotselection[playerid]][ptRotY],\
PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ], PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX],\
PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY], PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ]);
should fix it
Re: Error! - Patrick - 25.12.2013
pawn Код:
public OnPlayerEditAttachedObject(playerid, response, index, modelid, boneid, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:fRotZ, Float:fScaleX, Float:fScaleY, Float:fScaleZ)
{
if (fScaleX > 2.0) fScaleX = 2.0;
if (fScaleY > 2.0) fScaleY = 2.0;
if (fScaleZ > 2.0) fScaleZ = 2.0;
new slot = slotselection[playerid];
if (response)
{
new string[64];
PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = fOffsetX;
PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = fOffsetY;
PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = fOffsetZ;
PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = fRotX;
PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = fRotY;
PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = fRotZ;
PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX] = fScaleX;
PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY] = fScaleY;
PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ] = fScaleZ;
return 1;
}
else
{
RemovePlayerAttachedObject(playerid, slotselection[playerid]);
if(PlayerToyInfo[playerid][slotselection[playerid]][ptModelID] != 0)
{
static
a = PlayerToyInfo[playerid][slotselection[playerid]][ptModelID],
b = PlayerToyInfo[playerid][slotselection[playerid]][ptBone],
c = PlayerToyInfo[playerid][slotselection[playerid]][ptPosX],
d = PlayerToyInfo[playerid][slotselection[playerid]][ptPosY],
e = PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ],
f = PlayerToyInfo[playerid][slotselection[playerid]][ptRotX],
g = PlayerToyInfo[playerid][slotselection[playerid]][ptRotY],
h = PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ],
i = PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX],
j = PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY],
k = PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ]
;
SetPlayerAttachedObject(playerid, slotselection[playerid], a, b, c, d, e, f, g, h, i, j, k);
}
}
return 1;
}
underneath the
RemovePlayerAttachedObject(playerid, slotselection[playerid]); is too long
Re: Error! -
Pottus - 25.12.2013
Remove the all the \ you don't need that for functions only strings and in which case if this error happens you can use strcat() to join the string.