Raised This Month: $ Target: $400
 0% 

Question!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
crnova
Senior Member
Join Date: Sep 2015
Old 05-08-2016 , 07:29   Question!
Reply With Quote #1

Why do most people use this:

Code:
#include <amxmodx> new g_iCountDown public plugin_init() {     set_task( 60.0, "task_countdown", _, _, "b") } public task_countdown() {     g_iCountDown = 61         set_task( 1.0, "countdown", _, _, "a", g_iCountDown) } public countdown() {     g_iCountDown--     client_print( 0, print_chat, "%d", g_iCountDown) }

While they can just do this

Code:
#include <amxmodx> new g_iCountDown public plugin_init() {     set_task( 60.0, "task_countdown", _, _, "b") } public task_countdown() {     g_iCountDown = 61         while( g_iCountDown != 0 )     {         g_iCountDown--         client_print( 0, print_chat, "%d", g_iCountDown)     } }
__________________
crnova is offline
 


Thread Tools
Display Modes

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 18:38.


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