AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   checking how many digits in steamid (https://forums.alliedmods.net/showthread.php?t=46025)

LittleDude 10-16-2006 22:49

checking how many digits in steamid
 
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?

teame06 10-16-2006 22:58

Re: checking how many digits in steamid
 
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     } }

P34nut 10-17-2006 03:41

Re: checking how many digits in steamid
 
The str_len() function does not exist.. its strlen()....


All times are GMT -4. The time now is 04:54.

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