Raised This Month: $ Target: $400
 0% 

how?: execute once on mapchange


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 11-05-2005 , 15:55  
Reply With Quote #1

Why do so much if he only wants to execute this code once?

Code:
public plugin_init() {     //...    set_task(0.1 , "CheckMap") } public CheckMap() {     new mapname[4]     get_mapname(mapname, 3)     if(!equali(mapname, "de_"))         return PLUGIN_HANDLED    //Put code here }

its simplier and has less variables. so uses less memory.

Yours has two functions and 3 variables(1 global). and this one has one function and one variable. with less code doing the same thing.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
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 23:39.


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