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

What is wrong with my code?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Patrick Star
Junior Member
Join Date: Apr 2012
Old 04-25-2012 , 20:13   What is wrong with my code?
Reply With Quote #1

It shows errors when compiling it.

http://pastebin.com/fmTaG3jB

Last edited by Patrick Star; 04-25-2012 at 20:14.
Patrick Star is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 04-25-2012 , 20:31   Re: What is wrong with my code?
Reply With Quote #2

PHP Code:
public Action:OnClientTouch(item_healthkit)
 
{
native TF2_AddCondition(pickerTFCond:TF_UberchargedFloat:5);
forward TF2_OnConditionRemoved(pickerTFCond:TFCOND_OnFire);

What exactly do you want to do? What do you mean with forward?
__________________
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
rodrigo286
Veteran Member
Join Date: Sep 2010
Location: Brazil, São Paulo
Old 04-25-2012 , 20:38   Re: What is wrong with my code?
Reply With Quote #3

I did not know what you wanted, but I edited the code and a copiled without errors, I did not test, see if it meets your request, in my opinion his mistake was to use so-called incorrect and does not include tf2.

PHP Code:
#include <sourcemod>
#include <sdktools>
#include <tf2>
 
public Plugin:myinfo =
{
    
name "Snow",
    
author "Patrcik",
    
description "My first plugin ever",
    
version "1.0.0.0",
    
url "http://www.sourcemod.net/"
}
 
public 
OnPluginStart()
{
   
HookEvent("player_death"Event_PlayerDeath)
}
 
public 
Event_PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast)
{
   new 
victim_id GetEventInt(event"userid")
   new 
victim GetClientOfUserId(victim_id)
   new 
Float:vec[3];

   
GetClientAbsOrigin(victimvec);
   
TF2_AddCondition(victim,TFCond_TeleportedGlowfloat(999));
}

public 
Action:OnClientTouch(item_healthkitany:id)
{
   new 
Float:vec[3];

   
GetClientAbsOrigin(idvec);
   
TF2_AddCondition(id,TFCond_TeleportedGlowfloat(999));

Regards.
__________________
My Plugins | VIEW HERE | I accept private requests, send me a PM.
Buy respawn | Uber Recall | Grenade drop | Damage Supperssor
Meet the Medic | Disguise Expert | Crazy Jet

CZSBrasil TEAM

Last edited by rodrigo286; 04-25-2012 at 20:40.
rodrigo286 is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 04-25-2012 , 22:14   Re: What is wrong with my code?
Reply With Quote #4

Im sorry but the only thing that code would do, is thow out errors, it adds a glow to a dead player, and some kind of hook for touching, thats not even hooked, and for some reason you get a random vector, of a dead person, and never use it..
Mitchell 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 01:17.


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