Raised This Month: $ Target: $400
 0% 

I Dont see the error... pls help me [quick]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 06-22-2010 , 12:30   I Dont see the error... pls help me [quick]
Reply With Quote #1

Hello. If I say "test1" show_bar1 is shown [WORKS]

PHP Code:
public plugin_init()
{
    
bartime1 get_user_msgid("BarTime");
    
register_event"HLTV""roundstart1""a""1=0""2=0" )
    
    
    
register_clcmd("say test1","show_bar1")
}

public 
show_bar1(id)
{
    
set_user_rendering(id,kRenderFxGlowShell,255,0,0,kRenderNormal,25)
    
message_begin(MSG_ONE,bartime1, {0,0,0} ,id);
    
write_short(10);
    
message_end();
    
set_task(1.0"after_bar1")

After 10 seconds (write_short(10)) "after_bar1" shod be called:

PHP Code:
public after_bar1(id)
{
    
set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderNormal,25
    
set_user_health(idget_user_health(id) + 40)
    
client_print(0print_chat"lol1")

but i dont get any health and the client_print dont works too... where is the error? I think anxwhere in show_bar1
mottzi is offline
Send a message via MSN to mottzi
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 06-22-2010 , 12:32   Re: I Dont see the error... pls help me [quick]
Reply With Quote #2

PHP Code:
set_task(1.0"after_bar1"
->
PHP Code:
set_task(1.0"after_bar1"id
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 06-22-2010 , 12:33   Re: I Dont see the error... pls help me [quick]
Reply With Quote #3

Wow im just a noob. I found the error:

PHP Code:
set_task(1.0"after_bar1"


PHP Code:
set_task(10.0"after_bar1"id
@YamiKaitou
hehe, thanks. Anyways i found it myself
mottzi is offline
Send a message via MSN to mottzi
Reply


Thread Tools
Display Modes

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 14:45.


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