22.02.2014, 14:21
When you create your object, do you do like that ?
And if, add these lines below the object creating
Also add these lines below the object destroy
If the strings print in the console, it means that this is a display bug, not a scripting bug.
PHP код:
trap[playerid] = CreateObject();
// OR
trap[playerid] = SetPlayerAttachedObject();
PHP код:
if(IsValidObject(trap[playerid]))
{
print("Trap object successfuly created");
}
PHP код:
if(!IsValidObject(trap[playerid]))
{
print("Trap object successfuly destroyed !");
}