Compare IP from a file
Hey i'm currently trying to compare a ip that i have in a file with the one of a player taking damage.
I tried to use my external visual basic program to read it but it seems that it's having trouble reading it while the plugin checks and changes in the files so instead i decided to do the check in the plugin and let the program activate whenever the file is simply modified. So here is what i've Code:
#include <amxmodx>Thanks in advance for pointers and suggestions :) |
Re: Compare IP from a file
Um, what's the problem?
|
Re: Compare IP from a file
if(szIP[0] == get_cvar_string("geco_ip")){
that will compare first cell of szIP to the cvar value, use equal() to compare strings |
| All times are GMT -4. The time now is 21:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.