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(client, args)
{
new Handle:menuhandle = CreatePanel();
SetPanelTitle( menuhandle, "Donate to the community" );
DrawPanelText( menuhandle, " \n" );
DrawPanelItem( menuhandle, "Perks/Info" );
DrawPanelItem( menuhandle, "Add The Doctor! (Owner)" );
DrawPanelItem( menuhandle, "Add Stormageddon (Admin)" );
DrawPanelItem( menuhandle, "Add Poop Mann (Admin)" );
SendPanelToClient( menuhandle, client, MenuCallBack, MENU_TIME_FOREVER );
CloseHandle( menuhandle );
}
public MenuCallBack( Handle:menuhandle, MenuAction:action, Client, Position )
{
if(action == MenuAction_Select)
{
switch( Position )
{
case 1:
{
ShowMOTDPanel( client, "http://sourcebans.elementfx.com/vip2.png", MOTDPANEL_TYPE_URL );
}
case 2:
{
ShowMOTDPanel( client, "http://www.steamcommunity.com/id/ibanezez", MOTDPANEL_TYPE_URL );
}
case 3:
{
ShowMOTDPanel( client, "http://www.steamcommunity.com/id/poopmannn", MOTDPANEL_TYPE_URL );
}
case 4:
{
ShowMOTDPanel( client, "http://www.steamcommunity.com/id/76571198076940184", MOTDPANEL_TYPE_URL );
}
}
}
}
__________________