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

what is wrong?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Saint Sinner
Senior Member
Join Date: Feb 2016
Old 12-20-2017 , 05:44   what is wrong?
Reply With Quote #1

Code:
#include <amxmodx> 

new cvar_ip

public plugin_init()  
{ 
    cvar_ip = register_cvar( "test", "132.168.1.103:27015" );
}

public test( ) 
{ 
    new szIP[20]; 
    get_user_ip(0, szIP, charsmax(szIP), false); 
     
    if(!equal(szIP, cvar_ip)) 
    { 
        server_cmd("quit")
        return 
    } 
}
Code:
error 035: argument type mismatch (argument 2)
warning 204: symbol is assigned a value that is never used: "cvar_ip"

Last edited by Saint Sinner; 12-20-2017 at 05:47.
Saint Sinner 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 17:29.


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