20.04.2015, 13:36
The function:
This is old code, which I dont even know why exists and I'm trying to delete...But here's the catch: after I remove it the compiler crashes(pawncc has stopped responding)
Obviously I assumed it is used somewhere... BUT I also get this warning when I put it back:
So its proof it is NOT used, isn't it? So either I'm crazy or I'm missing something.
pawn Код:
Tabu_SetPlayerAttachedObject(playerid, index, modelid, bone, Float:fOffsetX = 0.0, Float:fOffsetY = 0.0, Float:fOffsetZ = 0.0, Float:fRotX = 0.0, Float:fRotY = 0.0, Float:fRotZ = 0.0, Float:fScaleX = 1.0, Float:fScaleY = 1.0, Float:fScaleZ = 1.0, materialcolor1 = 0, materialcolor2 = 0)
{
new
string[ 128 ],
Float:pos[ 3 ],
Float:rot[ 3 ],
Float:scale[ 3 ],
time;
format(string, 128, "%dTime", modelid );
time = GetPVarInt ( playerid, string );
format(string, 128, "%dPosX", modelid );
pos[ 0 ] = GetPVarFloat ( playerid, string );
format(string, 128, "%dPosY", modelid );
pos[ 1 ] = GetPVarFloat ( playerid, string );
format(string, 128, "%dPosZ", modelid );
pos[ 2 ] = GetPVarFloat ( playerid, string );
format(string, 128, "%dRotX", modelid );
rot[ 0 ] = GetPVarFloat ( playerid, string );
format(string, 128, "%dRotY", modelid );
rot[ 1 ] = GetPVarFloat ( playerid, string );
format(string, 128, "%dRotZ", modelid );
rot[ 2 ] = GetPVarFloat ( playerid, string );
format(string, 128, "%dScaleX", modelid );
scale[ 0 ] = GetPVarFloat ( playerid, string );
format(string, 128, "%dScaleY", modelid );
scale[ 1 ] = GetPVarFloat ( playerid, string );
format(string, 128, "%dScaleZ", modelid );
scale[ 2 ] = GetPVarFloat ( playerid, string );
//printf("[DEBUG] Objektas: %d, X: %f, Y: %f, Z: %f, RX: %f, RY: %f, RZ: %f, Scale X: %f, Scale Y: %f, Scale Z: %f", modelid, pos[ 0 ], pos[ 1 ], pos[ 2 ], rot[ 0 ], rot[ 1 ], rot[ 2 ], scale[ 0 ], scale[ 1 ], scale[ 2 ] );
if( time > 0 )
return SetPlayerAttachedObject(playerid, index, modelid, bone, pos[ 0 ], pos[ 1 ],pos[ 2 ], rot[ 0 ], rot[ 1 ], rot[ 2 ], scale[ 0 ], scale[ 1 ], scale[ 2 ], materialcolor1, materialcolor2);
format(string, 128, "%dTime", modelid );
SetPVarInt ( playerid, string, 1 );
return SetPlayerAttachedObject(playerid, index, modelid, bone, fOffsetX, fOffsetY,fOffsetZ, fRotX, fRotY, fRotZ, fScaleX, fScaleY, fScaleZ, materialcolor1, materialcolor2);
}
Obviously I assumed it is used somewhere... BUT I also get this warning when I put it back:
Quote:
warning 203: symbol is never used: "Tabu_SetPlayerAttachedObject" |