Raised This Month: $ Target: $400
 0% 

Need Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 09-13-2008 , 07:06   Re: Need Help
Reply With Quote #4

Quote:
Originally Posted by sea$oned pRo View Post
Sorry for the miss-post. I used your code, and added my display, this is what I am using now.

PHP Code:
public print_allTalk(id
{
 new 
alltalkStatus[256]
 if(
is_user_admin(id))
 {
  if(
get_cvar_num("sv_alltalk") == 1)
  {
 
format(alltalkStatus255"%s All Talk: ON %s"COLOR)
 
  }
  else
  {
 
format(alltalkStatus255"%s All Talk: Off %s"COLOR) <-- Line 38
 
  
}
  
client_print(id255alltalkStatus)
 }
 return 
PLUGIN_HANDLED

It compiles great, but in game when i use the command, I get this error:
PHP Code:
17:06:59"sea$oned pRo<1><STEAM_0><CT>" say "/alltalk"
L 09/12/2008 17:06:59String formatted incorrectly parameter 5 (total 4)
L 09/12/2008 17:06:59: [AMXXDisplaying debug trace (plugin "alltalk.amxx")
L 09/12/2008 17:06:59: [AMXXRun time error 25parameter error 
L 09
/12/2008 17:06:59: [AMXX]    [0alltalk.sma::print_allTalk (line 38
Any suggestions?
Yes, i don't know what "COLOR" is that you're using, so showing the
complete source code would help me to help you
FeuerSturm is offline
 



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 03:01.


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