Raised This Month: $ Target: $400
 0% 

Make stock or not


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
darklite
Member
Join Date: Jun 2014
Old 07-03-2014 , 18:35   Make stock or not
Reply With Quote #1

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)     } }
darklite is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 07-03-2014 , 20:16   Re: Make stock or not
Reply With Quote #2

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
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.

Last edited by hornet; 07-03-2014 at 20:24.
hornet 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:16.


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