-
problem hud.size
deleteClientHudTextElementbyName( hud_text_name )
{
if( isDefined( self.txt_hud ) && self.txt_hud.size > 0 )
{
for(i=0; i<self.txt_hud.size; i++ )
{
if( isDefined( self.txt_hud[i].name ) && self.txt_hud[i].name == hud_text_name )
{
self.txt_hud[i] destroy();
self.txt_hud[i].name = undefined;
}
}
}
}
the hud[i] is destroyed successfully but, the problem is that the self.txt_hud.size does not decrease and remains allocated in the memory of the server! :/
is there any way to reduce the self.txt_hud.size?
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules