Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help compile errore
#1
Hi

can someone help me about this problem :


Error 1 'Addon.CPlugin' does not contain a definition for 'PlayerSuicide'

---------------------------------------

public bool warnPlayer(ServerClient target, string reason)
{
int num = 0;
reason = reason.Trim();
reason = this.reasonParser(reason);
string message = "";
if (this.playerWarnings.TryGetValue(target.XUID, out num))
{
num++;
if (num >= this.kickWarnings)
{
message = base.GetServerCFG("Admin", "warnkickmessage", "<playername> was kicked for <reason>").Replace("<playername>", target.Name).Replace("<reason>", reason).Replace("<warningcount>", num.ToString());
base.ServerSay(message, true);
base.PlayerSuicide(target.ClientNum);
this.playerWarnings.Remove(target.XUID);
this.warningTime.Remove(target.XUID);
this.playerWarnings.Add(target.XUID, 0);
return true;
}
----------------------------------------------------------
Reply

#2
Remove addon.dll as reference, download newest addon.dll and add it again as reference.
[Image: azuw.jpg]
Reply

#3
i know in newest there is no error.
But i need to replace it with other things ?!( i use 1.204 version)
Reply

#4
La errore di compil Troll
[Image: lQDUjba.jpg]
Reply

#5
(09-25-2012, 19:38)OrangePL Wrote: La errore di compil Troll

[Image: stock-photo-8512592-french-thinking-cap.jpg]
Reply

#6
Moderator helping the derail
[Image: MaEIQ.png]
Reply

#7
Jariz. We need your sunglasses.

Now.
Reply

#8
And explosions!
Reply

#9
here you just take a party Sad
I have a problem and now see your question (with spam just you want increase your point's Sad )

pleas guys put away joking and help me!!!
Reply

#10
(09-25-2012, 18:46)raminr63 Wrote: i know in newest there is no error.
But i need to replace it with other things ?!( i use 1.204 version)

No, You are using a older version.
The most up to date version is v1.414
Stop complaining because you already got the answer;
Update addon.dll
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Request] Compile this code please dozsa0 4 3,821 08-10-2013, 21:02
Last Post: Nukem
  Compile this code please First_Semyon 12 8,910 08-08-2013, 14:53
Last Post: Bandarigoda123
  Compile please this code First_Semyon 8 5,194 07-28-2013, 01:52
Last Post: First_Semyon
  Trying to compile a modified menu DidUknowiPwn 7 5,289 07-05-2013, 21:55
Last Post: DidUknowiPwn
  Help Server Script Compile Error when loading ExtremeBunkerMaker lolmoon 3 3,659 04-09-2013, 03:11
Last Post: lolmoon
  Help Server compile error unknown function megaovi 10 6,366 09-09-2011, 06:08
Last Post: megaovi

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.