Raised This Month: $ Target: $400
 0% 

Donation Menu with links. Compile errors?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ibanezez
SourceMod Donor
Join Date: Aug 2014
Location: Earth
Old 09-13-2014 , 16:47   Donation Menu with links. Compile errors?
Reply With Quote #1

Hey, I'm getting some compile errors here. All of the ShowMOTDPanel lines are getting compile errors, saying undefined symbol "client". I'm trying to make it link them in the MOTD to those links. What am I doing wrong?

PHP Code:
#include <sourcemod>
#pragma semicolon 1

public Plugin:MyInfo =
{
    
name "Donate",
    
author "The Doctor!",
    
description "Type !donate to open up a donate menu in-game",
    
version "1.1",
    
url "http://www.dcommunity.tk/"
}

public 
OnPluginStart()
{
    
RegAdminCmd("sm_donate"Command_Donate"Donate to the Community");
}

public 
Action:Command_Donate(clientargs)
{
    new 
Handle:menuhandle CreatePanel();
    
SetPanelTitlemenuhandle"Donate to the community" );
    
DrawPanelTextmenuhandle" \n" ); 
    
DrawPanelItemmenuhandle"Perks/Info" );
    
DrawPanelItemmenuhandle"Add The Doctor! (Owner)" );
    
DrawPanelItemmenuhandle"Add Stormageddon (Admin)" );
    
DrawPanelItemmenuhandle"Add Poop Mann (Admin)" );
    
SendPanelToClientmenuhandleclientMenuCallBackMENU_TIME_FOREVER );
    
CloseHandlemenuhandle );
}

public 
MenuCallBackHandle:menuhandleMenuAction:actionClientPosition )
{
    if(
action == MenuAction_Select)
    {
        switch( 
Position )
        {
            case 
1:
            {
                
ShowMOTDPanelclient"http://sourcebans.elementfx.com/vip2.png"MOTDPANEL_TYPE_URL );
            }
            case 
2:
            {
                
ShowMOTDPanelclient"http://www.steamcommunity.com/id/ibanezez"MOTDPANEL_TYPE_URL );
            }
            case 
3:
            {
                
ShowMOTDPanelclient"http://www.steamcommunity.com/id/poopmannn"MOTDPANEL_TYPE_URL );
            }
            case 
4:
            {
                
ShowMOTDPanelclient"http://www.steamcommunity.com/id/76571198076940184"MOTDPANEL_TYPE_URL );
            }
        }
    }

__________________
Hello

Last edited by Ibanezez; 09-13-2014 at 16:51.
Ibanezez is offline
xf117
Senior Member
Join Date: Mar 2010
Location: Russia
Old 09-13-2014 , 16:56   Re: Donation Menu with links. Compile errors?
Reply With Quote #2

Client != client
capitalization does matter.

Last edited by xf117; 09-13-2014 at 16:57.
xf117 is offline
Send a message via ICQ to xf117
Ibanezez
SourceMod Donor
Join Date: Aug 2014
Location: Earth
Old 09-13-2014 , 16:58   Re: Donation Menu with links. Compile errors?
Reply With Quote #3

There we go, that fixed it. Thanks! Weird though, I thought I tried that before.

__________________
Hello

Last edited by Ibanezez; 09-13-2014 at 16:59.
Ibanezez 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