errors at compiling a menu plugin
hey
I tryed to compile a menu plugin to ad a menu when a player types /jb but it gave 4 errors on line 15 "Error: Expected token: ",", but found "-string-" on line 15" "Warning: Expression has no effect on line 15" "Error: Expected token: ";", but found ")" on line 15" "Error: Invalid expression, assumed zero on line 15" this is what i have in "public plugin_init()" PHP Code:
this is the full script, followed the tutorial from EMP' PHP Code:
|
Re: errors at compiling a menu plugin
Code:
Code:
|
Re: errors at compiling a menu plugin
Reading your code, all you need ->
client_cmd - http://www.amxmodx.org/funcwiki.php?go=func&id=230 get_user_flags - http://www.amxmodx.org/doc/index.htm...user_flags.htm I think you can start with this and then learn - http://forums.alliedmods.net/showthread.php?t=41251 |
Re: errors at compiling a menu plugin
thx alot u both :)
fireattack: what do i have to type in index, string, float? so if he presses the switch key he automaticly sais /rankstats so that his stats show up? client_cmd ( index, const command[], {Float,...} ) client_cmd (id, client_chat, /rankstats); ? or something else and to check the flags for admin when he wants to enter admin menu? get_user_flags ( index,id=0 ) get_user_flags (authid,id=0)? or maybe get_user_flags (ADMIN_KICK,id=0) PHP Code:
Warning: Loose indentation on line 96 |
Re: errors at compiling a menu plugin
Index is the "player" who opened the menu, for example:
client_cmd( id, "say /rank" ); Otherwise this can be considered as slowhacking which isn't allowed here because you're forcing a player to do a thing withouth his permission refering to client side. So the correct way is using natives. get_user_flags( id ) & ADMIN_KICK Search this on AM and you'll find everything you need. |
Re: errors at compiling a menu plugin
Quote:
|
Re: errors at compiling a menu plugin
wow I cant believe i asked that stopit question you already gave me the answer :$ sorry.
thx alot fireattack |
Re: errors at compiling a menu plugin
Does anyone know the colors you can use in a menu?
I know red and yellow are \r and \y are there any others? |
Re: errors at compiling a menu plugin
|
Re: errors at compiling a menu plugin
Quote:
|
All times are GMT -4. The time now is 12:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.