Raised This Month: $ Target: $400
 0% 

Help please


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Randomize
BANNED
Join Date: May 2012
Location: in your heart
Old 08-18-2012 , 04:43   Help please
Reply With Quote #1

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <engine_stocks>

#define IN_RUN            (1<<12)

    
RegisterHam(Ham_Weapon_SendWeaponAnim,"weapon_mp5","walk");
}
public 
walkid )
{
    if (
get_user_button(id) & IN_RUN)
    {
        
SendWeaponAnimid);
    }
    
set_task(2.0"walk"id)

SendWeaponAnimidrun //SendWeaponAnim( id, animation )
{
    
set_pevid"weapon_mp5"); //set_pev( id, pev_weaponanim, animation );

    
message_beginMSG_ONE_UNRELIABLESVC_WEAPONANIM, .player id );
    
write_byterun );
    
write_bytepevid) ); //write_byte( pev( id, pev_body ) );
    
message_end();

Got some errors

Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

Error: Undefined symbol "set_pev" on line 28
Error: Undefined symbol "pev" on line 32

2 Errors.
Could not locate output file C:\Program Files\AMX Mod X\amxxstudio\Untitled.amx (compile failed).

Last edited by Randomize; 08-18-2012 at 04:48.
Randomize is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-18-2012 , 05:31   Re: Help please
Reply With Quote #2

Add : #include <fakemeta>

Next time, put a decent title. "Help please" is quite irrelevant, obviously if you post here, you want help. -_-
__________________
Arkshine is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-18-2012 , 05:37   Re: Help please
Reply With Quote #3

Learn bases of coding, each line contain errors.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Randomize
BANNED
Join Date: May 2012
Location: in your heart
Old 08-18-2012 , 06:05   Re: Help please
Reply With Quote #4

Arkshine: thanks sire, follow your command
Connor: still learning the basic ._.
I have compiled my plugins, but it doesn't give any effects :/
Randomize is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-18-2012 , 06:09   Re: Help please
Reply With Quote #5

Because, as Connor stated above, your plugin is totally wrong. You don't know what you're doing. So, stop there, and start to learn the basics before trying to do something.
__________________
Arkshine is offline
Reply



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 05:52.


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