PDA

View Full Version : İ Cant Found Error


mithat999
06-20-2016, 17:46
İ WANT TO MAKE MENU FOR MY JB SERVER BUT JUST FOR CT SOME ONE HELP ME :s


#include <sourcemod>
public Plugin:myinfo =
{
name = "Kısa Komutlar",
author = "Mithat Guner",
description = "Rebels FUN Server Komutlar",
version = "1.0",
}
public OnPluginStart()
{
/* Cete Savaşları */
RegAdminCmd("sm_cetesavaslari", Command_cetesavaslari, ADMFLAG_RCON, "Cete Savaslari")
/* Zombi Mod */
RegAdminCmd("sm_ncm", Command_ncm, ADMFLAG_RCON, "Kendine Noclip Verir")
/* CT Ye Noclip Verir */
RegAdminCmd("sm_nct", Command_nct, ADMFLAG_RCON, "CT Ye Noclip Verir")
/* JB Oyunlari */
RegConsoleCmd("panel_ctoyunlar", Panel_Ctoyunlar);
}
public int PanelHandler1(Menu menu, MenuAction action, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, int param10)
{
if (action == MenuAction_Select)
{
ServerCommand(param1, "sm_ffac");
ServerCommand(param2, "sm_ffkapat");
ServerCommand(param3, "sm_fat");
ServerCommand(param4, "sm_fac");
ServerCommand(param5, "sm_weapon @all weapon_ak47");
ServerCommand(param5, "sm_hpver @ct 7500");
PrintToServer(param5, "ZOMBI MOD AKTIF EDILMISTIR!!);
ServerCommand(param6, "sm_god @ct 1");
ServerCommand(param7, "sm_tele @ct");
ServerCommand(param8, "sm_korumaoyla");
ServerCommand(param9, "sm_gel @t");
ServerCommand(param10, "sm_drug @t 1");
PrintToChat("Plugin'i Yazan [REBELS]Mithat Guner");
} else if (action == MenuAction_Cancel) {
PrintToServer("CT Menu Kapatildi");
}
}
public Action Panel_Ctoyunlar(int client, intargs)
{
Panel panel = new Panel();
panel.SetTitle("CT Oyun Menusu");
panel.DrawItem("FF AC");
panel.DrawItem("FF KAPAT");
panel.DrawItem("Freeze AT");
panel.DrawItem("Freeze Ac");
panel.DrawItem("Zombi Oynat");
panel.DrawItem("God Al");
panel.DrawItem("Bug'dan Kurtul");
panel.DrawItem("Koruma Al");
panel.DrawItem("Mahkumlari Yanina Cek");
panel.DrawItem("Mahkumlara Drug Ver");
panel.DrawItem("Plugin Hakkinda");


panel.Send(client, PanelHandler1, 20);

delete panel;

return Plugin_Handled;
}
public Action:Command_cetesavaslari(client, args)
{
ServerCommand("mp_scrambleteams 1");
ServerCommand("sm_rr");
ServerCommand("sm_weapon @all weapon_ak47");
ServerCommand("sm_weapon @all weapon_deagle");
return Plugin_Handled;
}
public Action:Command_ncm(client, args)
{
ServerCommand(client, "sm_noclip")
}
public Action:Command_nct(client, args)
{
ServerCommand(client, "sm_noclip @ct")
}



THERE İS A COMPİLER ERROR

/home/groups/sourcemod/upload_tmp/php2596XB.sp(29) : error 035: argument type mismatch (argument 1)
/home/groups/sourcemod/upload_tmp/php2596XB.sp(30) : error 035: argument type mismatch (argument 1)
/home/groups/sourcemod/upload_tmp/php2596XB.sp(31) : error 035: argument type mismatch (argument 1)
/home/groups/sourcemod/upload_tmp/php2596XB.sp(32) : error 035: argument type mismatch (argument 1)
/home/groups/sourcemod/upload_tmp/php2596XB.sp(33) : error 035: argument type mismatch (argument 1)
/home/groups/sourcemod/upload_tmp/php2596XB.sp(34) : error 035: argument type mismatch (argument 1)
/home/groups/sourcemod/upload_tmp/php2596XB.sp(35) : warning 217: loose indentation
/home/groups/sourcemod/upload_tmp/php2596XB.sp(35) : error 035: argument type mismatch (argument 1)
/home/groups/sourcemod/upload_tmp/php2596XB.sp(36) : warning 217: loose indentation
/home/groups/sourcemod/upload_tmp/php2596XB.sp(36) : error 035: argument type mismatch (argument 1)
/home/groups/sourcemod/upload_tmp/php2596XB.sp(37) : error 035: argument type mismatch (argument 1)
/home/groups/sourcemod/upload_tmp/php2596XB.sp(38) : error 035: argument type mismatch (argument 1)
/home/groups/sourcemod/upload_tmp/php2596XB.sp(39) : error 035: argument type mismatch (argument 1)
/home/groups/sourcemod/upload_tmp/php2596XB.sp(40) : error 035: argument type mismatch (argument 1)
/home/groups/sourcemod/upload_tmp/php2596XB.sp(41) : error 035: argument type mismatch (argument 1)
/home/groups/sourcemod/upload_tmp/php2596XB.sp(63) : error 100: function prototypes do not match
/home/groups/sourcemod/upload_tmp/php2596XB.sp(80) : error 035: argument type mismatch (argument 1)
/home/groups/sourcemod/upload_tmp/php2596XB.sp(84) : error 035: argument type mismatch (argument 1)

16 Errors.

cravenge
06-21-2016, 09:50
Hmmm, strange coding but it's obviously have to do with those lines. BTW, ServerCommand doesn't work like that, the example below is:

ServerCommand("sv_lan 1", client);