[HELP] Block Flashlight For T
Can someone help me with this?
#include <amxmodx> #include <fakemeta> public plugin_init( ) { register_plugin( "Block Flashlight For T", "1.0", "None" ); register_forward( FM_CmdStart, "fwCmdStart" ); } public fwCmdStart( id, uc_handle, seed ) { if( get_uc( uc_handle, UC_Impulse ) == 100 ) { if(get_user_team(id) == 1){ set_uc( uc_handle, UC_Impulse, 0 ); return FMRES_HANDLED; } else { if (pev(id, pev_effects) & EF_DIMLIGHT) { set_pev(id, pev_impulse, 100) } } return FMRES_IGNORED; } The error is : error 001: expected token: "}" but found "-end of file-" Wth is that? Someone plz help me. |
Re: [HELP] Block Flashlight For T
You are missing a } somewhere. If you indent your code properly you will find it
|
Re: [HELP] Block Flashlight For T
Quote:
Code:
expected token: "}" but found "-end of file-" |
Re: [HELP] Block Flashlight For T
Quote:
|
Re: [HELP] Block Flashlight For T
What not to understand here:
PHP Code:
|
Re: [HELP] Block Flashlight For T
Quote:
PHP Code:
|
Re: [HELP] Block Flashlight For T
Quote:
[PHP]/tmp/textXlqadC.sma(28) : warning 209: function "fwCmdStart" should return a value Header size: 284 bytes Code size: 544 bytes Data size: 176 bytes Stack/heap size: 16384 bytes; estimated max. usage=42 cells (168 bytes) Total requirements: 17388 bytes 1 Warning. Done. |
Re: [HELP] Block Flashlight For T
Add return FMRES_IGNORED; before the last }.
Or use a better code: PHP Code:
|
Re: [HELP] Block Flashlight For T
Quote:
|
Re: [HELP] Block Flashlight For T
Try doing
PHP Code:
|
| All times are GMT -4. The time now is 20:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.