ahmadshidqi 0 Posted May 19, 2014 can you help me? i want to make this script, if cash + 25 > 800 or if cash = 800, this script will be stop >.<, i have try but fail please help me... my script /*create table itemperacc (`account_id` int(11) unsigned NOT NULL primary key) engine = innodb;*/- script dailyrewards -1,{OnPCLoginEvent: getmapxy .@map$, .@x, .@y, 0; if ( .@map$=="invek" ) { if ( !query_sql( "select account_id from `itemperacc` where account_id ="+ getcharid(3) , .@acc ) ) { set .@point_amt, 25; set #CASHPOINTS, #CASHPOINTS + .@point_amt; dispbottom "You received "+.@point_amt+" Cashpoints; dispbottom "Current Balance = "+#CASHPOINTS+" Cashpoints"; query_sql "insert into `itemperacc` values ( "+getcharid(3)+" )"; } } end;OnHour06: query_sql "truncate itemperacc"; end;} Quote Share this post Link to post Share on other sites
0 quesoph 105 Posted May 19, 2014 OnPCLoginEvent:+ if (#CASHPOINTS >= 800) end; Quote Share this post Link to post Share on other sites
0 ahmadshidqi 0 Posted May 19, 2014 OnPCLoginEvent:+ if (#CASHPOINTS >= 800) end; okayy i'll try :3, and report again if work Quote Share this post Link to post Share on other sites
can you help me? i want to make this script, if cash + 25 > 800 or if cash = 800, this script will be stop >.<, i have try but fail please help me...
my script
Share this post
Link to post
Share on other sites