Raised This Month: $ Target: $400
 0% 

[HAM] Outputs message twice


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
CodingIsHard
Junior Member
Join Date: Jul 2015
Old 10-15-2015 , 09:42   [HAM] Outputs message twice
Reply With Quote #1

PHP Code:
RegisterHam(Ham_Spawn"player""fwHamSpawnPlayer");

public 
fwHamSpawnPlayer(id) {
    
client_print_color(idRED"^3Spawned!");
    
set_task(5.0"fnNameProfit"id);
}

public 
fnNameProfit(id) {
    
client_print_color(idRED"^3Hi!");
    return 
PLUGIN_HANDLED;

Whenever i output it 5 seconds after the spawn, plugin prints it twice to the chat with a second delay. Am i doing anything wrong or is this supposed to happen? I tried to HAM_SUPERCED it, i am not a smart man.
Is there a IRC channel or anything for quick and (possibly) dumb questions i could ask occasionally if i can't find the answer after wasting 2 hours of my life.

Note: It only happens when the map begins -- on the very first round, second, third etc it only prints once.

Last edited by CodingIsHard; 10-15-2015 at 09:54. Reason: Extra info.
CodingIsHard 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 22:09.


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