AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Question (https://forums.alliedmods.net/showthread.php?t=327812)

AnimalMonster 10-11-2020 14:02

Question
 
When i use find_player on flag d does it take port of the target or just the ip without port?

Napoleon_be 10-11-2020 14:43

Re: Question
 
Why don't you test it? save it in a variable and output the outcome using chat/console/log messages.

AnimalMonster 10-11-2020 16:42

Re: Question
 
Quote:

Originally Posted by Napoleon_be (Post 2720977)
Why don't you test it? save it in a variable and output the outcome using chat/console/log messages.

It s easier asking here than wasting tjme jn editing when j got some work to do and still not finished yet.
Also instead of telling me this you could just write the answer here since you srem to know already

fysiks 10-11-2020 17:17

Re: Question
 
Quote:

Originally Posted by AnimalMonster (Post 2720990)
It s easier asking here than wasting tjme jn editing when j got some work to do and still not finished yet.
Also instead of telling me this you could just write the answer here since you srem to know already

No, it's easier and quicker to test it yourself nearly every time for a question like this. Most people won't know "for sure" if the answer is yes or no and would probably need to test it themselves or dig deep into the C-code of AMX Mod X to find the implementation to get you the answer anyways. Even digging into the C-code is not always correct because it might have been a function that has changed and we wouldn't know which version to reference.

From just a logical perspective, I would assume that "ip address" means "ip address" and not "ip address and port" but that's not a guarantee that it was implemented that way.

Also, you're lucky that you even got a respond within a day, many questions don't get an answer at all since everybody here is a volunteer.

So, testing it yourself is most often the quickest and easiest approach.


All times are GMT -4. The time now is 13:46.

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