 |
|
BANNED
Join Date: Jul 2010
Location: Argentina
|

07-22-2010
, 13:26
Re: Need this plugin saving by SQL
|
#3
|
Quote:
Originally Posted by lucas_7_94
PHP Code:
if(nmonths==1) { set_task(0.0, "thirtyone") } if(nmonths==2) { set_task(0.0, "february") } if(nmonths==3) { set_task(0.0, "thirty") } if(nmonths==4) { set_task(0.0, "thirtyone") } if(nmonths==5) { set_task(0.0, "thirtyone") } if(nmonths==6) { set_task(0.0, "thirty") } if(nmonths==7) { set_task(0.0, "thirtyone") } if(nmonths==8) { set_task(0.0, "thirtyone") } if(nmonths==9) { set_task(0.0, "thirty") } if(nmonths==10) { set_task(0.0, "thirtyone") } if(nmonths==11) { set_task(0.0, "thirty") } if(nmonths==12) { set_task(0.0, "newyear") } return PLUGIN_HANDLED
simply , awesome...
btw , read the tutorial's-
|
new const test[][] = { "NONE", "Thirtyone", "February", "Thirty", ...
use
PHP Code:
set_task(0.0, test[nmonths])
|
|
|
|