SetObjectMaterial/SetDynamicObjectMaterial problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: SetObjectMaterial/SetDynamicObjectMaterial problem (
/showthread.php?tid=582569)
SetObjectMaterial/SetDynamicObjectMaterial problem -
Orsini24 - 21.07.2015
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 i = 0; i < 109; i++) SetDynamicObjectMaterial(ap_floor[i], 0, 19377, "all_walls", "carp11s", 0xFF789DF2);
}
screen:
p.s. sorry for my bad english, I am not from Europe.
Re: SetObjectMaterial/SetDynamicObjectMaterial problem -
GTLS - 21.07.2015
Try it like this,
PHP Code:
for(new i = 0; i < MAX_PLAYERS; i++) SetDynamicObjectMaterial(ap_floor[i], 0, 19377, "all_walls", "carp11s", 0xFF789DF2);
try and reply. hope i helped.
EDIT: and wrong section buddy, ask
HERE next time!!
Re: SetObjectMaterial/SetDynamicObjectMaterial problem -
Orsini24 - 21.07.2015
Quote:
Originally Posted by GTLS
Try it like this,
PHP Code:
for(new i = 0; i < MAX_PLAYERS; i++) SetDynamicObjectMaterial(ap_floor[i], 0, 19377, "all_walls", "carp11s", 0xFF789DF2);
try and reply. hope i helped.
EDIT: and wrong section buddy, ask HERE next time!!
|
It did not help