Jump to content

It returns "false"


#Paper

Recommended Posts

It returns a false value T_T

function setarchievment () 
local serial = getPlayerSerial(source) 
local getSerial = executeSQLSelect("archievment", "serial", "serial='"..serial.."'") 
if ( type( getSerial ) == "table" and #getSerial == 0 ) or not getSerial then  
executeSQLInsert ( "archievment", "'"..serial.."', 'Undone', 'Undone', 'Undone', 'Undone', 'Undone', 'Undone', 'Undone', 'Undone'" ) 
setElementData(source, "hunterman", "Undone") 
setElementData(source, "rich", "Undone") 
setElementData(source, "points", "Undone") 
setElementData(source, "wtf", "Undone") 
setElementData(source, "skilled1", "Undone") 
setElementData(source, "skilled2", "Undone") 
setElementData(source, "skilled3", "Undone") 
setElementData(source, "unstopplayer", "Undone") 
outputDebugString("Maked archievment table for"..getPlayerName(source)) 
else 
local archievment1 = executeSQLSelect("arch", "hunterman", "serial='"..serial.."'") 
local archievment2 = executeSQLSelect("arch", "rich", "serial='"..serial.."'") 
local archievment3 = executeSQLSelect("arch", "points", "serial='"..serial.."'") 
local archievment4 = executeSQLSelect("arch", "wtf", "serial='"..serial.."'") 
local archievment5 = executeSQLSelect("arch", "unstopplayer", "serial='"..serial.."'") 
local archievment6 = executeSQLSelect("arch", "skilled1", "serial='"..serial.."'") 
local archievment7 = executeSQLSelect("arch", "skilled2", "serial='"..serial.."'") 
local archievment8 = executeSQLSelect("arch", "skilled3", "serial='"..serial.."'") 
setElementData(source, "hunterman", tostring(archievment1[1]["hunterman"])) 
setElementData(source, "rich", tostring(archievment2[1]["rich"])) 
setElementData(source, "points", tostring(archievment3[1]["points"])) 
setElementData(source, "wtf", tostring(archievment4[1]["wtf"])) 
setElementData(source, "skilled1", tostring(archievment5[1]["skilled1"])) 
setElementData(source, "skilled2", tostring(archievment6[1]["skilled2"])) 
setElementData(source, "skilled3", tostring(archievment7[1]["skilled3"])) 
setElementData(source, "unstopplayer", tostring(archievment8[1]["unstopplayer"])) 
outputDebugString("Loaded archievment table for"..getPlayerName(source)) 
end 
end 
addEventHandler("onPlayerJoin", getRootElement(), setarchievment) 

Link to comment
It returns a false value T_T
function setarchievment () 
local serial = getPlayerSerial(source) 
local getSerial = executeSQLSelect("archievment", "serial", "serial='"..serial.."'") 
if ( type( getSerial ) == "table" and #getSerial == 0 ) or not getSerial then  
executeSQLInsert ( "archievment", "'"..serial.."', 'Undone', 'Undone', 'Undone', 'Undone', 'Undone', 'Undone', 'Undone', 'Undone'" ) 
setElementData(source, "hunterman", "Undone") 
setElementData(source, "rich", "Undone") 
setElementData(source, "points", "Undone") 
setElementData(source, "wtf", "Undone") 
setElementData(source, "skilled1", "Undone") 
setElementData(source, "skilled2", "Undone") 
setElementData(source, "skilled3", "Undone") 
setElementData(source, "unstopplayer", "Undone") 
outputDebugString("Maked archievment table for"..getPlayerName(source)) 
else 
local archievment1 = executeSQLSelect("arch", "hunterman", "serial='"..serial.."'") 
local archievment2 = executeSQLSelect("arch", "rich", "serial='"..serial.."'") 
local archievment3 = executeSQLSelect("arch", "points", "serial='"..serial.."'") 
local archievment4 = executeSQLSelect("arch", "wtf", "serial='"..serial.."'") 
local archievment5 = executeSQLSelect("arch", "unstopplayer", "serial='"..serial.."'") 
local archievment6 = executeSQLSelect("arch", "skilled1", "serial='"..serial.."'") 
local archievment7 = executeSQLSelect("arch", "skilled2", "serial='"..serial.."'") 
local archievment8 = executeSQLSelect("arch", "skilled3", "serial='"..serial.."'") 
setElementData(source, "hunterman", tostring(archievment1[1]["hunterman"])) 
setElementData(source, "rich", tostring(archievment2[1]["rich"])) 
setElementData(source, "points", tostring(archievment3[1]["points"])) 
setElementData(source, "wtf", tostring(archievment4[1]["wtf"])) 
setElementData(source, "skilled1", tostring(archievment5[1]["skilled1"])) 
setElementData(source, "skilled2", tostring(archievment6[1]["skilled2"])) 
setElementData(source, "skilled3", tostring(archievment7[1]["skilled3"])) 
setElementData(source, "unstopplayer", tostring(archievment8[1]["unstopplayer"])) 
outputDebugString("Loaded archievment table for"..getPlayerName(source)) 
end 
end 
addEventHandler("onPlayerJoin", getRootElement(), setarchievment) 

may be this:

  
function setarchievment () 
local serial = getPlayerSerial(source) 
local getSerial = executeSQLSelect("archievment", "serial", "serial='"..serial.."'") 
if ( type( getSerial ) == "table" and #getSerial == 0 ) or not getSerial then  
executeSQLInsert ( "archievment", "'"..serial.."', 'Undone', 'Undone', 'Undone', 'Undone', 'Undone', 'Undone', 'Undone', 'Undone'" ) 
setElementData(source, "hunterman", "Undone",true) 
setElementData(source, "rich", "Undone",true) 
setElementData(source, "points", "Undone",true) 
setElementData(source, "wtf", "Undone",true) 
setElementData(source, "skilled1", "Undone",true) 
setElementData(source, "skilled2", "Undone,true") 
setElementData(source, "skilled3", "Undone",true) 
setElementData(source, "unstopplayer", "Undone",true) 
outputDebugString("Maked archievment table for"..getPlayerName(source)) 
else 
local archievment1 = executeSQLSelect("arch", "hunterman", "serial='"..serial.."'") 
local archievment2 = executeSQLSelect("arch", "rich", "serial='"..serial.."'") 
local archievment3 = executeSQLSelect("arch", "points", "serial='"..serial.."'") 
local archievment4 = executeSQLSelect("arch", "wtf", "serial='"..serial.."'") 
local archievment5 = executeSQLSelect("arch", "unstopplayer", "serial='"..serial.."'") 
local archievment6 = executeSQLSelect("arch", "skilled1", "serial='"..serial.."'") 
local archievment7 = executeSQLSelect("arch", "skilled2", "serial='"..serial.."'") 
local archievment8 = executeSQLSelect("arch", "skilled3", "serial='"..serial.."'") 
setElementData(source, "hunterman", tostring(archievment1[1]["hunterman"]),true) 
setElementData(source, "rich", tostring(archievment2[1]["rich"]),true) 
setElementData(source, "points", tostring(archievment3[1]["points"]),true) 
setElementData(source, "wtf", tostring(archievment4[1]["wtf"]),true) 
setElementData(source, "skilled1", tostring(archievment5[1]["skilled1"]),true) 
setElementData(source, "skilled2", tostring(archievment6[1]["skilled2"]),true) 
setElementData(source, "skilled3", tostring(archievment7[1]["skilled3"]),true) 
setElementData(source, "unstopplayer", tostring(archievment8[1]["unstopplayer"]),true) 
outputDebugString("Loaded archievment table for"..getPlayerName(source)) 
end 
end 
addEventHandler("onPlayerJoin", getRootElement(), setarchievment) 
  

Link to comment
SuN a.k.a. AcitanoX, you are fu.ck.ed up, you did stealer from SHC

We are not going help with stealer

Edit:

He got my anti-afk

Becuase we cant change password in my ftps

Noob, sniper gave me the permission to use it... now i'll modifi it, adding a gui and other things...

If someone posted it in the community i can download it...

Edit:

Noob mother...

YOUR ANTIAFK? I DID TAKE IT FROM THE COMMUNITY NOOOOOOOOOOOB! -.-"

Link to comment

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...