error 008: must be a constant expression; assumed zero (HELP PLEASE)
#1

i have this error
Код:
error 008: must be a constant expression; assumed zero
i have search at forum but no one help me for this code:

Код:
public OnPlayerEditAttachedObject(playerid, response, slotselection[playerid], ptModelID, ptBone, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:fRotZ, Float:fScaleX, Float:fScaleY, Float:fScaleZ) // at this line
{
    if(response)
    {
        new p = slotselection[playerid];
        SendClientMessage(playerid, COLOR_GREEN, "Attached object edition saved.");

        PlayerToyInfo[playerid][p][ptPosX] = fOffsetX;
        PlayerToyInfo[playerid][p][ptPosY] = fOffsetY;
        PlayerToyInfo[playerid][p][ptPosZ] = fOffsetZ;
        PlayerToyInfo[playerid][p][ptRotX] = fRotX;
        PlayerToyInfo[playerid][p][ptRotY] = fRotY;
        PlayerToyInfo[playerid][p][ptRotZ] = fRotZ;
        PlayerToyInfo[playerid][p][ptScaleX] = fScaleX;
        PlayerToyInfo[playerid][p][ptScaleY] = fScaleY;
        PlayerToyInfo[playerid][p][ptScaleZ] = fScaleZ;
    }
    else
    {
        SendClientMessage(playerid, COLOR_RED, "Attached object edition not saved.");

        new p = slotselection[playerid];
        SetPlayerAttachedObject(playerid, slotselection[playerid], ptModelID, ptBone, PlayerToyInfo[playerid][p][ptPosX], PlayerToyInfo[playerid][p][ptPosY], PlayerToyInfo[playerid][p][ptPosZ], PlayerToyInfo[playerid][p][ptRotX], PlayerToyInfo[playerid][p][ptRotY], PlayerToyInfo[playerid][p][ptRotZ], PlayerToyInfo[playerid][p][ptScaleX], PlayerToyInfo[playerid][p][ptScaleY], PlayerToyInfo[playerid][p][ptScaleZ]);
    }
    return 1;
}
PLEASE HELP
Reply
#2

EDIT:
What are you doing?
pawn Код:
public OnPlayerEditAttachedObject(playerid, response, slotselection[playerid], ptModelID, ptBone, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:fRotZ, Float:fScaleX, Float:fScaleY, Float:fScaleZ)
This must be
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)
Reply
#3

my bad,
BTW thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)