11.04.2012, 14:11
Read this: https://sampforum.blast.hk/showthread.php?tid=331497
The numbers in bold are the problem. You can try them all as 0 (zero) but each index changes for each object.
Код:
stock AnotherStock( ) { SetObjectMaterial( variable[ 0 ], 0, 10972, "groundbit_sfse", "desgreengrass", 0 ); SetObjectMaterial( variable[ 1 ], 1, 10972, "groundbit_sfse", "desgreengrass", 0 ); SetObjectMaterial( variable[ 2 ], 2, 10972, "groundbit_sfse", "desgreengrass", 0 ); SetObjectMaterial( variable[ 3 ], 3, 10972, "groundbit_sfse", "desgreengrass", 0 ); SetObjectMaterial( variable[ 4 ], 4, 10972, "groundbit_sfse", "desgreengrass", 0 ); SetObjectMaterial( variable[ 5 ], 5, 10972, "groundbit_sfse", "desgreengrass", 0 ); SetObjectMaterial( variable[ 6 ], 6, 10972, "groundbit_sfse", "desgreengrass", 0 ); }