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


Messages In This Thread
error 008: must be a constant expression; assumed zero (HELP PLEASE) - by mahardika - 05.09.2013, 09:47
Re: error 008: must be a constant expression; assumed zero (HELP PLEASE) - by iZN - 05.09.2013, 10:10
Re: error 008: must be a constant expression; assumed zero (HELP PLEASE) - by mahardika - 05.09.2013, 10:21

Forum Jump:


Users browsing this thread: 2 Guest(s)