Thread: [Subplugin Submission] [ZP] Addon: Web Stats v0.2.5
View Single Post
pirvu
Senior Member
Join Date: Apr 2009
Location: Here and There [ro]
Old 11-15-2009 , 14:50   Re: [ZP] Web Stats
Reply With Quote #7

Good job .
Try use switches instead of else and ifs?

PHP Code:

    
if (get_pcvar_num(g_CvarAuthType) == 1)
    {
        
copy(whereis,9,"steam_id")
        
copy(uniqid,31,g_UserAuthID[id])
    }
    else
    if (
get_pcvar_num(g_CvarAuthType) == 2)
    {
        
copy(whereis,9,"ip")
        
copy(uniqid,31,g_UserIP[id])
    }
    else
    if (
get_pcvar_num(g_CvarAuthType) == 3)
    {
        
copy(whereis,9,"nick")
        
copy(uniqid,31,g_UserName[id])
    } 
--->

PHP Code:

    
switch(get_pcvar_num(g_CvarAuthType) ) 
__________________
Http://pirvu.mybrute.com <- Try my BRUTE! If you dare!

Last edited by pirvu; 11-15-2009 at 14:54.
pirvu is offline
Send a message via Yahoo to pirvu Send a message via Skype™ to pirvu