21.01.2017, 21:44
Hello there. I've found this minigame on SA:MP and i added it on my server.
Youarex has been added to credits of course. So i have a little problem.
The blocks, and buttons from the minigame are not properly created.
That means there are creating just some of all butons and blocks, not all.
Picture:
[ ! ] Also i've made some prints in
That's the stock:
And in my console appear this when the Arena is created:
Please reply if u can help me .
Youarex has been added to credits of course. So i have a little problem.
The blocks, and buttons from the minigame are not properly created.
That means there are creating just some of all butons and blocks, not all.
Picture:
[ ! ] Also i've made some prints in
PHP код:
Arena_Create
PHP код:
stock Arena_Create( )
{
if( !g_arena_created )
{
new Float:pos[ 3 ] =
{
ARENA_POS
};
new Float:tmp_x = pos[ 0 ];
b_gobjectid[ 0 ] = CreateObject( 18981, pos[ 0 ] - 12.499999, pos[ 1 ] -12.499998, pos[ 2 ] + 1.970000, 0.000000, 90.000000, 0.000000, 400.00 );
SetObjectMaterial( b_gobjectid[ 0 ], 0, 19373, "all_walls", "desgreengrass", 0 );
b_gobjectid[ 1 ]= CreateObject( 18981, pos[ 0 ] - 12.499999, pos[ 1 ] + 12.500001, pos[ 2 ] + 1.970000, 0.000007, 89.999992, 270.000000, 400.00 );
SetObjectMaterial( b_gobjectid[ 1 ], 0, 19373, "all_walls", "desgreengrass", 0);
b_gobjectid[ 2 ] = CreateObject( 18981, pos[ 0 ] + 12.500000, pos[ 1 ] + 12.500004, pos[ 2 ] + 1.970000, 0.000006, 90.000000, 180.000030, 400.00 );
SetObjectMaterial( b_gobjectid[ 2 ], 0, 19373, "all_walls", "desgreengrass", 0);
b_gobjectid[ 3 ] = CreateObject( 18981, pos[ 0 ] + 12.500014, pos[ 1 ] - 12.499995, pos[ 2 ] + 1.970000, 0.000005, 90.000000, 90.000068, 400.00 );
SetObjectMaterial( b_gobjectid[ 3 ], 0, 19373, "all_walls", "desgreengrass", 0 );
for( new i; i < ARENA_SIZE; i ++ )
{
b_has_color[ i ] = 0xFFFFFFFF;
b_unique_id[ i ] = -1;
if( i % 8 == 0 && i != 0 )
{
pos[ 0 ] = tmp_x;
pos[ 1 ] += 5.7;
}
b_objectid[ i ] = CreateObject( 18764, pos[ 0 ] - 19.991994, pos[ 1 ] - 19.991994, pos[ 2 ] +0.005, 0.00, 0.00, 0.00, 400.00 );
b_button[ i ] = CreateObject( 18762, pos[ 0 ] - 19.991994, pos[ 1 ] - 19.991994, pos[ 2 ] +0.009, 0.00, 0.00, 0.00, 400.00 );
SetObjectMaterial( b_objectid[ i ], 0, 8398, "luxorland", "des_dirt1", 0xFFFFFFFF );
b_pickupid[ i ] = CreatePickup( 19300, 1, pos[ 0 ] - 19.991994, pos[ 1 ] - 19.991994, pos[ 2 ] + 4.00, -1 );
pos[ 0 ] += 5.7;
printf( "BLOCK ID", b_objectid[ i ] );
printf( "BUTON ID", b_button[ i ] );
}
g_arena_created = true;
}
}
PHP код:
[13:21:41] BLOCK ID: 921
[13:21:41] BUTON ID: 922
[13:21:41] BLOCK ID: 923
[13:21:41] BUTON ID: 924
[13:21:41] BLOCK ID: 925
[13:21:41] BUTON ID: 926
[13:21:41] BLOCK ID: 927
[13:21:41] BUTON ID: 928
[13:21:41] BLOCK ID: 929
[13:21:41] BUTON ID: 930
[13:21:41] BLOCK ID: 931
[13:21:41] BUTON ID: 932
[13:21:41] BLOCK ID: 933
[13:21:41] BUTON ID: 934
[13:21:41] BLOCK ID: 935
[13:21:41] BUTON ID: 936
[13:21:41] BLOCK ID: 937
[13:21:41] BUTON ID: 938
[13:21:41] BLOCK ID: 939
[13:21:41] BUTON ID: 940
[13:21:41] BLOCK ID: 941
[13:21:41] BUTON ID: 942
[13:21:41] BLOCK ID: 943
[13:21:41] BUTON ID: 944
[13:21:41] BLOCK ID: 945
[13:21:41] BUTON ID: 946
[13:21:41] BLOCK ID: 947
[13:21:41] BUTON ID: 948
[13:21:41] BLOCK ID: 949
[13:21:41] BUTON ID: 950
[13:21:41] BLOCK ID: 951
[13:21:41] BUTON ID: 952
[13:21:41] BLOCK ID: 953
[13:21:41] BUTON ID: 954
[13:21:41] BLOCK ID: 955
[13:21:41] BUTON ID: 956
[13:21:41] BLOCK ID: 957
[13:21:41] BUTON ID: 958
[13:21:41] BLOCK ID: 959
[13:21:41] BUTON ID: 960
[13:21:41] BLOCK ID: 961
[13:21:41] BUTON ID: 962
[13:21:41] BLOCK ID: 963
[13:21:41] BUTON ID: 964
[13:21:41] BLOCK ID: 965
[13:21:41] BUTON ID: 966
[13:21:41] BLOCK ID: 967
[13:21:41] BUTON ID: 968
[13:21:41] BLOCK ID: 969
[13:21:41] BUTON ID: 970
[13:21:41] BLOCK ID: 971
[13:21:41] BUTON ID: 972
[13:21:41] BLOCK ID: 973
[13:21:41] BUTON ID: 974
[13:21:41] BLOCK ID: 975
[13:21:41] BUTON ID: 976
[13:21:41] BLOCK ID: 977
[13:21:41] BUTON ID: 978
[13:21:41] BLOCK ID: 979
[13:21:41] BUTON ID: 980
[13:21:41] BLOCK ID: 981
[13:21:41] BUTON ID: 982
[13:21:41] BLOCK ID: 983
[13:21:41] BUTON ID: 984
[13:21:41] BLOCK ID: 985
[13:21:41] BUTON ID: 986
[13:21:41] BLOCK ID: 987
[13:21:41] BUTON ID: 988
[13:21:41] BLOCK ID: 989
[13:21:41] BUTON ID: 990
[13:21:41] BLOCK ID: 991
[13:21:41] BUTON ID: 992
[13:21:41] BLOCK ID: 993
[13:21:41] BUTON ID: 994
[13:21:41] BLOCK ID: 995
[13:21:41] BUTON ID: 996
[13:21:41] BLOCK ID: 997
[13:21:41] BUTON ID: 998
[13:21:41] BLOCK ID: 999
[13:21:41] BUTON ID: 65535
[13:21:41] BLOCK ID: 65535
[13:21:41] BUTON ID: 65535
[13:21:41] BLOCK ID: 65535
[13:21:41] BUTON ID: 65535
[13:21:41] BLOCK ID: 65535
[13:21:41] BUTON ID: 65535
[13:21:41] BLOCK ID: 65535
[13:21:41] BUTON ID: 65535
[13:21:41] BLOCK ID: 65535
[13:21:41] BUTON ID: 65535
[13:21:41] BLOCK ID: 65535
[13:21:41] BUTON ID: 65535
[13:21:41] BLOCK ID: 65535
[13:21:41] BUTON ID: 65535
[13:21:41] BLOCK ID: 65535
[13:21:41] BUTON ID: 65535
[13:21:41] BLOCK ID: 65535
[13:21:41] BUTON ID: 65535
[13:21:41] BLOCK ID: 65535
[13:21:41] BUTON ID: 65535
[13:21:41] BLOCK ID: 65535
[13:21:41] BUTON ID: 65535
[13:21:41] BLOCK ID: 65535
[13:21:41] BUTON ID: 65535
[13:21:41] BLOCK ID: 65535
[13:21:41] BUTON ID: 65535
[13:21:41] BLOCK ID: 65535
[13:21:41] BUTON ID: 65535
[13:21:41] BLOCK ID: 65535
[13:21:41] BUTON ID: 65535
[13:21:41] BLOCK ID: 65535
[13:21:41] BUTON ID: 65535
[13:21:41] BLOCK ID: 65535
[13:21:41] BUTON ID: 65535
[13:21:41] BLOCK ID: 65535
[13:21:41] BUTON ID: 65535
[13:21:41] BLOCK ID: 65535
[13:21:41] BUTON ID: 65535
[13:21:41] BLOCK ID: 65535
[13:21:41] BUTON ID: 65535
[13:21:41] BLOCK ID: 65535
[13:21:41] BUTON ID: 65535
[13:21:41] BLOCK ID: 65535
[13:21:41] BUTON ID: 65535
[13:21:41] BLOCK ID: 65535
[13:21:41] BUTON ID: 65535
[13:21:41] BLOCK ID: 65535
[13:21:41] BUTON ID: 65535