function randomString;
if( .status == 1 ){
mes "Event is preparing...try again in few seconds.";
}else if( .status == 2 ){
if( @failed > gettimetick(1) ){
mes "You failed this round. You got only 1 chances for each round.";
close;
}
mes "Enter:";
mes "^FF0000"+.string$+"^000000";
mes " ";
mes "You got "+.round_delay+" seconds to answer.";
input .@input$;
if( .status == 2 && .string$ != "" && .@input$ == .string$ ) {
.string$ = "";
.status = 1;
mes "Gratz you won...";
npctalk strcharinfo(0)+" just won the game with "+getnpctimer(0)+" miliseconds..";
stopnpctimer;
Question
Newbie Scripter
Here's the error
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.