Trying to write an include File...
First of all, I started with a simple Plugin like this (which has no Bugs):
Code:
So I made a new Include-File called 'fun_shortcuts.inc'. But when compiling I get this Error: Start of Function Body without Function Header. Please Help me! Here is the include File: Code:
|
Re: Trying to write an include File...
removed(outdated)
|
Re: Trying to write an include File...
wth u make it to num again?
it works as float. nvm stock just gives me more errors: old style prototypes used with optional semicolons start of function body without function header Function 'set_user_screen_flash' is not implemented on line 58 |
Re: Trying to write an include File...
//removed
|
Re: Trying to write an include File...
Okay fixed those.
but it still says that body/header thing. |
Re: Trying to write an include File...
Natives don't work like that. You have to use a stock.
|
Re: Trying to write an include File...
Okay but there are still some problems.
Code:
|
Re: Trying to write an include File...
Quote:
When passing duration and holdtime to the write_short they should be integer, not float. Also you should note that you have to convert the seconds: http://forums.alliedmods.net/showthr...422#post255422 There are no write_string in ScreenFade message, it should be write_short FFADE_IN, FFADE_OUT, FFADE_MODULATE, FFADE_STAYOUT shouldn't be strings, it is an HLSDK constants, but it's not in the default amxx includes so you have to copy them to your inc file. Quote:
Quote:
Quote:
|
Re: Trying to write an include File...
ok i understand it all just the "0x0000" part is confusing me.
|
Re: Trying to write an include File...
0x0000 is 0 but since it's still a flag, you might want to pass more than one flag, for example 0 and (1<<1), but (0 | (1<<1)) is the same as (1<<0), so that's why 0x0000 is here: (0x0000 | (1<<1)), i.e. (0x0000 | 0x0002).
|
| All times are GMT -4. The time now is 04:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.