AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Registering client on connect (https://forums.alliedmods.net/showthread.php?t=147187)

reinert 01-06-2011 08:39

Registering client on connect
 
Hey, is it important to free handle in else statement for this:

PHP Code:

if(SQL_NumResults(Query) > 1)
    {
        
iBla[id]    = SQL_ReadResult(Query0);
        
iBlaBla[id]    = SQL_ReadResult(Query2);
        
iBlaBlaBla[id]    = SQL_ReadResult(Query3);
        
iBlaBlaBlaBla[id]    = SQL_ReadResult(Query4);
        
iBlaBlaBlaBlaBla[id]     = SQL_ReadResult(Query5);
    }
    else
    {
        new 
szTemp[512];
        
SQL_ThreadQuery(g_SqlTuple,"IgnoreHandle",szTemp);
    } 

Or isn't it a big difference with this:

PHP Code:

if(SQL_NumResults(Query) > 1)
    {
        
iBla[id]    = SQL_ReadResult(Query0);
        
iBlaBla[id]    = SQL_ReadResult(Query2);
        
iBlaBlaBla[id]    = SQL_ReadResult(Query3);
        
iBlaBlaBlaBla[id]    = SQL_ReadResult(Query4);
        
iBlaBlaBlaBlaBla[id]     = SQL_ReadResult(Query5);
    } 



All times are GMT -4. The time now is 02:14.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.