• 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]
[-] The following 1 user says Thank You to OrangePL for this post:
  • OzonE
  Reply
#5
(09-25-2012, 19:38)OrangePL Wrote: La errore di compilé Troll

[Image: stock-photo-8512592-french-thinking-cap.jpg]
[-] The following 1 user says Thank You to surtek for this post:
  • OrangePL
  Reply
#6
Moderator helping the derail
[Image: MaEIQ.png]
[-] The following 3 users say Thank You to Pozzuh for this post:
  • DidUknowiPwn, JariZ, Rendflex
  Reply
#7
Jariz. We need your sunglasses.

Now.
  Reply
#8
And explosions!
[-] The following 1 user says Thank You to JariZ for this post:
  • Rendflex
  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
[-] The following 1 user says Thank You to JariZ for this post:
  • raminr63
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  [Request] Compile this code please dozsa0 4 1,693 08-10-2013, 21:02
Last Post: Nukem
  Compile this code please First_Semyon 12 3,608 08-08-2013, 14:53
Last Post: Bandarigoda123
  Compile please this code First_Semyon 8 2,224 07-28-2013, 01:52
Last Post: First_Semyon
  Trying to compile a modified menu DidUknowiPwn 7 1,976 07-05-2013, 21:55
Last Post: DidUknowiPwn
  Help Server Script Compile Error when loading ExtremeBunkerMaker lolmoon 3 1,654 04-09-2013, 03:11
Last Post: lolmoon
  Help Server compile error unknown function megaovi 10 2,999 09-09-2011, 06:08
Last Post: megaovi

Forum Jump:


Users browsing this thread: 1 Guest(s)