AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Hud not showing after adding a third Parameter (https://forums.alliedmods.net/showthread.php?t=233600)

Going Dutch 01-17-2014 10:29

Hud not showing after adding a third Parameter
 
1 Attachment(s)
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?

xxxperts 01-18-2014 01:15

Re: Hud not showing after adding a third Parameter
 
i didn't got it..! wht you want to do..?

Must Explain You Problem Well..

fysiks 01-18-2014 01:47

Re: Hud not showing after adding a third Parameter
 
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).

Going Dutch 01-18-2014 09:10

Re: Hud not showing after adding a third Parameter
 
Ah.. how stupid, made a little typo.

Thank you for the replies though.


All times are GMT -4. The time now is 16:45.

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