Raised This Month: $ Target: $400
 0% 

Solved Save, read and compare user IP in fvault


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
The overrated maniac
Member
Join Date: Jun 2021
Location: Argentina
Old 07-04-2021 , 01:39   Re: Save, read and compare user IP in fvault
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
There are several major issues with this plugin. The first is that you aren't looking at the data in the vault at all. You get it from the vault but you don't actually do anything with it. Though I'm confident you're not setting and getting the data to and from the vault properly. You're also wrongly using both of your global variables. In fact, neither of those global variables should exist in this plugin.

It would probably be easier to help you with this if you can explain what you are actually trying to do.
Okay, then I should make another post in plugins request I guess..

What I'm trying to do is get the user ip when he joins and save it in a string. Then read the vault data and compare if the user IP is in it. The saveds ip are added manually with the command "amx_save_ip <ip>".
If the user IP exist in the file, do something. Else, do other thing.
The overrated maniac is offline
 



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 02:29.


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