AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help please (https://forums.alliedmods.net/showthread.php?t=193300)

Randomize 08-18-2012 04:43

Help please
 
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 :o

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).


Arkshine 08-18-2012 05:31

Re: Help please
 
Add : #include <fakemeta>

Next time, put a decent title. "Help please" is quite irrelevant, obviously if you post here, you want help. -_-

ConnorMcLeod 08-18-2012 05:37

Re: Help please
 
Learn bases of coding, each line contain errors.

Randomize 08-18-2012 06:05

Re: Help please
 
Arkshine: thanks sire, follow your command
Connor: still learning the basic ._.
I have compiled my plugins, but it doesn't give any effects :/

Arkshine 08-18-2012 06:09

Re: Help please
 
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.


All times are GMT -4. The time now is 05:52.

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