Problem with Pandemoniun by Youarex
#1

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
PHP код:
Arena_Create 
That's the stock:
PHP код:
stock Arena_Create( )
{
    if( !
g_arena_created )
    {
        new 
Float:pos] =
        {
            
ARENA_POS
        
};
        new 
Float:tmp_x pos];
        
b_gobjectid] = CreateObject18981pos] - 12.499999pos] -12.499998pos] + 1.9700000.00000090.0000000.000000400.00 );
        
SetObjectMaterialb_gobjectid], 019373"all_walls""desgreengrass");
        
b_gobjectid]= CreateObject18981pos] - 12.499999pos] + 12.500001pos] + 1.9700000.00000789.999992270.000000400.00 );
        
SetObjectMaterialb_gobjectid], 019373"all_walls""desgreengrass"0);
        
b_gobjectid] = CreateObject18981pos] + 12.500000pos] + 12.500004pos] + 1.9700000.00000690.000000180.000030400.00 );
        
SetObjectMaterialb_gobjectid], 019373"all_walls""desgreengrass"0);
        
b_gobjectid] = CreateObject18981pos] + 12.500014pos] - 12.499995pos] + 1.9700000.00000590.00000090.000068400.00 );
        
SetObjectMaterialb_gobjectid], 019373"all_walls""desgreengrass");
        for( new 
iARENA_SIZE++ )
        {
            
b_has_color] = 0xFFFFFFFF;
            
b_unique_id] = -1;
            if( 
== && != )
            {
                
pos] = tmp_x;
                
pos] += 5.7;
            }
            
b_objectid] = CreateObject18764pos] - 19.991994pos] - 19.991994pos] +0.0050.000.000.00400.00 );
            
b_button] = CreateObject18762pos] - 19.991994pos] - 19.991994pos] +0.0090.000.000.00400.00 );
            
SetObjectMaterialb_objectid], 08398"luxorland""des_dirt1"0xFFFFFFFF );
            
b_pickupid] = CreatePickup193001pos] - 19.991994pos] - 19.991994pos] + 4.00, -);
            
pos] += 5.7;
            
            
printf"BLOCK ID"b_objectid] );
            
printf"BUTON ID"b_button] );
        }
        
g_arena_created true;
     }

And in my console appear this when the Arena is created:
PHP код:
[13:21:41BLOCK ID921
[13:21:41BUTON ID922
[13:21:41BLOCK ID923
[13:21:41BUTON ID924
[13:21:41BLOCK ID925
[13:21:41BUTON ID926
[13:21:41BLOCK ID927
[13:21:41BUTON ID928
[13:21:41BLOCK ID929
[13:21:41BUTON ID930
[13:21:41BLOCK ID931
[13:21:41BUTON ID932
[13:21:41BLOCK ID933
[13:21:41BUTON ID934
[13:21:41BLOCK ID935
[13:21:41BUTON ID936
[13:21:41BLOCK ID937
[13:21:41BUTON ID938
[13:21:41BLOCK ID939
[13:21:41BUTON ID940
[13:21:41BLOCK ID941
[13:21:41BUTON ID942
[13:21:41BLOCK ID943
[13:21:41BUTON ID944
[13:21:41BLOCK ID945
[13:21:41BUTON ID946
[13:21:41BLOCK ID947
[13:21:41BUTON ID948
[13:21:41BLOCK ID949
[13:21:41BUTON ID950
[13:21:41BLOCK ID951
[13:21:41BUTON ID952
[13:21:41BLOCK ID953
[13:21:41BUTON ID954
[13:21:41BLOCK ID955
[13:21:41BUTON ID956
[13:21:41BLOCK ID957
[13:21:41BUTON ID958
[13:21:41BLOCK ID959
[13:21:41BUTON ID960
[13:21:41BLOCK ID961
[13:21:41BUTON ID962
[13:21:41BLOCK ID963
[13:21:41BUTON ID964
[13:21:41BLOCK ID965
[13:21:41BUTON ID966
[13:21:41BLOCK ID967
[13:21:41BUTON ID968
[13:21:41BLOCK ID969
[13:21:41BUTON ID970
[13:21:41BLOCK ID971
[13:21:41BUTON ID972
[13:21:41BLOCK ID973
[13:21:41BUTON ID974
[13:21:41BLOCK ID975
[13:21:41BUTON ID976
[13:21:41BLOCK ID977
[13:21:41BUTON ID978
[13:21:41BLOCK ID979
[13:21:41BUTON ID980
[13:21:41BLOCK ID981
[13:21:41BUTON ID982
[13:21:41BLOCK ID983
[13:21:41BUTON ID984
[13:21:41BLOCK ID985
[13:21:41BUTON ID986
[13:21:41BLOCK ID987
[13:21:41BUTON ID988
[13:21:41BLOCK ID989
[13:21:41BUTON ID990
[13:21:41BLOCK ID991
[13:21:41BUTON ID992
[13:21:41BLOCK ID993
[13:21:41BUTON ID994
[13:21:41BLOCK ID995
[13:21:41BUTON ID996
[13:21:41BLOCK ID997
[13:21:41BUTON ID998
[13:21:41BLOCK ID999
[13:21:41BUTON ID65535
[13:21:41BLOCK ID65535
[13:21:41BUTON ID65535
[13:21:41BLOCK ID65535
[13:21:41BUTON ID65535
[13:21:41BLOCK ID65535
[13:21:41BUTON ID65535
[13:21:41BLOCK ID65535
[13:21:41BUTON ID65535
[13:21:41BLOCK ID65535
[13:21:41BUTON ID65535
[13:21:41BLOCK ID65535
[13:21:41BUTON ID65535
[13:21:41BLOCK ID65535
[13:21:41BUTON ID65535
[13:21:41BLOCK ID65535
[13:21:41BUTON ID65535
[13:21:41BLOCK ID65535
[13:21:41BUTON ID65535
[13:21:41BLOCK ID65535
[13:21:41BUTON ID65535
[13:21:41BLOCK ID65535
[13:21:41BUTON ID65535
[13:21:41BLOCK ID65535
[13:21:41BUTON ID65535
[13:21:41BLOCK ID65535
[13:21:41BUTON ID65535
[13:21:41BLOCK ID65535
[13:21:41BUTON ID65535
[13:21:41BLOCK ID65535
[13:21:41BUTON ID65535
[13:21:41BLOCK ID65535
[13:21:41BUTON ID65535
[13:21:41BLOCK ID65535
[13:21:41BUTON ID65535
[13:21:41BLOCK ID65535
[13:21:41BUTON ID65535
[13:21:41BLOCK ID65535
[13:21:41BUTON ID65535
[13:21:41BLOCK ID65535
[13:21:41BUTON ID65535
[13:21:41BLOCK ID65535
[13:21:41BUTON ID65535
[13:21:41BLOCK ID65535
[13:21:41BUTON ID65535
[13:21:41BLOCK ID65535
[13:21:41BUTON ID65535
[13:21:41BLOCK ID65535
[13:21:41BUTON ID65535 
Please reply if u can help me .
Reply
#2

This means that you are creating too many objects with CreateObject. CreateObject has a limit of 1000 objects created at once. When there's no more slot available CreateObject returns INVALID_OBJECT_ID (defined as 0xFFFF, converted to decimal it has a value of 65535 (also printed by your printf)).

Switch those objects and pickups to your streamer.
Reply
#3

Problem solved. Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)