Raised This Month: $ Target: $400
 0% 

Hud not showing after adding a third Parameter


Post New Thread Reply   
 
Thread Tools Display Modes
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 - 689 views - 27.9 KB)
__________________
Learning amxx/pawn and all that good stuff.
Going Dutch is offline
xxxperts
Senior Member
Join Date: Oct 2013
Location: India
Old 01-18-2014 , 01:15   Re: Hud not showing after adding a third Parameter
Reply With Quote #2

i didn't got it..! wht you want to do..?

Must Explain You Problem Well..
__________________
All my work is here
xxxperts is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-18-2014 , 01:47   Re: Hud not showing after adding a third Parameter
Reply With Quote #3

It looks fine to me. Did you change anything else in the plugin (i.e. are you sure that the function is getting called correctly)? I think the data type is correct based on your previously posted code IIRC (i.e. Levels[] is a list of numbers).
__________________
fysiks is offline
Going Dutch
Member
Join Date: Dec 2013
Old 01-18-2014 , 09:10   Re: Hud not showing after adding a third Parameter
Reply With Quote #4

Ah.. how stupid, made a little typo.

Thank you for the replies though.
__________________
Learning amxx/pawn and all that good stuff.
Going Dutch 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 21:56.


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