Jump to content
  • 0
Sign in to follow this  
arthurcunha1991

Script PROMO

Question

7 answers to this question

Recommended Posts

  • 1
1 hour ago, arthurcunha1991 said:

error ;0


 


 

erro.png

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.

Share this post


Link to post
Share on other sites
  • 0

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;
    }

 

Share this post


Link to post
Share on other sites
  • 0
2 hours ago, arthurcunha1991 said:

is still with error = x

I do not script script I'm very dumb :)

 

Sem títuloerrro2.png

 

You just need to add " ; " at the end of line 60.

mes "This code can't claim with same ip.";   <-

 

 

Share this post


Link to post
Share on other sites
  • 0
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 :)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.