22.01.2015, 02:40
Hi, this is driving me crazy.
when im not attaching it to a vehicle it works fine, I can see the object but when I attach it to a vehicle it dissapears. This is a graffiti mod im working with vehicle ID is correct and all
pawn Код:
DestroyDynamicObject( POBJECT[playerid] ); // Destroying old sprayobject
POBJECT[playerid] = CreateDynamicObject( 19482, XYZ[playerid][0], XYZ[playerid][1], XYZ[playerid][2], XYZ[playerid][3], XYZ[playerid][4], XYZ[playerid][5], GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid), -1, 200 ); //Creating the object
SetDynamicObjectMaterialText( POBJECT[playerid], 0, POBJECTN[playerid], OBJECT_MATERIAL_SIZE_256x256, "Diploma", 25, 0, 0xFFFFFFFF, 0, 1 ); // Setting the object text with our choosen graffiti text
if(isveh[playerid] == 1)
{
AttachDynamicObjectToVehicle(POBJECT[playerid], GRAVEH[playerid], XYZ[playerid][0], XYZ[playerid][1], XYZ[playerid][2], XYZ[playerid][3], XYZ[playerid][4], XYZ[playerid][5]);
new string [95];
format(string, sizeof(string)," DEBUGG: if(isveh[playerid] == 1) processed %d VEH ID",GRAVEH[playerid]);
SCM(playerid, COLOR_LIGHTRED, string);
}