Wrong Text ID?
#1

PHP код:
ArmyBase CreateObject(3268,276.656311,2023.757813,16.632799 0.000000,0.000000,180.000000 );
SetDynamicObjectMaterial(ArmyBase0,2068,"CJ_AMMO_net","CJ_cammonet",0); 
whats wrong in this retexturing code,could it be the wrong textdraw id or something i did wrong?
Reply
#2

Either change SetDynamicObjectMaterial to SetObjectMaterial or make the object itself dynamic.
Reply
#3

You're probably using the wrong material index. Try this:
PHP код:
ArmyBase CreateDynamicObject(3268,276.656311,2023.757813,16.632799 0.000000,0.000000,180.000000 ); 
SetDynamicObjectMaterial(ArmyBase12068"CJ_AMMO_net""CJ_cammonet"0); 
I'm pretty sure it's index 1 for this object.
Reply
#4

Quote:
Originally Posted by Threshold
Посмотреть сообщение
You're probably using the wrong material index. Try this:
PHP код:
ArmyBase CreateObject(3268,276.656311,2023.757813,16.632799 0.000000,0.000000,180.000000 ); 
SetDynamicObjectMaterial(ArmyBase12068"CJ_AMMO_net""CJ_cammonet"0); 
I'm pretty sure it's index 1 for this object.
sir you're using CreateObject and using SetDynamicObjectMaterial to draw in it D:

PHP код:
ArmyBase CreateDynmaicObject(3268,276.656311,2023.757813,16.632799 0.000000,0.000000,180.000000 ); 
SetDynmaicObjectMaterial(ArmyBase0,2068,"CJ_AMMO_net","CJ_cammonet",0); 
Reply
#5

Quote:
Originally Posted by jlalt
Посмотреть сообщение
sir you're using CreateObject and using SetDynamicObjectMaterial to draw in it D:
You have a very strange habit of repeating what has already been said.
Reply
#6

Below..
Reply
#7

Quote:
Originally Posted by Threshold
Посмотреть сообщение
You're probably using the wrong material index. Try this:
PHP код:
ArmyBase CreateDynamicObject(3268,276.656311,2023.757813,16.632799 0.000000,0.000000,180.000000 ); 
SetDynamicObjectMaterial(ArmyBase12068"CJ_AMMO_net""CJ_cammonet"0); 
I'm pretty sure it's index 1 for this object.
This works,but if i try doing it again with the same object but at a different position it doesnt work i try using/changing the index but nothing,why?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)