Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 06:04

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Syntax error: start "string" near 'then"

Discussion on Syntax error: start "string" near 'then" within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2009
Posts: 103
Received Thanks: 53
Syntax error: start "string" near 'then"

Hi guys I am create a basic quest with use to item click. After is quest working but, I am complex to quest loop, show me this is error,

syntax error : [string "start"]:108: unexpected symbol near `then"

My quest line between 99 and 119 is;

PHP Code:
local _gold select("500M","1T","Close")
if 
_gold == 1 then
     say_title
("MyMT2 - 500M Buy")
     
say("")
     if 
pc.get_gold() <= 500000000 then
         say
("You haven't enough money!")
         
local k select("Close")
     else
         
pc.change_money(-500000000)
         
pc.give_item(3,1)
     
end
elseif _gold == 2 then
     say_title
("MyMT2 - 1T Buy")
     
say("")
     if 
pc.get_gold() <= 1000000000 then
         say
("You haven't enough money!")
         if 
pc.count_item(3) == 0 then
             say
("And, you haven't 500M item as money!")
         
end
         say
("Just, You have "..pc.count_item(3).." piece 500M item as money.")
         
local k select("Close"
Thank you for interest!

Good works..
poXavincS is offline  
Reply




All times are GMT +1. The time now is 06:06.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.