Raised This Month: $ Target: $400
 0% 

Hud not showing after adding a third Parameter


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Going Dutch
Member
Join Date: Dec 2013
Old 01-17-2014 , 10:29   Hud not showing after adding a third Parameter
Reply With Quote #1

Hi,


This one works.

PHP Code:
public ShowHud(task)
{
    new 
id task TASK_SHOW_HUD
    
    
if(!is_user_alive(id))
        return;
    
    
set_hudmessage(2552550, -1.00.8506.012.0)
    
ShowSyncHudMsg(idg_msgHudSync,"[%s] - [%i]",  Prefix[Level[id]], eXP[id])
    
set_task(0.1"ShowHud"TASK_SHOW_HUD id)    

But this one doesn't.
PHP Code:
public ShowHud(task)
{
    new 
id task TASK_SHOW_HUD
    
    
if(!is_user_alive(id))
        return;
    
    
set_hudmessage(2552550, -1.00.8506.012.0)
    
ShowSyncHudMsg(idg_msgHudSync,"[%s] - [%i - %i]",  Prefix[Level[id]], eXP[id], Levels[Level[id]])
    
set_task(0.1"ShowHud"TASK_SHOW_HUD id)    


How come that the one with "Levels[Level[id]])" added doesn't show up?
Attached Files
File Type: sma Get Plugin or Get Source (levelmod1.sma - 690 views - 27.9 KB)
__________________
Learning amxx/pawn and all that good stuff.
Going Dutch 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 16:45.


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