Raised This Month: $ Target: $400
 0% 

Code check


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
silversinner
Member
Join Date: Feb 2006
Location: England
Old 03-04-2006 , 16:27   Code check
Reply With Quote #1

Ok here i am again with another problem! This is my plugin code so far:
Code:
//Plugin Created By: Silversinner //Credits: V3x, werewolf, #include <amxmodx> #include <amxmisc> public plugin_init() {     register_plugin("Amx_hackerbuse","1.0","Silversinner")     register_concmd("amx_abuse","amx_abuse",ADMIN_IMUNITY,) } public amx_abuse() {     if (!(get_user_flags(id)&ADMIN_LEVEL_A)) {         console_print(id,"[AMXX] You do not have access to this command.")         return PLUGIN_HANDLED     }     new temp[32]     read_argv(1,temp,31)     new hacker_id = cmd_target(id, temp)     return PLUGIN_HANDLED    }          set_task(0.0,"alert")     set_task(3.0,"ten")     set_task(4.0,"nine")     set_task(5.0,"eight")     set_task(6.0,"seven")     set_task(7.0,"six")     set_task(8.0,"five")     set_task(9.0,"four")     set_task(10.0,"three")     set_task(11.0,"two")     set_task(12.0,"one")     set_task(13.0,"zero")     set_task(14.0,"slap", hacker_id)     set_task(16.0,"fire", hacker_id)     set_task(17.0,"ban", hacker_id)     return PLUGIN_HANDLED } public alert() {     client_print(0,print_chat,"***** ALERT! HACKER DETECTED! *****")     server_print("***** ALERT! HACKER DETECTED! *****")     client_cmd(0,"spk ^"fvox/warning.wav^"") } public ten() {     client_print(0,print_chat,"[AMXX] Hacker abuse in 10 seconds..."     server_print("[AMXX] Hacker abuse in 10 seconds...")     client_cmd(0,"spk ^"fvox/ten.wav^"") } public nine() {     client_print(0,print_chat,"[AMXX] Hacker abuse in 9 seconds...")     server_print("[AMXX] Hacker abuse in 9 seconds...")     client_cmd(0,"spk ^"fvox/nine.wav^"") } public eight() {     client_print(0,print_chat,"[AMXX] Hacker abuse in 8 seconds...")     server_print("[AMXX] Hacker abuse in 8 seconds...")     client_cmd(0,"spk ^"fvox/eight.wav^"") } public seven() {     client_print(0,print_chat,"[AMXX] Hacker abuse in 7 seconds...")     server_print("[AMXX] Hacker abuse in 7 seconds...")     client_cmd(0,"spk ^"fvox/seven.wav^"") } public six() {     client_print(0,print_chat,"[AMXX] Hacker abuse in 6 seconds...")     server_print("[AMXX] Hacker abuse in 6 seconds...")     client_cmd(0,"spk ^"fvox/six.wav^"") } public five() {     client_print(0,print_chat,"[AMXX] Hacker abuse in 5 seconds...")     server_print("[AMXX] Hacker abuse in 5 seconds...")     client_cmd(0,"spk ^"fvox/five.wav^"") } public four() {     client_print(0,print_chat,"[AMXX] Hacker abuse in 4 seconds...")     server_print("[AMXX] Hacker abuse in 4 seconds...")     client_cmd(0,"spk ^"fvox/four.wav^"") } public three() {     client_print(0,print_chat,"[AMXX] Hacker abuse in 3 seconds...")     server_print("[AMXX] Hacker abuse in 3 seconds...")     client_cmd(0,"spk ^"fvox/three.wav^"") } public two() {     client_print(0,print_chat,"[AMXX] Hacker abuse in 2 seconds...")     server_print("[AMXX] Hacker abuse in 2 seconds...")     client_cmd(0,"spk ^"fvox/two.wav^"") } public one(){     client_print(0,print_chat,"[AMXX] Hacker abuse in 1 seconds...")     server_print("[AMXX] Hacker abuse in 1 seconds...")     client_cmd(0,"spk ^"fvox/one.wav^"") } public zero() {     client_print(0,print_chat,"[AMXX] Hacker abuse Has begun!")     server_print("[AMXX] Hacker abuse has begun!")     client_cmd(0,"spk ^"hgrunt/c2a3_hg_laugh\^"") } public slap() {     server_cmd("amx_uberslap %d", hacker_id)     client_cmd(0,print_chat,"[AMXX] Hacker abused!! } public fire() {     server_cmd("amx_fre %d", hacker_id)     client_cmd(0,print_chat,"[AMXX] Hacker abused more!! } public ban() {     server_cmd("amx_ban %d", hacker_id)     client_cmd(0,print_chat,"[AMXX] Hacker abused!! }
Id is not defined! it says that when i go to compile it so i mmade a mistake now i gow and define it like so:
Code:
public amx_abuse(id) {     if (!(get_user_flags(id)&ADMIN_LEVEL_A)) {         console_print(id,"[AMXX] You do not have access to this command.")         return PLUGIN_HANDLED     }
Ok you would think things go fine and dandy now but no.. when i go to compile it says this:
Code:
 /home/users/amxmodx/tmp3/textOPshKL.sma(17) : warning 217: loose indentation
/home/users/amxmodx/tmp3/textOPshKL.sma(20) : warning 204: symbol is assigned a value that is never used: "hacker_id"
/home/users/amxmodx/tmp3/textOPshKL.sma(21) : error 021: symbol already defined: "set_task"
/home/users/amxmodx/tmp3/textOPshKL.sma(37) : error 010: invalid function or declaration
/home/users/amxmodx/tmp3/textOPshKL.sma(47 -- 48) : error 001: expected token: ",", but found "-identifier-"
/home/users/amxmodx/tmp3/textOPshKL.sma(113) : error 017: undefined symbol "hacker_id"
/home/users/amxmodx/tmp3/textOPshKL.sma(114) : error 035: argument type mismatch (argument 2)
/home/users/amxmodx/tmp3/textOPshKL.sma(118) : error 017: undefined symbol "hacker_id"
/home/users/amxmodx/tmp3/textOPshKL.sma(119) : error 035: argument type mismatch (argument 2)
/home/users/amxmodx/tmp3/textOPshKL.sma(123) : error 017: undefined symbol "hacker_id"
/home/users/amxmodx/tmp3/textOPshKL.sma(124) : error 035: argument type mismatch (argument 2)

9 Errors.
Can anyone help with this? It sreally confusing me now...
__________________
My website
(under contruction)
silversinner is offline
Send a message via AIM to silversinner Send a message via MSN to silversinner Send a message via Yahoo to silversinner
 



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 20:19.


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