Jump to content
  • 0

Question

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

Here's the error

 

k390.jpg

6 answers to this question

Recommended Posts

Posted

Yes i know what the error is. I'd like to know what should be the solution I can't work with it. Im using Eathena

 

Try to use: set .string$, "";

/?

 

Might want to upgrade to rAthena if your script parser is so outdated that it doesn't know what to do without using set. Many scripts that are optimised for rAthena will appear to have compatibility issues. There isn't really that great of a reason to continue using eAthena anymore, quite honestly; unless you enjoy the multitude of bugs, of course.

Posted (edited)

Just change the way that the variables are being set. In rAthena, they can be set two ways:

set .var, 0;
.var = 0;

Both lines in the above example have the same result. In eAthena, the proper way is to use set, so in your case, replace these lines:

.string$ = "";
.status = 1;

with these lines:

set .string$, "";
set .status, 1;

If there are any other variables being set in the former manner, simply replace them with set commands as needed.

Edited by Missingno

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...