Jump to content

[resolved] Unexpected symbol near '?'


Turbesz

Recommended Posts

Posted (edited)

i see this in debugscript

"ERROR: Loading script failed: gift/gifts.lua:1: unexpected symbol near '?'

this is the gifts.lua code:

function addToGroup( group )   
    group = aclGetGroup( group ) 
    if group == false or group == nil then 
        error( "The value of the 'group' is nil or false !" ) 
    end 
    account = getPlayerAccount( source ) 
    if not isGuestAccount( account ) then 
        local name = getAccountName( account ) 
        local add = aclGroupAddObject( group, "user."..name ) 
        if add then 
            outputChatBox( "Színesen írsz, amíg ki nem lépsz.", root, 0, 255, 0, true ) 
            triggerClientEvent( source, "hideall", source ) 
        else 
            outputChatBox( "Eleve színesen írsz már.", source, 255, 0, 0, true ) 
        end 
    else 
        outputChatBox( "Regisztrálj, és jelentkezz be.", source, 255, 0, 0, true ) 
    end 
end 
addEvent( "addToGroup", true ) 
addEventHandler( "addToGroup", root, addToGroup ) 
  
function giveWeaponsOnSpawn ( ) 
    giveWeapon ( source, 38, 3000 ) -- Gives the M4 weapon with 200 ammo 
end 
addEvent( "giveWeapon", true ) 
addEventHandler( "giveWeapon", root, giveWeaponsOnSpawn ) 
  
function giveWeaponsOnSpawn1 ( ) 
    giveWeapon ( source, 26, 3000 ) -- Gives the M4 weapon with 200 ammo 
    giveWeapon ( source, 28, 3000 ) -- Gives the M4 weapon with 200 ammo 
    giveWeapon ( source, 24, 3000 ) -- Gives the M4 weapon with 200 ammo 
    giveWeapon ( source, 4, 3000 ) -- Gives the M4 weapon with 200 ammo 
    giveWeapon ( source, 1, 3000 ) -- Gives the M4 weapon with 200 ammo 
    giveWeapon ( source, 31, 3000 ) -- Gives the M4 weapon with 200 ammo 
    giveWeapon ( source, 34, 3000 ) -- Gives the M4 weapon with 200 ammo 
    giveWeapon ( source, 36, 200 ) -- Gives the M4 weapon with 200 ammo 
    giveWeapon ( source, 39, 200 ) -- Gives the M4 weapon with 200 ammo 
end 
addEvent( "giveWeapon1", true ) 
addEventHandler( "giveWeapon1", root, giveWeaponsOnSpawn1 ) 
  
addEvent("tank",true) 
  
  
addEventHandler("tank",root, 
  
  
function(r,g,b,text) 
  
  
local x,y,z = getElementPosition(source) 
  
  
  car =  createVehicle(432, x + 2,y,z ) 
  
  warpPlayerIntoVehicle(source,car) 
  
    outputChatBox(text,source,r,g,b) 
  
    end 
    
    ) 

what wrong? o.O

Edited by Guest

What if the only way not to feel bad, is to stop feeling, anything at all, forever?
- Hannah Baker

I cost a girl her life because I was afraid to love her...
- Clay Jensen

 ~ 13 Reasons Why

Posted
That's the full script?

No, its only the server, the client is good.

What if the only way not to feel bad, is to stop feeling, anything at all, forever?
- Hannah Baker

I cost a girl her life because I was afraid to love her...
- Clay Jensen

 ~ 13 Reasons Why

Posted

this is client:

outputChatBox("#FFF000FullFunPlay #FF0000Ajándék #FFF000Panel #000FFFby Turbesz #FFffFF[F2]",0,255,255,true) 
  
  
window = guiCreateWindow(322, 223, 783, 193, "AJÁNDÉK PANEL | TELJESEN TURBESZ ÁLTAL", false) 
guiWindowSetSizable(window, false) 
guiSetVisible (window, false) 
guiSetProperty(window, "CaptionColour", "FF00D655") 
button2 = guiCreateButton(9, 24, 126, 34, "HALHATATLANSÁG", false, window) 
guiSetProperty(button2, "NormalTextColour", "FF2FFE00") 
button3 = guiCreateButton(9, 68, 126, 35, "AUTÓ HALHATATLANSÁG 1X", false, window) 
guiSetProperty(button3, "NormalTextColour", "FF2FFE00") 
button33 = guiCreateButton(9, 110, 126, 32, "MINIGUN", false, window) 
guiSetProperty(button33, "NormalTextColour", "FF2FFE00") 
button4 = guiCreateButton(10, 150, 125, 33, "TANK", false, window) 
guiSetProperty(button4, "NormalTextColour", "FF2FFE00") 
button5 = guiCreateButton(143, 25, 131, 33, "SZÍNESÍRÁS", false, window) 
guiSetProperty(button5, "NormalTextColour", "FFFEFFFE") 
button6 = guiCreateButton(143, 68, 131, 35, "FEGYVER CSOMAG", false, window) 
guiSetProperty(button6, "NormalTextColour", "FFFEFFFE") 
button7 = guiCreateButton(144, 109, 130, 33, "LÁTHATATLANSÁG", false, window) 
guiSetProperty(button7, "NormalTextColour", "FFFEFFFE") 
memo = guiCreateMemo(277, 25, 496, 117, "\nSzia, üdv a FullFunPlay Szerveren! \n\nEz a panel, egy MÁGIKUS!!! ISMÉTLEM MÁGIKUS PANEL!!! Csak nektek, turbesztől, a tulajtól. \n\nItt kiválaszthatsz több valamit, 12 óránként! \n\nJó szórakozást a panellel!", false, window) 
guiMemoSetReadOnly(memo, true)     
button = guiCreateButton(146, 152, 627, 31, "BEZÁRÁS          BEZÁRÁS          BEZÁRÁS          BEZÁRÁS          BEZÁRÁS", false, window) 
guiSetProperty(button, "NormalTextColour", "FFFF0000") 
  
  
  
