AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   show_hudmessage (https://forums.alliedmods.net/showthread.php?t=233070)

Mentors 01-09-2014 12:36

show_hudmessage
 
Hello i need help.

Why show_hudmessage lose indentation?

PHP Code:

case 1:
    {
    
set_user_health(idget_user_health(id) + 20);
    
set_hudmessage(00255, -1.00.306.02.0)
    
show_hudmessage(id"+20hp")
    return 
PLUGIN_HANDLED
        



YamiKaitou 01-09-2014 12:42

Re: show_hudmessage
 
Loose Indentation means that your Indentation is not consistent with the rest of the plugin. It does not effect anything other than readability and can be safely ignored if you wish.

Mentors 01-09-2014 12:50

Re: show_hudmessage
 
but perhaps this can be corrected?

YamiKaitou 01-09-2014 13:00

Re: show_hudmessage
 
Yes, correct the indentation so it is consistent with the rest of the code.

Mentors 01-09-2014 13:11

Re: show_hudmessage
 
Quote:

Originally Posted by YamiKaitou (Post 2083534)
Yes, correct the indentation so it is consistent with the rest of the code.

Thanks, and you can little help with this?

if(!atk || atk == vct || !is_user_alive(atk) || is_user_connected(atk) || (get_user_flags(atk) & ADMIN_LEVEL_H)))

YamiKaitou 01-09-2014 14:05

Re: show_hudmessage
 
Quote:

Originally Posted by Mentors (Post 2083539)
Thanks, and you can little help with this?

if(!atk || atk == vct || !is_user_alive(atk) || is_user_connected(atk) || (get_user_flags(atk) & ADMIN_LEVEL_H)))

Post a new thread for each issue please. Also, explain what you want

Shooting King 01-10-2014 07:17

Re: show_hudmessage
 
Quote:

Loose Indentation means that your Indentation is not consistent with the rest of the plugin. It does not effect anything other than readability and can be safely ignored if you wish.
Quote:

Loose Indentation means that your Indentation is not consistent with the rest of the BLOCK. It does not effect anything other than readability and can be safely ignored if you wish.


All times are GMT -4. The time now is 10:07.

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