AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   get_cvar_num("port") (https://forums.alliedmods.net/showthread.php?t=144210)

Backstabnoob 11-30-2010 13:44

get_cvar_num("port")
 
Why does it return "." sometimes? The "port xxxxx" is to be sure put in server.cfg too, but it's still the same.

#8 SickneSS 11-30-2010 13:59

Re: get_cvar_num("port")
 
Take it like an string.

ConnorMcLeod 11-30-2010 14:26

Re: get_cvar_num("port")
 
port is not everytime equal to real server port, better to parse server ip ( get_user_ip(0 , strtok( ':'

Vechta 11-30-2010 14:53

Re: get_cvar_num("port")
 
Want to open a new theard, but whats the easiest way to check server ip if it's different from a other IP ?

xPaw 11-30-2010 15:20

Re: get_cvar_num("port")
 
Quote:

Originally Posted by Vechta (Post 1360333)
Want to open a new theard, but whats the easiest way to check server ip if it's different from a other IP ?

equal() ..

AfteR. 11-30-2010 17:21

Re: get_cvar_num("port")
 
get_user_ip(0...

meTaLiCroSS 11-30-2010 18:26

Re: get_cvar_num("port")
 
Quote:

Originally Posted by Vechta (Post 1360333)
Want to open a new theard, but whats the easiest way to check server ip if it's different from a other IP ?

Quote:

Originally Posted by xPaw (Post 1360347)
equal() ..

ROFLMAO that's basic scripting lol.

Backstabnoob 12-08-2010 17:10

Re: get_cvar_num("port")
 
Quote:

Originally Posted by meTaLiCroSS (Post 1360484)
ROFLMAO that's basic scripting lol.

roflmaololzzlmfaoomgwtfbbq h3 dunn0w a b4sic thing rofl lol bbq.


All times are GMT -4. The time now is 11:20.

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