Cashpoint will be stop if 800

ahmadshidqi

New member
Messages
48
Points
0
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
default_sad.png
please help me...

my script

Code:
/*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;}
 
Back
Top