Raised This Month: $ Target: $400
 0% 

New Plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
kal2004
Junior Member
Join Date: Jul 2005
Old 10-30-2005 , 11:41   New Plugin
Reply With Quote #1

Hi guys can anyone help me fix the following errors in my plug?

:Error:
Code:
php0KVblO.sma(69) : error 029: invalid expression, assumed zero  php0KVblO.sma(97) : warning 203: symbol is never used: "check_say"


:Code:
Code:
#include <amxmodx> #include <amxmisc> #include <cstrike> #include <fun> #include <engine> #define USING_STEAM 1 // comment this line if your using WON CS 1.5 #define MESSAGES 4 #define MAX_NAME_LENGTH 32 #define MAX_PLAYERS 32 #define MAX_TEXT_LENGTH 192 public plugin_init() {     register_plugin("'Z'","0.1","AMXX")     register_cvar("amx_kalssounds","1") } // Kal's Fun Sounds by Kal2005 //---------------------------- new kals_msg[MESSAGES][] = {     "Cha'mone",     "Check Me!" } new kals_sound[MESSAGES][] = {     "misc/kals/chamone.wav",     "misc/kals/checkme.wav" } new bool:ids[33] public kalssounds(id,level,cid) //---------------------------------------------------------------------------------------------- public check_say(id) {     if (!ids[id]) return PLUGIN_CONTINUE     new said[32]     read_args(said,31)     remove_quotes(said)     for (new i=0; i<MESSAGES; i++)         if(equal(said,kals_msg[i]))             return PLUGIN_CONTINUE     new ran = random_num(0,MESSAGES-1)     client_cmd(id,"say %s",kals_msg[ran])     if (get_cvar_num("amx_kalssounds")) client_cmd(id,"spk %s",kals_sound[ran])     return PLUGIN_HANDLED } //---------------------------------------------------------------------------------------------- public client_putinserver(id) {     ids[id] = false } //---------------------------------------------------------------------------------------------- public plugin_modules() {     require_module("fun")     require_module("cstrike") }

please help, i am a n00b at this stuff.

Thanks
Kal
kal2004 is offline
Send a message via MSN to kal2004
 



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 23:59.


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