05.09.2013, 09:47
(
Последний раз редактировалось mahardika; 05.09.2013 в 09:59.
Причина: add (HELP) on the tittle
)
i have this error
i have search at forum but no one help me for this code:
PLEASE HELP
Код:
error 008: must be a constant expression; assumed zero
Код:
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; }