SetObjectMaterial/SetDynamicObjectMaterial problem
#1

Hello, I maked the interior for my server using streamer and changed floor texture, but I have a problem: if the player is teleported to interior of a second or more times or dies, the color of the texture changes for him (or for all, this is unknown).
code:
PHP Code:
public OnGameModeInit()
{
    new 
ap_floor[109];
    
ap_floor[0] = CreateDynamicObject(...);
    
// creating the same objects
    
ap_floor[108] = CreateDynamicObject(...);
    for(new 
0109i++) SetDynamicObjectMaterial(ap_floor[i], 019377"all_walls""carp11s"0xFF789DF2);

screen:


p.s. sorry for my bad english, I am not from Europe.
Reply
#2

Try it like this,
PHP Code:
for(new 0MAX_PLAYERSi++) SetDynamicObjectMaterial(ap_floor[i], 019377"all_walls""carp11s"0xFF789DF2); 
try and reply. hope i helped.

EDIT: and wrong section buddy, ask HERE next time!!
Reply
#3

Quote:
Originally Posted by GTLS
View Post
Try it like this,
PHP Code:
for(new 0MAX_PLAYERSi++) SetDynamicObjectMaterial(ap_floor[i], 019377"all_walls""carp11s"0xFF789DF2); 
try and reply. hope i helped.

EDIT: and wrong section buddy, ask HERE next time!!
It did not help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)