Raised This Month: $ Target: $400
 0% 

Please fix code


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
echo_cs
Senior Member
Join Date: Dec 2011
Old 02-11-2012 , 12:56   Re: Please fix code
Reply With Quote #1

Not Correct:
PHP Code:
 if(!is_user_steam(id)) 
        { 
                return 
PLUGIN_HANDLED
        } 
This is The Correct:
PHP Code:
new SteamID[50]
new 
Steam get_user_authid(idSteamID49)

if(
Steam == STEAM_ID_LAN)
    return 
PLUGIN_CONTINUE 
__________________
Pawn (5%)

C (80%)

C++ (20%)

SQL (5%)

Last edited by echo_cs; 02-11-2012 at 12:56.
echo_cs is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-11-2012 , 13:05   Re: Please fix code
Reply With Quote #2

All users have a proper SteamID on a Steam server. If they don't then you won't get any support here.

Quote:
Originally Posted by echo_cs View Post
Not Correct:
PHP Code:
 if(!is_user_steam(id)) 
        { 
                return 
PLUGIN_HANDLED
        } 
This is The Correct:
PHP Code:
new SteamID[50]
new 
Steam get_user_authid(idSteamID49)

if(
Steam == STEAM_ID_LAN)
    return 
PLUGIN_CONTINUE 
That is even worse than what he had.
__________________
fysiks is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:51.


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