Raised This Month: $ Target: $400
 0% 

[help] plugin error compile please save me


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Chokitu
Senior Member
Join Date: Oct 2013
Old 10-08-2014 , 17:12   [help] plugin error compile please save me
Reply With Quote #1

I got some erros, compile its not working


Chokitu is offline
Send a message via Skype™ to Chokitu
Chokitu
Senior Member
Join Date: Oct 2013
Old 10-08-2014 , 17:13   Re: [help] plugin error compile please save me
Reply With Quote #2

The picture
http://imgur.com/rKGDN9c
Chokitu is offline
Send a message via Skype™ to Chokitu
InB
AlliedModders Donor
Join Date: Aug 2012
Location: Los Angeles
Old 10-08-2014 , 20:25   Re: [help] plugin error compile please save me
Reply With Quote #3

We can't help unless you add in the script.
or you can post the codes from line 35-80
__________________
InB is offline
Chokitu
Senior Member
Join Date: Oct 2013
Old 10-09-2014 , 05:03   Re: [help] plugin error compile please save me
Reply With Quote #4

#include <sourcemod>
#include <sdktools>
#include <cstrike>
#include <colors>

#define PLUGIN_VERSION "1.0"

public Plugin:myinfo = {
name = "Warden - Menu",
author = "Killer Boy",
version = PLUGIN_VERSION,
description = "Warden - menu",
};

public OnPluginStart()
{
RegConsoleCmd("brincar", Afficher_Menu_Bhop);
HookEvent("player_spawn", OnPlayerSpawn);
}

public Action:OnPlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast)
{
new client = GetClientOfUserId(GetEventInt(event, "userid"));
CPrintToChat(client, "");
}

