11.04.2012, 14:03
(
Последний раз редактировалось zgintasz; 11.04.2012 в 18:40.
)
Hi guys,
I have a problem. Why the texture doesn't set for all objects correctly?
This is the code:
Thanks!
I have a problem. Why the texture doesn't set for all objects correctly?
This is the code:
pawn Код:
stock Remove( playerid )
{
...
RemoveBuildingForPlayer( playerid, 10983, -2076.6484, 222.8516, 31.2188, 0.25 );
RemoveBuildingForPlayer( playerid, 11143, -2076.6484, 222.8516, 31.2188, 0.25 );
RemoveBuildingForPlayer( playerid, 11339, -2079.9531, 159.2031, 30.8672, 0.25 );
RemoveBuildingForPlayer( playerid, 11340, -2079.9531, 159.2031, 30.8672, 0.25 );
RemoveBuildingForPlayer( playerid, 11223, -2049.1719, 250.3203, 33.0781, 0.25 );
RemoveBuildingForPlayer( playerid, 11226, -2049.1719, 250.3203, 29.3750, 0.25 );
return 1;
}
stock LoadObjects( )
{
...
variable[ 0 ] = CreateObject( 11340, -2079.95, 159.20, 30.87, 0.00, 0.00, 0.00 );
variable[ 1 ] = CreateObject( 10983, -2076.65, 222.85, 31.22, 0.00, 0.00, 0.00 );
variable[ 2 ] = CreateObject( 11223, -2049.1719, 250.3203, 33.0781, 0.00, 0.00, 0.00 );
variable[ 3 ] = CreateObject( 11143, -2076.6484, 222.8516, 31.2188, 0.00, 0.00, 0.00 );
variable[ 4 ] = CreateObject( 11223, -2049.1719, 250.3203, 33.0781, 0.00, 0.00, 0.00 );
variable[ 5 ] = CreateObject( 11339, -2079.9531, 159.2031, 30.8672, 0.00, 0.00, 0.00 );
variable[ 6 ] = CreateObject( 11226, -2049.1719, 250.3203, 29.3750, 0.00, 0.00, 0.00 );
return 1;
}
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 );
}