arthurcunha1991 0 Posted June 10, 2019 If someone can help thanks, the script works normal But I would like only 1 Char per IP or per account you can get @promo a reward for X players that activate the code first. promocode.txt Quote Share this post Link to post Share on other sites
1 cookie-rae 6 Posted June 14, 2019 1 hour ago, arthurcunha1991 said: error ;0 query_sql("select count(last_ip) from reward_logs where code = '" + escape_sql(.@pc$) + "'",.@claim1); if(.@claim1 == 1){ mes "This code can't claim with same ip." close; end; } mybad. Quote Share this post Link to post Share on other sites
0 cookie-rae 6 Posted June 10, 2019 Try this but untested. FInd it in line 56 and add this one. input .@pcode$; query_sql(select count(last_ip) from reward_logs where code = '" + escape_sql(.@pc$) + "',.@claim1); if(.@claim1 == 1){ mes "This code can't claim with same ip." close; end; } Quote Share this post Link to post Share on other sites
0 arthurcunha1991 0 Posted June 14, 2019 (edited) error ;0 Edited June 14, 2019 by arthurcunha1991 Quote Share this post Link to post Share on other sites
0 arthurcunha1991 0 Posted June 14, 2019 is still with error = x I do not script script I'm very dumb :) Quote Share this post Link to post Share on other sites
0 Caspian 23 Posted June 14, 2019 2 hours ago, arthurcunha1991 said: is still with error = x I do not script script I'm very dumb :) You just need to add " ; " at the end of line 60. mes "This code can't claim with same ip."; <- Quote Share this post Link to post Share on other sites
0 arthurcunha1991 0 Posted June 15, 2019 Thank you very much @hikashin @Caspian has already been resolved and is working! Quote Share this post Link to post Share on other sites
0 cookie-rae 6 Posted June 15, 2019 5 hours ago, arthurcunha1991 said: Thank you very much @hikashin @Caspian has already been resolved and is working! Great. Glad to know. 8 hours ago, Caspian said: You just need to add " ; " at the end of line 60. mes "This code can't claim with same ip."; <- sorry i was coding that on my phone hehehe Quote Share this post Link to post Share on other sites
If someone can help thanks, the script works normal
But I would like only 1 Char per IP or per account you can get @promo a reward for X players that activate the code first.
promocode.txt
Share this post
Link to post
Share on other sites