AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Need help for a plugin (https://forums.alliedmods.net/showthread.php?t=29651)

Tiny 06-09-2006 19:07

Need help for a plugin
 
1 Attachment(s)
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

JohnJ3 06-09-2006 19:14

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 }

Tiny 06-10-2006 16:08

Thank.

Excuse me but i'm starting, so mistakes are a human caracteristic. :D
And it's harder for a girl like me


All times are GMT -4. The time now is 07:56.

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