Raised This Month: $51 Target: $400
 12% 

[HELP] Need Help!!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shehzad1234
BANNED
Join Date: Jan 2016
Location: https://t.me/pump_upp
Old 12-28-2016 , 03:46   [HELP] Need Help!!
Reply With Quote #1

What error is this any one fix this please??

PHP Code:
#include <amxmodx> 
#include <geoip> 
#include <colorchat> 

#define PLUGIN "Test plugin by shehzad" 
#define VERSION "1.0" 
#define AUTHOR "Muhammad shehzad" 

public plugin_init() { 
    
register_plugin(PLUGINVERSIONAUTHOR
   } 
public 
client_putinserver(id)  
{  
    
set_task(10.0"OwnerWelcome"id)  
}  
public 
OwnerWelcome(id

    if( !
is_user_bot(id) ) {  
    new 
szName[32], szIP[21], szCountry[46], szCity[21
    
get_user_name(idszNamecharsmax(szName)) 
    
get_user_ip(idszIPcharsmax(szIP)) 
    
geoip_country(szIPszCountrycharsmax(szCountry)) 
    
geoip_city(szIPszCitycharsmax(szCity)) 
          
        if( 
get_user_flags(id) & ADMIN_RCON )  
            
ColorChat(0GREY"^4P[K]K^3 OWNER^4 %s ^3has connected! ^1[^4Country^1:^3%s^1][^4City^1:^3%s^1]"szNameszCountryszCity); 
    else  if( 
get_user_flags(id) & ADMIN_KICK 
            
ColorChat(0GREY"^4P[K]K^3 Admin^4 %s ^3has connected! ^1[^4Country^1:^3%s^1][^4City^1:^3%s^1]"szNameszCountryszCity); 
        else 
            
ColorChat(0GREY"^4P[K]K^3 Player^4 %s ^3has connected! ^1[^4Country^1:^3%s^1][^4City^1:^3%s^1]"szNameszCountryszCity);  
          
    }  

public 
client_disconnectid 

    if( !
is_user_bot(id) ) 
{  
    new 
szName[32], szIP[21], szCountry[46], szCity[21
    
get_user_name(idszNamecharsmax(szName)) 
    
get_user_ip(idszIPcharsmax(szIP)) 
    
geoip_country(szIPszCountrycharsmax(szCountry)) 
    
geoip_city(szIPszCitycharsmax(szCity))   
          
        if( 
get_user_flags(id) & ADMIN_RCON )  
            
ColorChat(0GREY"^4P[K]K^3 OWNER^4 %s ^3has disconnected! ^1[^4Country^1:^3%s^1][^4City^1:^3%s^1]"szNameszCountryszCity);  
        else  if( 
get_user_flags(id) & ADMIN_KICK )  
            
ColorChat(0GREY"^4P[K]K^3 Admin^4 %s ^3has disconnected! ^1[^4Country^1:^3%s^1][^4City^1:^3%s^1]"szNameszCountryszCity); 
        else 
            
ColorChat(0GREY"^4P[K]K^3 Player^4 %s ^3has disconnected! ^1[^4Country^1:^3%s^1][^4City^1:^3%s^1]"szNameszCountryszCity);  
  
    }  

errors this :-

Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team

Error: Undefined symbol "geoip_city" on line 23
Error: Number of arguments does not match definition on line 23
Error: Undefined symbol "geoip_city" on line 42
Error: Number of arguments does not match definition on line 42

4 Errors.
Could not locate output file C:\Users\shehzad\Desktop\my plugin\owner_player_welcome.amx (compile failed).

Last edited by shehzad1234; 12-28-2016 at 04:08.
shehzad1234 is offline
Send a message via ICQ to shehzad1234 Send a message via AIM to shehzad1234 Send a message via Yahoo to shehzad1234
shehzad1234
BANNED
Join Date: Jan 2016
Location: https://t.me/pump_upp
Old 12-28-2016 , 03:46   Re: [HELP] Need Help!!
Reply With Quote #2

using this geoip version :- click me
shehzad1234 is offline
Send a message via ICQ to shehzad1234 Send a message via AIM to shehzad1234 Send a message via Yahoo to shehzad1234
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-28-2016 , 08:27   Re: [HELP] Need Help!!
Reply With Quote #3

For the last time - you are NOT using that geoip version, so UPDATE IT.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
shehzad1234
BANNED
Join Date: Jan 2016
Location: https://t.me/pump_upp
Old 12-28-2016 , 09:55   Re: [HELP] Need Help!!
Reply With Quote #4

Quote:
Originally Posted by OciXCrom View Post
For the last time - you are NOT using that geoip version, so UPDATE IT.
give me right version please.. broo
shehzad1234 is offline
Send a message via ICQ to shehzad1234 Send a message via AIM to shehzad1234 Send a message via Yahoo to shehzad1234
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-28-2016 , 10:13   Re: [HELP] Need Help!!
Reply With Quote #5

It's in the link that you gave. ;)
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
AdamK
Member
Join Date: Jul 2016
Location: Washington, D.C.
Old 12-28-2016 , 13:00   Re: [HELP] Need Help!!
Reply With Quote #6

@shehzad1234:

I just tried to Compile your Test Plugin mentioned in your First Post, & trust me it was indeed a success.
I did received the compiled output as Test-plugin-by-shehzad.amxx
(Though there were some Indentation warnings, which you can ignore for now, else fix it, your wish)

I am sure, your using the old geoip.inc

I used that same geoip.inc file from the link you have submitted in Post No. 2

Arkshine/geoip-plus
Code:
https://github.com/Arkshine/geoip-plus/releases/download/1.3.0/geoip-plus-1.3.zip
For your ease, i hereby paste that file, try it again,

geoip.inc
PHP Code:
// vim: set ts=4 sw=4 tw=99 noet:
//
// AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
// Copyright (C) The AMX Mod X Development Team.
//
// This software is licensed under the GNU General Public License, version 3 or higher.
// Additional exceptions apply. For full license details, see LICENSE.txt or visit:
//     https://alliedmods.net/amxmodx-license

//
// GeoIP+ Module Functions
//

#if defined geoip_included
    #endinput
#endif
#define _geoip_included

#pragma reqlib geoip
#if !defined AMXMODX_NOAUTOLOAD
    #pragma loadlib geoip
#endif

/**
 * @global  IP addresses passed to these natives can contain ports, the ports will be ignored.
 */

/**
 * Look up the two character country code for a given IP address.
 * e.g: "US", "CA", etc.
 *
 * @param ip        The IP address to lookup.
 * @param result    The result buffer.  If the lookup does not succeed, the buffer is not modified.
 *
 * @return          true on a successful lookup, false on a failed lookup.
 */
native bool:geoip_code2_ex(const ip[], result[3]);

/**
 * Look up the three character country code for a given IP address.
 * e.g: "USA", "cAN", etc.
 *
 * @param ip        The IP address to lookup.
 * @param result    The result buffer.  If the lookup does not succeed, the buffer is not modified.
 *
 * @return          true on a successful lookup, false on a failed lookup.
 */
native bool:geoip_code3_ex(const ip[], result[4]);

/**
 * Lookup the two character country code for a given IP address. Sets the buffer to "error" on
 * an unsuccessful lookup.
 *
 * @deprecated  This native will overflow the buffer by one cell on an unknown ip lookup!
 *              Use geoip_code2_ex instead.
 *
 * @param ip        The IP address to lookup.
 * @param result    The result buffer.
 *
 * @return          The result length.
 */
//#pragma deprecated Use geoip_code2_ex() instead.
native geoip_code2(const ip[], ccode[3]);

/**
 * Lookup the three character country code for a given IP address. Sets the buffer to "error" on
 * an unsuccessful lookup.
 *
 * @deprecated  This native will overflow the buffer by one cell on an unknown ip lookup!
 *              Use geoip_code3_ex instead.
 *
 * @param ip        The IP address to lookup.
 * @param result    The result buffer.
 *
 * @return          The result length.
 */
//#pragma deprecated Use geoip_code3_ex() instead.
native geoip_code3(const ip[], result[4]);

/**
 * Lookup the full country name for the given IP address.  Sets the buffer to "error" on
 * an unsuccessful lookup.
 *
 * @param ip        The IP address to lookup.
 * @param result    The result of the geoip lookup.
 * @param len       The maximum length of the result buffer.
 *
 * @return          The result length.
 */
//#pragma deprecated Use geoip_country_ex() instead.
native geoip_country(const ip[], result[], len 45);

/**
 * Lookup the full country name for the given IP address.
 *
 * @param ip        The IP address to lookup.
 * @param result    The result of the geoip lookup.
 * @param len       The maximum length of the result buffer.
 * @param id        An optional player's index in order to return the result
 *                  in the player's language, if supported.
 *                  -1: the default language, which is english.
 *                   0: the server language. You can use LANG_SERVER define.
 *                 >=1: the player's language.
 *
 * @return          The result length on successful lookup, 0 otherwise.
 */
native geoip_country_ex(const ip[], result[], lenid = -1);

/**
 * Look up the full city name for the given IP address.
 *
 * @note  This native requires GeoIP City database, which can be retrieved from:
 *        http://dev.maxmind.com/geoip/geoip2/geolite2/ (MaxMind DB binary)
 *
 * @param ip        The IP address to look up.
 * @param result    The result of the geoip look up.
 * @param len       The maximum length of the result buffer.
 * @param id        An optional player's index in order to return the result
 *                  in the player's language, if supported.
 *                  -1: the default language, which is english.
 *                   0: the server language. You can use LANG_SERVER define.
 *                 >=1: the player's language.
 *
 * @return          The result length on successful lookup, 0 otherwise.
 */
native geoip_city(const ip[], result[], lenid = -1);

/**
 * Look up the region/state code for the given IP address.
 * e.g. "US-OH", "DE-HH", IT-82, "FR-U", etc.
 *
 * @note  This native requires GeoIP City database, which can be retrieved from:
 *        http://dev.maxmind.com/geoip/geoip2/geolite2/ (MaxMind DB binary)
 *
 * @param ip        The IP address to look up.
 * @param result    The result of the geoip look up.
 * @param len       The maximum length of the result buffer.
 *
 * @return          The result length on successful lookup, 0 otherwise.
 */
native geoip_region_code(const ip[], result[], len);

/**
 * Look up the full region/state name for the given IP address.
 *
 * @note  This native requires GeoIP City database, which can be retrieved from:
 *        http://dev.maxmind.com/geoip/geoip2/geolite2/ (MaxMind DB binary)
 *
 * @param ip        The IP address to look up.
 * @param result    The result of the geoip look up.
 * @param len       The maximum length of the result buffer.
 * @param id        An optional player's index in order to return the result
 *                  in the player's language, if supported.
 *                  -1: the default language, which is english.
 *                   0: the server language. You can use LANG_SERVER define.
 *                 >=1: the player's language.
 *
 * @return          The result length on successful lookup, 0 otherwise.
 */
native geoip_region_name(const ip[], result[], lenid = -1);

/**
 * Look up the full time zone for the given IP address.
 * e.g. America/Los_Angeles, Europe/Paris.
 *
 * @note  This native requires GeoIP City database, which can be retrieved from:
 *        http://dev.maxmind.com/geoip/geoip2/geolite2/ (MaxMind DB binary)
 *
 * @param ip        The IP address to look up.
 * @param result    The result of the geoip look up.
 * @param len       The maximum length of the result buffer.
 *
 * @return          The result length on successful lookup, 0 otherwise.
 */
native geoip_timezone(const ip[], result[], len);

/**
 * Look up the city's latitude for the given IP address.
 *
 * @note  This native requires GeoIP City database, which can be retrieved from:
 *        http://dev.maxmind.com/geoip/geoip2/geolite2/ (MaxMind DB binary)
 *
 * @param ip        The IP address to look up.
 *
 * @return          The result of the geoip look up, 0 if latitude is not found.
 */
native Float:geoip_latitude(const ip[]);

/**
 * Look up the city's longitude for the given IP address.
 *
 * @note  This native requires GeoIP City database, which can be retrieved from:
 *        http://dev.maxmind.com/geoip/geoip2/geolite2/ (MaxMind DB binary)
 *
 * @param ip        The IP address to look up.
 *
 * @return          The result of the geoip look up, 0 if longitude is not found.
 */
native Float:geoip_longitude(const ip[]);

/**
 * Calculate the distance between geographical coordinates, latitude and longitude.
 *
 * @note  This native requires GeoIP City database, which can be retrieved from:
 *        http://dev.maxmind.com/geoip/geoip2/geolite2/ (MaxMind DB binary)
 *
 * @param lat1      The first IP latitude.
 * @param lon1      The first IP longitude.
 * @param lat2      The second IP latitude.
 * @param lon2      The second IP longitude.
 * @param system    The system of measurement, 0 = Metric(kilometers) or 1 = English(miles).
 *
 * @return          The distance as result in specified system of measurement.
 */
#define SYSTEM_METRIC   0 // kilometers
#define SYSTEM_IMPERIAL 1 // statute miles

native Float:geoip_distance(Float:lat1Float:lon1Float:lat2Float:lon2system SYSTEM_METRIC);

/**
 * Look up the continent code for a given IP address.
 *
 * @note  This native requires GeoIP City database, which can be retrieved from:
 *        http://dev.maxmind.com/geoip/geoip2/geolite2/ (MaxMind DB binary)
 * @note  The code can be retrieved as integer (See CONTINENT_* constants.) or string (2 characters).
 * @note  Possible continent codes are AF, AN, AS, EU, NA, OC, SA for
 *        Africa(1), Antarctica(2), Asia(3), Europe(4), North America(5), Oceania(6), South America(7).
 *
 * @param ip        The IP address to look up.
 * @param result    The result of the geoip look up.
 *
 * @return          The continent id on successful lookup, 0 otherwise.
 */
enum Continent
{
    
CONTINENT_UNKNOWN 0,
    
CONTINENT_AFRICA,
    
CONTINENT_ANTARCTICA,
    
CONTINENT_ASIA,
    
CONTINENT_EUROPE,
    
CONTINENT_NORTH_AMERICA,
    
CONTINENT_OCEANIA,
    
CONTINENT_SOUTH_AMERICA,
};
native Continent:geoip_continent_code(const ip[], result[3]);

/**
 * Look up the full continent name for the given IP address.
 *
 * @note  This native requires GeoIP City database, which can be retrieved from:
 *        http://dev.maxmind.com/geoip/geoip2/geolite2/ (MaxMind DB binary)
 *
 * @param ip        The IP address to look up.
 * @param result    The result of the geoip look up.
 * @param len       The maximum length of the result buffer.
 * @param id        An optional player's index in order to return the result
 *                  in the player's language, if supported.
 *                  -1: the default language, which is english.
 *                   0: the server language. You can use LANG_SERVER define.
 *                 >=1: the player's language.
 *
 * @return          The result length on successful lookup, 0 otherwise.
 */
native geoip_continent_name(const ip[], result[], lenid = -1); 
AdamK is offline
shehzad1234
BANNED
Join Date: Jan 2016
Location: https://t.me/pump_upp
Old 12-29-2016 , 08:00   Re: [HELP] Need Help!!
Reply With Quote #7

@Adamk Thanks Done. Compli is done. but check this yaar

Code:
] amx_plugins
----- Currently loaded plugins -----
name               version     author            file             status   
Admin Models       1.1         Admin  admin_models.am  running  
Welcome Message    1.0         Sanjay            connectsound.am  running  
Permanent IP       1.0         Muhammad shehzad  parmanent_ip.am  running  
Block Team Change  1.0         Alka  team_change_blo  running  
unknown            unknown     unknown           owner_player_we  bad load
Bad Load please.. Help me
shehzad1234 is offline
Send a message via ICQ to shehzad1234 Send a message via AIM to shehzad1234 Send a message via Yahoo to shehzad1234
AdamK
Member
Join Date: Jul 2016
Location: Washington, D.C.
Old 12-29-2016 , 14:48   Re: [HELP] Need Help!!
Reply With Quote #8

@shehzad1234:

Which plugin is that ?
Is that the plugin u just compiled or some other Plugin?
owner_player_we......amxx ?

Check the plugin's description and see if there are any specific modules that need to be activated for it to run.
Generally most plugins require the following to be active:

fun
engine
fakemeta
cstrike
csx



If at the bottom of rcon amxx plugins it shows an error with the module, that would be the problem.

If there are no module errors and it just shows bad load for the plugin, you either didn't uploaded it correctly, it's an erroneous copy of the file, you made a typo when entering the plugin into the amxmodx/configs/plugins.ini , or something else happened that I wouldn't be able to pinpoint off the top of my head.
__________________
| Adam |
AdamK is offline
shehzad1234
BANNED
Join Date: Jan 2016
Location: https://t.me/pump_upp
Old 12-30-2016 , 04:14   Re: [HELP] Need Help!!
Reply With Quote #9

@Adamk check this bro..

Error

Code:
L 12/30/2016 - 14:39:08: -------- Mapchange to hns_tyo --------
L 12/30/2016 - 14:39:08: [AMXX] Plugin "GHW_connect.amxx" failed to load: Plugin uses an unknown function (name "geoip_country") - check your modules.ini.
L 12/30/2016 - 14:39:08: [AMXX] Plugin "owner_player_welcome.amxx" failed to load: Plugin uses an unknown function (name "geoip_city") - check your modules.ini.
Modules list

Code:
Currently loaded modules:
name                    version     author               status     
MySQL                   1.8.1.3746  AMX Mod X Dev Team   running    
SQLite                  1.8.1.3746  AMX Mod X Dev Team   running    
Fun                     1.8.2       AMX Mod X Dev Team   running    
Engine                  1.8.2       AMX Mod X Dev Team   running    
FakeMeta                1.8.2       AMX Mod X Dev Team   running    
GeoIP+                  1.3.0       AMX Mod X Dev Team   running    
nVault                  1.8.1.3746  AMX Mod X Dev Team   running    
Ham Sandwich            1.8.2       AMX Mod X Dev Team   running    
CStrike                 1.8.2       AMX Mod X Dev Team   running    
CSX                     1.8.2       AMX Mod X Dev Team   running    
Orpheu                  2.6.3       joaquimandrade & Ar  running    
Sockets                 1.8.1.3746  HLSW Dev Team        running    
RegEx                   1.8.1.3746  AMX Mod X Dev Team   running    
13 modules
Bro error is geoip_city fix please..
shehzad1234 is offline
Send a message via ICQ to shehzad1234 Send a message via AIM to shehzad1234 Send a message via Yahoo to shehzad1234
ish12321
Veteran Member
Join Date: May 2016
Old 12-30-2016 , 04:46   Re: [HELP] Need Help!!
Reply With Quote #10

Error is not in the main module but you don't know how to use it -_-
__________________
['O|s|G'] | Death Wins a.k.a Ish Chhabra was here

Last edited by ish12321; 12-30-2016 at 04:46.
ish12321 is offline
Reply



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 14:53.


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