Raised This Month: $ Target: $400
 0% 

Simple Script Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ClanStyles
BANNED
Join Date: Jun 2006
Old 07-06-2006 , 13:59   Simple Script Help
Reply With Quote #1

Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>

#define PLUGIN "Custom F.U.N Plugin"
#define VERSION "1.0"
#define AUTHOR "Styles"


public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_event("CurWeapon", "Event_CurWeapon", "be", "1=1")
    
}

public Event_CurWeapon(id) 
{
   new oldspeed[id] = get_user_maxspeed(id);
    
    
    if(CSW_KNIFE)
    {
        set_user_maxspeed(id,700.0);
        set_hudmessage(255, 170, 0, -1.0, 0.32, 0, 6.0, 12.0);
        show_hudmessage(id, "--> You know can go faster <--");
    }
    else
    {
        set_user_maxspeed(id,oldspeed[id]);
        set_hudmessage(255, 170, 0, -1.0, 0.32, 0, 6.0, 12.0);
        show_hudmessage(id, "--> Your speed is now over <--");
    }
}
i get an:
Must be constant expression; assumed zero for lines 18 x2

and Emty Statement on 19 and fatal error 107 to many errors
ClanStyles is offline
 



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 08:03.


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