public Action:Afficher_Menu_Bhop(client, args)
{
if(GetClientTeam(client) == 3) //number 3 means that if hes a counter terrorist.
{ // So this code is execly for CT
new Handle:menu = CreateMenu(bhopvip);
SetMenuTitle(menu, "Menu De Brincadeiras");
AddMenuItem(menu, "option1", "FreeDay");
AddMenuItem(menu, "option2", "Pega-Pega");
AddMenuItem(menu, "option3", "Esconde-Esconde");
AddMenuItem(menu, "option4", "Box"
SetMenuExitButton(menu, true);
DisplayMenu(menu, client, MENU_TIME_1);
}
else
{ //This code is execly for T Side, the spectators side would be 1, but I think would be useless to use a command on spectators.
PrintToChat(client, "You are not in team CT");
}
return Plugin_Handled;
}

public bhopvip(Handle:menu, MenuAction:action, client, itemNum)
{
if ( action == MenuAction_Select )
{
switch (itemNum)
{
case 0:
{
FakeClientCommand(client, "say /free");
}
case 1:
{
FakeClientCommand(client, "say /abrir");
FakeClientCommand(client, "say !slap @t 99");
FakeClientCommand(client, "say PEGA-PEGA, TR SÓ PODE MATAR CT COM FACA");
}
case 2:
{
FakeClientCommand(client, "say /abrir");
FakeClientCommand(client, "say !gravity @all 0.3");
FakeClientCommand(client, "say !freeze c 50"
FakeClientCommand(client, "say ESCONDE-ESCONDE, CT VAI FICAR PARADO NA BASE congelado, quando sair do congelado ele vai procurar os Terroristas, que só podem patar ele com arma depois do relogio estar no 3:00 antes só com faca");
}
case 3:
{
FakeClientCommand(client, "say /box");
FakeClientCommand(client, "say !abrir"
FakeClientCommand(client, "say Tr's tentam se matar,se matar CT é ban, quem sobrar da LR"
}
}
}
else if (action == MenuAction_End )
{
CloseHandle(menu);
}
}







And










#include <sourcemod>
#include <sdktools>
#include <cstrike>
#include <colors>

#define PLUGIN_VERSION "1.0"

public Plugin:myinfo = {
name = "Warden - Menu",
author = "Killer Boy",
version = PLUGIN_VERSION,
description = "Warden - menu",
};

public OnPluginStart()
{
RegConsoleCmd("free", Afficher_Menu_Bhop);
HookEvent("player_spawn", OnPlayerSpawn);
}

public Action:OnPlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast)
{
new client = GetClientOfUserId(GetEventInt(event, "userid"));
CPrintToChat(client, "");
}

public Action:Afficher_Menu_Bhop(client, args)
{
if(GetClientTeam(client) == 3) //number 3 means that if hes a counter terrorist.
{ // So this code is execly for CT
new Handle:menu = CreateMenu(bhopvip);
SetMenuTitle(menu, "FreeDays Menu");
AddMenuItem(menu, "option1", "FreeDay");
AddMenuItem(menu, "option2", "Panda FreeDay");
AddMenuItem(menu, "option3", "Zombie FreeDay");
SetMenuExitButton(menu, true);
DisplayMenu(menu, client, MENU_TIME_1);
}
else
{ //This code is execly for T Side, the spectators side would be 1, but I think would be useless to use a command on spectators.
PrintToChat(client, "Você é um guarda");
}
return Plugin_Handled;
}

public bhopvip(Handle:menu, MenuAction:action, client, itemNum)
{
if ( action == MenuAction_Select )
{
switch (itemNum)
{
case 0:
{
FakeClientCommand(client, "say /abrir");
FakeClientCommand(client, "say FREEDAY!");
}
case 1:
{
FakeClientCommand(client, "say /abrir");
FakeClientCommand(client, "say PANDA FREEDAY");
}
case 2:
{
FakeClientCommand(client, "say /abrir");
FakeClientCommand(client, "say ZOMBIE FREEDAY");
}
}
}
else if (action == MenuAction_End )
{
CloseHandle(menu);
}
}
Chokitu is offline
Send a message via Skype™ to Chokitu
DoPe^
Veteran Member
Join Date: Jul 2008
Location: Denmark / Copenhagen
Old 10-09-2014 , 08:48   Re: [help] plugin error compile please save me
Reply With Quote #5

PHP Code:
AddMenuItem(menu"option4""Box"
AddMenuItem(menu"option4""Box"); 
PHP Code:
FakeClientCommand(client"say !freeze c 50"
FakeClientCommand(client"say !freeze c 50"); 
PHP Code:
FakeClientCommand(client"say !abrir"
FakeClientCommand(client"say !abrir"); 
PHP Code:
FakeClientCommand(client"say Tr's tentam se matar,se matar CT é ban, quem sobrar da LR"
FakeClientCommand(client"say Tr's tentam se matar,se matar CT é ban, quem sobrar da LR"); 

also you havnt defined MENU_TIME_1 which is how long the menu should stay open
__________________

Last edited by DoPe^; 10-09-2014 at 08:49.
DoPe^ is offline
InB
AlliedModders Donor
Join Date: Aug 2012
Location: Los Angeles
Old 10-09-2014 , 16:38   Re: [help] plugin error compile please save me
Reply With Quote #6

Just replace 20 with the amount of seconds you want the menu to stay open, on
new MENU_TIME_1 = 20;

Code:
#include <sourcemod>
#include <sdktools>
#include <cstrike>
#include <colors>

new MENU_TIME_1 = 20;

#define PLUGIN_VERSION "1.0"

public Plugin:myinfo = {
name = "Warden - Menu",
author = "Killer Boy",
version = PLUGIN_VERSION,
description = "Warden - menu",
};

public OnPluginStart()
{
    RegConsoleCmd("brincar", Afficher_Menu_Bhop);
    HookEvent("player_spawn", OnPlayerSpawn);
}

public Action:OnPlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast)
{
    new client = GetClientOfUserId(GetEventInt(event, "userid"));
    CPrintToChat(client, "");
}

public Action:Afficher_Menu_Bhop(client, args)
{
    if(GetClientTeam(client) == 3) //number 3 means that if hes a counter terrorist.
    { // So this code is execly for CT
        new Handle:menu = CreateMenu(bhopvip);
        SetMenuTitle(menu, "Menu De Brincadeiras");
        AddMenuItem(menu, "option1", "FreeDay");
        AddMenuItem(menu, "option2", "Pega-Pega");
        AddMenuItem(menu, "option3", "Esconde-Esconde");
        AddMenuItem(menu, "option4", "Box");
        SetMenuExitButton(menu, true);
        DisplayMenu(menu, client, MENU_TIME_1);
    }
    else
    { //This code is execly for T Side, the spectators side would be 1, but I think would be useless to use a command on spectators.
        PrintToChat(client, "You are not in team CT");
    }
    return Plugin_Handled;
}

public bhopvip(Handle:menu, MenuAction:action, client, itemNum)
{
    if ( action == MenuAction_Select )
    {
        switch (itemNum)
        {
            case 0:
            {
                FakeClientCommand(client, "say /free");
            }
            case 1:
            {
                FakeClientCommand(client, "say /abrir");
                FakeClientCommand(client, "say !slap @t 99");
                FakeClientCommand(client, "say PEGA-PEGA, TR SÓ PODE MATAR CT COM FACA");
            }
            case 2:
            {
                FakeClientCommand(client, "say /abrir");
                FakeClientCommand(client, "say !gravity @all 0.3");
                FakeClientCommand(client, "say !freeze c 50");
                FakeClientCommand(client, "say ESCONDE-ESCONDE, CT VAI FICAR PARADO NA BASE congelado, quando sair do congelado ele vai procurar os Terroristas, que só podem patar ele com arma depois do relogio estar no 3:00 antes só com faca");
            }
            case 3:
            {
                FakeClientCommand(client, "say /box");
                FakeClientCommand(client, "say !abrir");
                FakeClientCommand(client, "say Tr's tentam se matar,se matar CT é ban, quem sobrar da LR");
            }
        }
    }
    else if (action == MenuAction_End )
    {
        CloseHandle(menu);
    }
}
Code:
#include <sourcemod>
#include <sdktools>
#include <cstrike>
#include <colors>

new MENU_TIME_1 = 20;

#define PLUGIN_VERSION "1.0"

public Plugin:myinfo = {
    name = "Warden - Menu",
    author = "Killer Boy",
    version = PLUGIN_VERSION,
    description = "Warden - menu",
};

public OnPluginStart()
{
    RegConsoleCmd("free", Afficher_Menu_Bhop);
    HookEvent("player_spawn", OnPlayerSpawn);
}

public Action:OnPlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast)
{
    new client = GetClientOfUserId(GetEventInt(event, "userid"));
    CPrintToChat(client, "");
}

public Action:Afficher_Menu_Bhop(client, args)
{
    if(GetClientTeam(client) == 3) //number 3 means that if hes a counter terrorist.
    { // So this code is execly for CT
        new Handle:menu = CreateMenu(bhopvip);
        SetMenuTitle(menu, "FreeDays Menu");
        AddMenuItem(menu, "option1", "FreeDay");
        AddMenuItem(menu, "option2", "Panda FreeDay");
        AddMenuItem(menu, "option3", "Zombie FreeDay");
        SetMenuExitButton(menu, true);
        DisplayMenu(menu, client, MENU_TIME_1);
    
    }
    else
    { //This code is execly for T Side, the spectators side would be 1, but I think would be useless to use a command on spectators.
        
    }
    return Plugin_Handled;
}

public bhopvip(Handle:menu, MenuAction:action, client, itemNum)
{
    if ( action == MenuAction_Select )
    {
        switch (itemNum)
        {
            case 0:
            {
                FakeClientCommand(client, "say /abrir");
                FakeClientCommand(client, "say FREEDAY!");
            }
            case 1:
            {
                FakeClientCommand(client, "say /abrir");
                FakeClientCommand(client, "say PANDA FREEDAY");
            }
            case 2:
            {
                FakeClientCommand(client, "say /abrir");
                FakeClientCommand(client, "say ZOMBIE FREEDAY");
            }
        }
    }
    else if (action == MenuAction_End )
    {
        CloseHandle(menu);
    }
}
__________________
InB is offline
Dkmuniz
Senior Member
Join Date: Jun 2013
Old 10-09-2014 , 17:00   Re: [help] plugin error compile please save me
Reply With Quote #7

kkkkkk

PT: paga pal é osso !
Dkmuniz 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 18:20.


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