Raised This Month: $51 Target: $400
 12% 

What is this error (and is there some place I can look up errors?)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Xenogenetics
Member
Join Date: Jul 2007
Old 07-16-2007 , 18:16   What is this error (and is there some place I can look up errors?)
Reply With Quote #1

error 100: function prototypes do not match

I also get a bunch of tag mismatch warnings
Xenogenetics is offline
BAILOPAN
Join Date: Jan 2004
Old 07-16-2007 , 22:33   Re: What is this error (and is there some place I can look up errors?)
Reply With Quote #2

We don't yet have docs on the errors. That error means you're trying to pass a callback that doesn't match what the function wants.

You may wish to post your code so people can see what's wrong.
__________________
egg
BAILOPAN is offline
Xenogenetics
Member
Join Date: Jul 2007
Old 07-17-2007 , 10:38   Re: What is this error (and is there some place I can look up errors?)
Reply With Quote #3

Code:
RegConsoleCmd("say",Color_player, "say color <color> to color yourself")
Is the line getting that error

Code:
public Action:Color_player(client)
{
 new String:text[192]
 GetCmdArgString(text, sizeof(text))
 
 new startidx = 0
 if (text[0] == '"')
 {
  startidx = 1
  new len = strlen(text);
  if (text[len-1] == '"')
  {
   text[len-1] = '\0'
  }
 }
 
 if (StrEqual(text[startidx], "color"))
 {
 
  if (StrEqual(text[6],"red")){
   set_rendering(client, 1, 255, 0, 0, 1, 255)
  } else if (StrEqual(text[6],"green")){
   set_rendering(client, 1, 0, 255, 0, 1, 255)
  } else if (StrEqual(text[6],"blue")){
   set_rendering(client, 1, 0, 0, 255, 1, 255)
  } else if (StrEqual(text[6],"yellow")){
   set_rendering(client, 1, 255, 255, 0, 1, 255)
  } else if (StrEqual(text[6],"aqua")){
   set_rendering(client, 1, 0, 255, 255, 1, 255)
  } else if (StrEqual(text[6],"purple")){
   set_rendering(client, 1, 255, 0, 255, 1, 255)
  } else if (StrEqual(text[6],"orange")){
   set_rendering(client, 1, 255, 165, 0, 1, 255)
  }
 
  return Plugin_Handled
 }
 
 
 return Plugin_Continue
}
Xenogenetics is offline
Shaman
Senior Member
Join Date: Dec 2006
Location: Istanbul, Turkey
Old 07-17-2007 , 11:03   Re: What is this error (and is there some place I can look up errors?)
Reply With Quote #4

Code:
public Action:Color_player(client)
should be
Code:
public Action:Color_player(client, args)
and
Code:
RegConsoleCmd("say",Color_player, "say color <color> to color yourself")

should be
Code:
RegConsoleCmd("say",Color_player)
__________________
Shaman is offline
Send a message via ICQ to Shaman Send a message via AIM to Shaman Send a message via MSN to Shaman Send a message via Yahoo to Shaman
Xenogenetics
Member
Join Date: Jul 2007
Old 07-17-2007 , 11:04   Re: What is this error (and is there some place I can look up errors?)
Reply With Quote #5

I had RegConsoleCmd("say",Color_player) but I thought it might be looking for a third thing thanks though.
Xenogenetics is offline
Xenogenetics
Member
Join Date: Jul 2007
Old 07-17-2007 , 11:34   Re: What is this error (and is there some place I can look up errors?)
Reply With Quote #6

It seems that those arent the only errors, is there a way to see if a plugin is loaded and running in sourcemod?

EDIT: Everything is working now, thanks everyone

Last edited by Xenogenetics; 07-17-2007 at 12:14.
Xenogenetics is offline
ferret
SourceMod Developer
Join Date: Dec 2004
Location: Atlanta, GA
Old 07-17-2007 , 13:32   Re: What is this error (and is there some place I can look up errors?)
Reply With Quote #7

Just want to make sure you're aware a plugin that does this already exists:

http://forums.alliedmods.net/showthr...ighlight=glows
__________________
I'm a blast from the past!
ferret is offline
Xenogenetics
Member
Join Date: Jul 2007
Old 07-17-2007 , 17:55   Re: What is this error (and is there some place I can look up errors?)
Reply With Quote #8

That doesn't let players define their own color. I am doing this for practice.
Xenogenetics 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 08:42.


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