Raised This Month: $ Target: $400
 0% 

Need help for a plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Tiny
Senior Member
Join Date: Jun 2004
Location: France
Old 06-09-2006 , 19:07   Need help for a plugin
Reply With Quote #1

I always get this error when compiling
"error 035: argument type mismatch (argument 2)"

Can someone help me ? my admins are gonna kill me with this

The plugin is money
Attached Files
File Type: sma Get Plugin or Get Source (money.sma - 139 views - 491 Bytes)
Tiny is offline
JohnJ3
Member
Join Date: May 2006
Location: Tomsk
Old 06-09-2006 , 19:14  
Reply With Quote #2

This is has more then one error, because you must write "if" but not "If".
And read documentation about "console_print", please. You must use client_print in your case.
Code:
#include <amxmodx> #include <amxmisc> #include <cstrike> #define ACCESS_LEVEL ADMIN_LEVEL_E public plugin_init() {     register_plugin("Money","0.1","Tiny")     register_clcmd("say /give_money ","cmdMoney",0,"") } public cmdMoney(id) {     if (!(get_user_flags(id) & ACCESS_LEVEL))     {     client_print(id,print_chat,"[X] don’t have access")     return PLUGIN_HANDLED     }     new name[32]     get_user_name(id,name,32)     cs_set_user_money(id,16000,1)     return PLUGIN_HANDLED }
JohnJ3 is offline
Tiny
Senior Member
Join Date: Jun 2004
Location: France
Old 06-10-2006 , 16:08  
Reply With Quote #3

Thank.

Excuse me but i'm starting, so mistakes are a human caracteristic.
And it's harder for a girl like me
Tiny is offline
Reply


Thread Tools
Display Modes

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 07:56.


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