Raised This Month: $ Target: $400
 0% 

Reserved Championship slots


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
VisioNN
Junior Member
Join Date: Jan 2013
Old 08-08-2013 , 13:15   Reserved Championship slots
Reply With Quote #1

i had this error
"error 006: must be assigned to an array"
know anyone how to fix it?

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>

#define ACCESS ADMIN_SLAY


new steam[40];

public 
plugin_init() 
{
    
register_plugin("reserved,"1.0","VisioN")
    register_logevent("
roundstart", 2, "1=Round_Start")
    steam[1]="
STEAM_0:0:658786799";
    steam[2]="
STEAM_0:0:543534534";


}

public roundstart(id)
{
   set_task(0.7, "
client_connect", id)
}

public client_connect(id)
{
    new k=0, authid[32], i, userid2;
    userid2 = get_user_userid(id)
    get_user_authid(id, authid, 31)
    
    
    for(i=0;i<=40;i++)
    {    
        if(steam = authid)
        {
            k=1;
        }
    }
    if(k=0)
    {
    server_cmd("
kick #%d", userid2)

    
}



Last edited by VisioNN; 08-08-2013 at 13:16.
VisioNN is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 08-08-2013 , 14:59   Re: Reserved Championship slots
Reply With Quote #2

What are you trying to do?
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
VisioNN
Junior Member
Join Date: Jan 2013
Old 08-08-2013 , 16:10   Re: Reserved Championship slots
Reply With Quote #3

a plugin who kick's from server clients who haven't a specific steamid

eq.
if a player enter on server and he doesn't have one of these steamid will get kick from server
PHP Code:
    steam[1]="STEAM_0:0:658786799";
    
steam[2]="STEAM_0:0:543534534"
VisioNN is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-08-2013 , 16:17   Re: Reserved Championship slots
Reply With Quote #4

Neither of those SteamID's are valid
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 08-08-2013 , 16:38   Re: Reserved Championship slots
Reply With Quote #5

Code:
#include <amxmodx> new steam[][] = {     "STEAM_0:0:658786799",     "STEAM_0:0:543534534" }; public plugin_init() {     register_plugin("reserved","1.0","VisioN");     } public client_authorized(id) {     new authid[32];     get_user_authid(id, authid, 31)         for ( new i = 0 ; i <= sizeof steam ; i++ ) {         if ( equali(steam[i], authid) ) {             return;         }     }         server_cmd("kick #%d", get_user_userid(id)) }
__________________
Black Rose is offline
VisioNN
Junior Member
Join Date: Jan 2013
Old 08-08-2013 , 16:41   Re: Reserved Championship slots
Reply With Quote #6

PHP Code:
if ( equali(steam[i], authid) ) {
            return;
        } 
that dont work....

Last edited by VisioNN; 08-08-2013 at 17:35.
VisioNN is offline
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 08-08-2013 , 18:44   Re: Reserved Championship slots
Reply With Quote #7

Whynot?
mottzi is offline
Send a message via MSN to mottzi
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-08-2013 , 18:49   Re: Reserved Championship slots
Reply With Quote #8

Have you tried valid SteamIDs?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
VisioNN
Junior Member
Join Date: Jan 2013
Old 08-08-2013 , 19:02   Re: Reserved Championship slots
Reply With Quote #9

yes i put my steamid and i invite 4 friends who haven't steamid in plugin and server don't kick them...
VisioNN is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-08-2013 , 19:08   Re: Reserved Championship slots
Reply With Quote #10

The reason why I asked is because the 2 SteamID's you provided are not valid. To make sure, you are using a 100% Steam Only server?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou 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 15:53.


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