Brauche nur schnelle Quest hilfe (syntax)

07/25/2016 22:02 TrollZone#1
Hallo!

Php:

PHP Code:
quest ingameban begin
    state start begin
        when login with pc
.is_gm() begin
            send_letter
("HALLO")
        
end
        when button 
or info begin
            say_title
("Sharzun - BannPanel")
            
say("Hier kannst du folgende Dinge tun:")
            
say("")
            
say("- Einen Spieler Bannen")
            
say("- Einen Spieler Entbannen")
            
say("")
            
local a select("Ban Player""Unban player""Exit")

            if 
== 1 then
                say
("Name of player who you wanna ban")
                
say("")
                
say("Info : Abusing GM power and you will be removed")
                
local cblock input()
                
say("Reason:")
                
local creason input()
                
game.set_event_flag("banned_".. cblock ..(),1)
                
notice_all("Player: ".. cblock .." is banned. reason: ".. creason.."")
                
notice_all("<ATTENTION>Play by the rules!!")
            
end
   
            
if == 2 then
                say
("Insert name of player who will be unbanned")
                
local cublock input()
                
game.set_event_flag("banned_".. culock ..(),0)
                
notice_all("Ban for player: ".. cublock .." was removed")
            
end
 
            
if == 3 then
                
return
            
end
        end 
    end
end 
Error:
QUEST:37:syntax error : [string "start"]:15: unexpected symbol near `)'
Allerdings finde ich da nichts xD?
07/25/2016 23:18 Hype#2
[Only registered and activated users can see links. Click Here To Register...]