Raised This Month: $ Target: $400
 0% 

checking how many digits in steamid


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LittleDude
Member
Join Date: Dec 2004
Location: Selah, WA
Old 10-16-2006 , 22:49   checking how many digits in steamid
Reply With Quote #1

okay i have a set_task function to get the steamid of the user, but how do i filter out the steamids to see if the steamid has like lets say someone comes in the server and they have 5 digits or less, and i don't want those pro players in the server, so it checks their steamid, how would i check if it has 5 digits or less?
__________________
It is stupid to be stupid, and stupid to not be stupid
LittleDude is offline
Send a message via AIM to LittleDude
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 10-16-2006 , 22:58   Re: checking how many digits in steamid
Reply With Quote #2

I think that should work.

Code:
public do_function(index) {     //STEAM_0:0:     //0123456789         new authid[32];     get_user_authid(index, authid, 31);         new len = str_len(authid[10]);         if(len < 6)     {         //do stuff     } }
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
P34nut
AMX Mod X Beta Tester
Join Date: Feb 2006
Location: Netherlands
Old 10-17-2006 , 03:41   Re: checking how many digits in steamid
Reply With Quote #3

The str_len() function does not exist.. its strlen()....
__________________
All you need to change the world is one good lie and a river of blood
P34nut is offline
Reply


Thread Tools
Display Modes

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 04:54.


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