Raised This Month: $51 Target: $400
 12% 

Ignite props


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bugzz
New Member
Join Date: Feb 2011
Old 02-05-2011 , 08:37   Ignite props
Reply With Quote #1

I made a simple plugin to ignite props that i aim at. It compiled succesfully but when i use it, nothing happens =/
What's wrong with the code?

PHP Code:
#include <sourcemod>
#include <sdktools> 

public OnPluginStart()
{
    
RegAdminCmd("sm_ignite"Command_igniteADMFLAG_SLAY,"iginite an entity");
}

 
public 
Action:Command_ignite(client,args)
{
    
PrintToChat(client"[SM] Ignited entity");
    
decl Ent
    Ent 
GetClientAimTarget(clientfalse); 
    if (
IsValidEntity(Ent))
    {
            
IgniteEntity(Ent10.0);
    }
    return 
Plugin_Handled;

Bugzz is offline
Black Haze
BANNED
Join Date: Sep 2008
Location: Hamsterdam
Old 03-18-2011 , 10:18   Re: Ignite props
Reply With Quote #2

"decl Ent" lacks a ; sign, that may be it.
Black Haze is offline
1Swat2KillThemAll
SourceMod Donor
Join Date: Nov 2009
Old 03-18-2011 , 10:42   Re: Ignite props
Reply With Quote #3

Quote:
Originally Posted by Black Haze View Post
"decl Ent" lacks a ; sign, that may be it.
That can't be it. The compiler assumes the use of semicolons to end statements is optional, unless declared otherwise.
1Swat2KillThemAll is offline
Black Haze
BANNED
Join Date: Sep 2008
Location: Hamsterdam
Old 03-18-2011 , 11:36   Re: Ignite props
Reply With Quote #4

Then it might just be that the haven't got an ignite function I guess.
Black Haze is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 03-18-2011 , 11:36   Re: Ignite props
Reply With Quote #5

Bugzz, may be you're trying to ignite prop_static or brush? :s
Leonardo 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 08:27.


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