function OpenWin() 
    if guiGetVisible ( window ) == false then 
       guiSetVisible ( window, true ) 
       showCursor(true) 
    end 
end 
bindKey ( "F2", "down", OpenWin) 
  
function Bezaras() 
    guiSetVisible(window, false) 
    showCursor ( false ) 
    
end 
addEventHandler ( "onClientGUIClick", button, Bezaras) 
  
local aButtons = { button7 } 
addEventHandler('onClientGUIClick',root, 
    function (      ) 
        for i,v in ipairs ( aButtons ) do 
            if source == v then 
            if getElementData ( source,'AntiButtonFlood' ) == true then return outputChatBox('Várjál 12 órát. Buggoltatásért, illetve visszaélésért bann jár.') end 
                setElementData ( source,'AntiButtonFlood',true ) 
                setElementAlpha(localPlayer, 0) 
                setTimer ( setElementData,43200,1,source,'AntiButtonFlood',false ) 
        end 
    end 
end 
) 
  
local aButtons1 = { button2 } 
addEventHandler('onClientGUIClick',root, 
    function (      ) 
        for i,v in ipairs ( aButtons1 ) do 
            if source == v then 
            if getElementData ( source,'AntiButtonFlood' ) == true then return outputChatBox('Várjál 12 órát. Buggoltatásért, illetve visszaélésért bann jár.') end 
                setElementData ( source,'AntiButtonFlood',true ) 
        function godmode ( ) 
        cancelEvent ( ) 
        end 
  
        addEventHandler ( "onClientGUIClick", button2, 
        function ( ) 
        addEventHandler ( "onClientPlayerDamage", localPlayer, godmode ) 
        end 
        ,false 
) 
        setTimer ( setElementData,43200,1,source,'AntiButtonFlood',false ) 
        end 
    end 
end 
) 
  
addEventHandler("onClientGUIClick",getRootElement(), 
    function() 
        if source == button5 then 
            group = "writing" 
            triggerServerEvent("addToGroup", getLocalPlayer(), group) 
        end 
    end 
) 
  
local aButtons2 = { button33 } 
addEventHandler('onClientGUIClick',root, 
    function (      ) 
        for i,v in ipairs ( aButtons2 ) do 
            if source == v then 
            if getElementData ( source,'AntiButtonFlood' ) == true then return outputChatBox('Várjál 12 órát. Buggoltatásért, illetve visszaélésért bann jár.') end 
                setElementData ( source,'AntiButtonFlood',true ) 
            triggerServerEvent("giveWeapon", getLocalPlayer(), group) 
        setTimer ( setElementData,43200,1,source,'AntiButtonFlood',false ) 
        end 
    end 
end 
) 
  
local aButtons3 = { button6 } 
addEventHandler('onClientGUIClick',root, 
    function (      ) 
        for i,v in ipairs ( aButtons3 ) do 
            if source == v then 
            if getElementData ( source,'AntiButtonFlood' ) == true then return outputChatBox('Várjál 12 órát. Buggoltatásért, illetve visszaélésért bann jár.') end 
                setElementData ( source,'AntiButtonFlood',true ) 
            triggerServerEvent("giveWeapon1", getLocalPlayer(), group) 
        setTimer ( setElementData,43200,1,source,'AntiButtonFlood',false ) 
        end 
    end 
end 
) 
  
local aButtons4 = { button3 } 
addEventHandler('onClientGUIClick',root, 
    function (      ) 
        for i,v in ipairs ( aButtons4 ) do 
            if source == v then 
            if getElementData ( source,'AntiButtonFlood' ) == true then return outputChatBox('Várjál 12 órát. Buggoltatásért, illetve visszaélésért bann jár.') end 
                setElementData ( source,'AntiButtonFlood',true ) 
local car = getPedOccupiedVehicle(localPlayer) 
    if source == button3 then 
        if isVehicleDamageProof(car) == false then 
           setVehicleDamageProof(car, true) 
        else 
            if isVehicleDamageProof(car) == true then 
            setVehicleDamageProof(car, false) 
            end 
        end 
    end 
        setTimer ( setElementData,43200,1,source,'AntiButtonFlood',false ) 
        end 
    end 
end 
) 
  
local aButtons5 = { button4 } 
addEventHandler('onClientGUIClick',root, 
    function (      ) 
        for i,v in ipairs ( aButtons5 ) do 
            if source == v then 
            if getElementData ( source,'AntiButtonFlood' ) == true then return outputChatBox('Várjál 12 órát. Buggoltatásért, illetve visszaélésért bann jár.') end 
                setElementData ( source,'AntiButtonFlood',true ) 
triggerServerEvent("tank",getLocalPlayer(),0,255,0,"Ezt a tankot addig használhatod amíg szeretnéd, vigyázz rá, mert 12 óráig nem kapsz újat.") 
        setTimer ( setElementData,43200,1,source,'AntiButtonFlood',false ) 
        end 
    end 
end 
) 

What if the only way not to feel bad, is to stop feeling, anything at all, forever?
- Hannah Baker

I cost a girl her life because I was afraid to love her...
- Clay Jensen

 ~ 13 Reasons Why

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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