AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Make stock or not (https://forums.alliedmods.net/showthread.php?t=243384)

darklite 07-03-2014 18:35

Make stock or not
 
In fact I want you guys to tell me what is better to do .

This(" with stock")
Code:
stock show_hud_effect(id,Say[ ],Size) {     if (Size){     set_hudmessage(255, 0, 0, 0.80, -1.0, 0, 6.0, 12.0)     show_hudmessage(id, "%s",Say)     }     else     {     set_dhudmessage(255, 0, 0, 0.80, -1.0, 0, 6.0, 12.0)     show_dhudmessage(id, "%s",Say)     } }

Or without stock.

Code:
show_hud_effect(id,Say[ ],Size) {     if (Size){     set_hudmessage(255, 0, 0, 0.80, -1.0, 0, 6.0, 12.0)     show_hudmessage(id, "%s",Say)     }     else     {     set_dhudmessage(255, 0, 0, 0.80, -1.0, 0, 6.0, 12.0)     show_dhudmessage(id, "%s",Say)     } }

hornet 07-03-2014 20:16

Re: Make stock or not
 
They should have the same effect, but with stock the compiler will not throw warnings if it's unused.

This thread could be useful to you: https://forums.alliedmods.net/showthread.php?t=187025


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

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