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

This is Mindf*ck to me.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DJ Data
SourceMod Donor
Join Date: Dec 2012
Location: Switzerland
Old 09-16-2014 , 21:03   This is Mindf*ck to me.
Reply With Quote #1

I dont even know how to understand this, it's always worked before and now.. just.. ded. Ugh.

Code
PHP Code:
            //Execute Server Group Adding
            
WaitForSetTimer CreateTimer(15.0LoadStuffTIMER_DATA_HNDL_CLOSESteamID);
        }
        
// Close Query
        
CloseHandle(hQuery);
    }
    
    
// Close connection
    
CloseHandle(connection);
    
    return 
Plugin_Handled;
}

public 
Action:LoadStuff(Handle:timerany:SteamID)
{
    
ServerCommand("sm_sql_setadmingroups \"steam\" \"&s\" \"VIP\""SteamID);

The timer keeps giving me an error for argument 4 (error 35)
SteamID = String

Im so done with this, kept me up till 3 AM.
__________________
SourcePawn Coding Level: Novice
DJ Data is offline
blaacky
Senior Member
Join Date: Oct 2012
Old 09-16-2014 , 21:05   Re: This is Mindf*ck to me.
Reply With Quote #2

It says '&s' when it should be '%s'. Also you can't pass a string through that argument.

PHP Code:
            new Handle:hData CreateDataPack();
            
WritePackString(hDataSteamID);
           
           
//Execute Server Group Adding 
            
WaitForSetTimer CreateTimer(15.0LoadStuffTIMER_DATA_HNDL_CLOSEhData); 
        } 
        
// Close Query 
        
CloseHandle(hQuery); 
    } 
     
    
// Close connection 
    
CloseHandle(connection); 
     
    return 
Plugin_Handled


public 
Action:LoadStuff(Handle:timerany:data

    
ResetPack(data);
    
    
decl String:sSteamID[32];
    
ReadPackString(datasSteamIDsizeof(sSteamID));
    
ServerCommand("sm_sql_setadmingroups \"steam\" \"%s\" \"VIP\""sSteamID); 
    
    
CloseHandle(data);


Last edited by blaacky; 09-16-2014 at 21:11.
blaacky is offline
BoBzY
AlliedModders Donor
Join Date: Aug 2010
Location: Bruxelles
Old 09-16-2014 , 22:00   Re: This is Mindf*ck to me.
Reply With Quote #3

PHP Code:
WaitForSetTimer CreateTimer(15.0LoadStuffTIMER_DATA_HNDL_CLOSEhData); 
Should be
PHP Code:
WaitForSetTimer CreateTimer(15.0LoadStuffhDataTIMER_DATA_HNDL_CLOSE); 

Last edited by BoBzY; 09-16-2014 at 22:00.
BoBzY is offline
DJ Data
SourceMod Donor
Join Date: Dec 2012
Location: Switzerland
Old 09-17-2014 , 04:55   Re: This is Mindf*ck to me.
Reply With Quote #4

It compiled, thanks everyone
__________________
SourcePawn Coding Level: Novice
DJ Data 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 22:15.


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