Jump to content

Simple server script error, can't authenticate by serial.


rusztamas

Recommended Posts

Hello! Here is my script:
 

function serialCheck(thePlayer)
local check = getPlayerSerial (thePlayer)
if check == "CFCE0566CABAED4FDC72BD453130F5F4" or "295814D56EC67407443BFEA3D29D9193" then
outputChatBox ("Hello!", thePlayer, 0, 255, 0, true)
else
outputChatBox ("Error!", thePlayer, 255, 0, 0, true) --or return nil (if possible do not do anything here)

end
end
addCommandHandler ("check", serialCheck)

Every time i type in check, it outputs the error message. My serial is the first, the second is my friend's one. If it would work, after hello, it would do mutch more.
What i tried to do:

1) gets player serial, and checks if the player's serial is in the list
2) if it is in the list, it will output "hello"
3) if the player's serial is not in the list, it will output the message, "error"

 

What is the problem?

Link to comment
1 hour ago, rusztamas said:

I tried it by getPlayerName and inserted my name in the list, and it worked... but i need it with IP or serial :(

local serials = {
    ["CFCE0566CABAED4FDC72BD453130F5F4"] = true,
    ["295814D56EC67407443BFEA3D29D9193"] = true,
}

function serialCheck(thePlayer)
    local serial = getPlayerSerial (thePlayer)
    local text = serials[serial] and "Hello!" or "Error!"
    outputChatBox (text, thePlayer, 0, 255, 0, true)
end
addCommandHandler ("try", serialCheck)
  • /check :  it's an mta sa command
  • Like 2
Link to comment

I put your script in:
348615370asd_www.kepfeltoltes.hu_.png

I really don't know what the problem is. :(

15 hours ago, Walid said:

local serials = {    ["CFCE0566CABAED4FDC72BD453130F5F4"] = true,    ["295814D56EC67407443BFEA3D29D9193"] = true,}function serialCheck(thePlayer)    local serial = getPlayerSerial (thePlayer)    local text = serials[serial] and "Hello!" or "Error!"
    outputChatBox (text, thePlayer, 0, 255, 0, true)
end
addCommandHandler ("try", serialCheck)
  • /check :  it's an mta sa command

XML is correct, i think: 

<meta>
    <info author="Rusz Tamás" type="script" name="Script" />
    <script src="codeS.lua" type="server"></script>
</meta>

 

Link to comment
15 minutes ago, rusztamas said:

really don't know what the problem is. :(

Try this code

function serialCheck(thePlayer)
	local serial = getPlayerSerial (thePlayer)
	if serial == "CFCE0566CABAED4FDC72BD453130F5F4" or serial == "295814D56EC67407443BFEA3D29D9193" then
		outputChatBox ("Hello!", thePlayer, 0, 255, 0, true)
	else
		outputChatBox ("Error!", thePlayer, 255, 0, 0, true) --or return nil (if possible do not do anything here)
	end
end
addCommandHandler ("checkmyserial", serialCheck)

 

Link to comment

The solution was:

I always tried them with bad arguments, by using thePlayer, at onPlayerJoin :(

My F8 serial is wrong, but when i join in the game, it outputs to server console:

[2016-10-12 16:10:58] CONNECT: rusztmas connected (IP: 192.168.1.103  Serial: 4BB221CA8B037BE7FDF3A8FC0DE1A994  Version: 1.5.2-9.09928.4)
[2016-10-12 16:10:59] JOIN: rusztmas joined the game (IP: 192.168.1.103)

With the serial 4BB221CA8B037BE7FDF3A8FC0DE1A994 it is working, but with my F8 serial, CFCE0566CABAED4FDC72BD453130F5F4 it is not... is this normal?

Link to comment

Sorry for the Hungarian language, i'm making a test server, and i'm learning mta scripting here, that's why it's not english:
mta-screen_2016-10-12_16-38-09_www.kepfe

serials = {
    ["4BB221CA8B037BE7FDF3A8FC0DE1A994"] = false, --if i set this value to false, it will output error message
    ["CFCE0566CABAED4FDC72BD453130F5F4"] = true,
	

mta-screen_2016-10-12_16-43-31_www.kepfe

Whole script:
 

serials = {
    ["4BB221CA8B037BE7FDF3A8FC0DE1A994"] = true,
    ["CFCE0566CABAED4FDC72BD453130F5F4"] = true,
}

names = {
["rusztmas"] = true,
["Rusz_Tamas"] = true,
}

ips = {
["92.249.175.138"] = true,
["192.168.1.103"] = true,
}

function authenticateManually(thePlayer)
    local serial = getPlayerSerial (thePlayer)
    local name = getPlayerName (thePlayer)
    local ip = getPlayerIP (thePlayer)
    if serials[serial] then
	outputChatBox ("Serial alapján sikeres volt a beazonosítás!", thePlayer, 0, 255, 0, true)
	outputChatBox (""..serial.."", thePlayer, 255, 255, 255, true) else
	outputChatBox ("Serial alapján sikertelen volt a beazonosítás!", thePlayer, 255, 0, 0, true)
	outputChatBox (""..serial.."", thePlayer, 255, 255, 255, true) end
	if names[name] then
	outputChatBox ("Név alapján sikeres volt a beazonosítás!", thePlayer, 0, 255, 0, true)
	outputChatBox (""..name.."", thePlayer, 255, 255, 255, true) else
	outputChatBox ("Név alapján sikertelen volt a beazonosítás!", thePlayer, 255, 0, 0, true)
	outputChatBox (""..name.."", thePlayer, 255, 255, 255, true) end
	if ips[ip] then
	outputChatBox ("IP cím alapján sikeres volt a beazonosítás!", thePlayer, 0, 255, 0, true)
	outputChatBox (""..ip.."", thePlayer, 255, 255, 255, true) else
	outputChatBox ("IP cím alapján sikertelen volt a beazonosítás!", thePlayer, 255, 0, 0, true)
	outputChatBox (""..ip.."", thePlayer, 255, 255, 255, true) end
end
addCommandHandler ("try", authenticateManually)

 

Edited by rusztamas
Link to comment
37 minutes ago, rusztamas said:

My F8 serial is wrong, but when i join in the game, it outputs to server console:

Can you post the code which displays '4BB221CA8B037BE7FDF3A8FC0DE1A994' serial when you join? I don't think that it's an MTA bug since getPlayerSerial should return the correct serial at both places.

 

Edited by Gravestone
Link to comment
==================================================================
= Multi Theft Auto: San Andreas v1.5.2
==================================================================
= Server name      : Default MTA Server
= Server IP address: auto
= Server port      : 22003
= 
= Log file         : .. 1.5/server/mods/deathmatch/logs/server.log
= Maximum players  : 32
= HTTP port        : 22005
= Voice Chat       : Disabled
= Bandwidth saving : Medium
==================================================================
[2016-10-12 16:09:58] Resource 'acpanel' requests some acl rights. Use the command 'aclrequest list acpanel'
[2016-10-12 16:10:27] Resources: 194 loaded, 0 failed
[2016-10-12 16:10:28] Starting resources...
[2016-10-12 16:10:29] Server minclientversion is now 1.5.2-9.09928.0
[2016-10-12 16:10:30] Gamemode 'play' started.
[2016-10-12 16:10:30] Querying MTA master server... success! (Auto detected IP:92.249.175.138)
[2016-10-12 16:10:30] Server started and is ready to accept connections!
[2016-10-12 16:10:30] To stop the server, type 'shutdown' or press Ctrl-C
[2016-10-12 16:10:30] Type 'help' for a list of commands.
[2016-10-12 16:10:58] CONNECT: rusztmas connected (IP: 192.168.1.103  Serial: 4BB221CA8B037BE7FDF3A8FC0DE1A994  Version: 1.5.2-9.09928.4)
[2016-10-12 16:10:59] JOIN: rusztmas joined the game (IP: 192.168.1.103)
[2016-10-12 16:10:59] WARNING: script\codeS.lua:50: Bad argument @ 'getPlayerSerial' [Expected player at argument 1, got number '-2405']
[2016-10-12 16:10:59] WARNING: script\codeS.lua:51: Bad argument @ 'getPlayerName' [Expected element at argument 1, got number '-2405']
[2016-10-12 16:10:59] WARNING: script\codeS.lua:54: Bad argument @ 'outputChatBox' [Expected element at argument 2, got number '-2405']
[2016-10-12 16:10:59] WARNING: script\codeS.lua:57: Bad argument @ 'outputChatBox' [Expected element at argument 2, got number '-2405']
[2016-10-12 16:10:59] WARNING: script\codeS.lua:60: Bad argument @ 'outputChatBox' [Expected element at argument 2, got number '-2405']
[2016-10-12 16:12:01] LOGIN: (Admin, Everyone) rusztmas successfully logged in as 'rusztmas' (IP: 192.168.1.103  Serial: 4BB221CA8B037BE7FDF3A8FC0DE1A994)
[2016-10-12 16:12:01] SCRIPT: rusztmas set their script debug mode to 3
[2016-10-12 16:12:02] restart: Requested by rusztmas
[2016-10-12 16:12:02] Stopping script
[2016-10-12 16:12:02] Resource 'script' changed, reloading and starting
[2016-10-12 16:12:02] Starting script
[2016-10-12 16:12:02] SCRIPT ERROR: script\codeS.lua:49: ')' expected near '('
[2016-10-12 16:12:02] ERROR: Loading script failed: script\codeS.lua:49: ')' expected near '('
[2016-10-12 16:12:02] script restarted successfully
[2016-10-12 16:12:30] restart: Requested by rusztmas
[2016-10-12 16:12:30] Stopping script
[2016-10-12 16:12:30] Resource 'script' changed, reloading and starting
[2016-10-12 16:12:30] Starting script
[2016-10-12 16:12:30] script restarted successfully
[2016-10-12 16:12:32] QUIT: rusztmas left the game [Quit]
[2016-10-12 16:12:34] CONNECT: rusztmas connected (IP: 192.168.1.103  Serial: 4BB221CA8B037BE7FDF3A8FC0DE1A994  Version: 1.5.2-9.09928.4)
[2016-10-12 16:12:34] JOIN: rusztmas joined the game (IP: 192.168.1.103)
[2016-10-12 16:12:34] WARNING: script\codeS.lua:50: Bad argument @ 'getPlayerSerial' [Expected player at argument 1, got root]
[2016-10-12 16:12:40] WARNING: script\codeS.lua:50: Bad argument @ 'getPlayerSerial' [Expected player at argument 1, got root]
[2016-10-12 16:13:04] ACL: Denied 'rusztmas' access to command 'restart'
[2016-10-12 16:13:07] LOGIN: (Admin, Everyone) rusztmas successfully logged in as 'rusztmas' (IP: 192.168.1.103  Serial: 4BB221CA8B037BE7FDF3A8FC0DE1A994)
[2016-10-12 16:13:09] restart: Requested by rusztmas
[2016-10-12 16:13:09] Stopping script
[2016-10-12 16:13:09] Resource 'script' changed, reloading and starting
[2016-10-12 16:13:09] Starting script
[2016-10-12 16:13:09] script restarted successfully
[2016-10-12 16:13:14] WARNING: script\codeS.lua:50: Bad argument @ 'getPlayerSerial' [Expected player at argument 1, got root]
[2016-10-12 16:13:20] SCRIPT: rusztmas set their script debug mode to 3
[2016-10-12 16:16:06] restart: Requested by rusztmas
[2016-10-12 16:16:06] Stopping script
[2016-10-12 16:16:06] Resource 'script' changed, reloading and starting
[2016-10-12 16:16:06] Starting script
[2016-10-12 16:16:06] script restarted successfully
[2016-10-12 16:16:07] WARNING: script\codeS.lua:50: Bad argument @ 'getPlayerSerial' [Expected player at argument 1, got root]
[2016-10-12 16:16:39] restart: Requested by rusztmas
[2016-10-12 16:16:39] Stopping script
[2016-10-12 16:16:39] Resource 'script' changed, reloading and starting
[2016-10-12 16:16:39] Starting script
[2016-10-12 16:16:39] script restarted successfully
[2016-10-12 16:16:40] WARNING: script\codeS.lua:50: Bad argument @ 'getPlayerSerial' [Expected player at argument 1, got nil]
[2016-10-12 16:16:52] restart: Requested by rusztmas
[2016-10-12 16:16:52] Stopping script
[2016-10-12 16:16:52] Resource 'script' changed, reloading and starting
[2016-10-12 16:16:52] Starting script
[2016-10-12 16:16:52] script restarted successfully
[2016-10-12 16:16:53] WARNING: script\codeS.lua:50: Bad argument @ 'getPlayerSerial' [Expected player at argument 1, got nil]
[2016-10-12 16:17:10] restart: Requested by rusztmas
[2016-10-12 16:17:10] Stopping script
[2016-10-12 16:17:10] Starting script
[2016-10-12 16:17:10] script restarted successfully
[2016-10-12 16:17:11] WARNING: script\codeS.lua:50: Bad argument @ 'getPlayerSerial' [Expected player at argument 1, got nil]
[2016-10-12 16:18:55] restart: Requested by rusztmas
[2016-10-12 16:18:55] Stopping script
[2016-10-12 16:18:55] Resource 'script' changed, reloading and starting
[2016-10-12 16:18:55] Starting script
[2016-10-12 16:18:55] script restarted successfully
[2016-10-12 16:19:03] CHAT: rusztmas: asd
[2016-10-12 16:19:58] restart: Requested by rusztmas
[2016-10-12 16:19:58] Stopping script
[2016-10-12 16:19:58] Resource 'script' changed, reloading and starting
[2016-10-12 16:19:58] Starting script
[2016-10-12 16:19:58] script restarted successfully
[2016-10-12 16:20:04] CHAT: rusztmas: adasd
[2016-10-12 16:20:19] restart: Requested by rusztmas
[2016-10-12 16:20:19] Stopping script
[2016-10-12 16:20:19] Resource 'script' changed, reloading and starting
[2016-10-12 16:20:19] Starting script
[2016-10-12 16:20:19] script restarted successfully
[2016-10-12 16:20:23] CHAT: rusztmas: asd
[2016-10-12 16:20:34] restart: Requested by rusztmas
[2016-10-12 16:20:34] Stopping script
[2016-10-12 16:20:35] Resource 'script' changed, reloading and starting
[2016-10-12 16:20:35] Starting script
[2016-10-12 16:20:35] script restarted successfully
[2016-10-12 16:20:47] restart: Requested by rusztmas
[2016-10-12 16:20:47] Stopping script
[2016-10-12 16:20:47] Resource 'script' changed, reloading and starting
[2016-10-12 16:20:47] Starting script
[2016-10-12 16:20:47] script restarted successfully
[2016-10-12 16:20:54] restart: Requested by rusztmas
[2016-10-12 16:20:54] Stopping script
[2016-10-12 16:20:54] Resource 'script' changed, reloading and starting
[2016-10-12 16:20:54] Starting script
[2016-10-12 16:20:54] script restarted successfully
[2016-10-12 16:20:57] CHAT: rusztmas: asdd
[2016-10-12 16:23:11] restart: Requested by rusztmas
[2016-10-12 16:23:11] Stopping script
[2016-10-12 16:23:11] Resource 'script' changed, reloading and starting
[2016-10-12 16:23:11] Starting script
[2016-10-12 16:23:11] script restarted successfully
[2016-10-12 16:23:16] WARNING: script\codeS.lua:69: Bad argument @ 'getPlayerSerial' [Expected player at argument 1, got nil]
[2016-10-12 16:23:16] WARNING: script\codeS.lua:70: Bad argument @ 'getPlayerName' [Expected element at argument 1, got nil]
[2016-10-12 16:23:16] WARNING: script\codeS.lua:71: Bad argument @ 'getPlayerIP' [Expected element at argument 1, got nil]
[2016-10-12 16:23:31] WARNING: script\codeS.lua:69: Bad argument @ 'getPlayerSerial' [Expected player at argument 1, got nil]
[2016-10-12 16:23:31] WARNING: script\codeS.lua:70: Bad argument @ 'getPlayerName' [Expected element at argument 1, got nil]
[2016-10-12 16:23:31] WARNING: script\codeS.lua:71: Bad argument @ 'getPlayerIP' [Expected element at argument 1, got nil]
[2016-10-12 16:23:49] restart: Requested by rusztmas
[2016-10-12 16:23:49] Stopping script
[2016-10-12 16:23:49] Resource 'script' changed, reloading and starting
[2016-10-12 16:23:49] Starting script
[2016-10-12 16:23:49] script restarted successfully
[2016-10-12 16:24:22] restart: Requested by rusztmas
[2016-10-12 16:24:22] Stopping script
[2016-10-12 16:24:23] Resource 'script' changed, reloading and starting
[2016-10-12 16:24:23] Starting script
[2016-10-12 16:24:23] script restarted successfully
[2016-10-12 16:24:50] NICK: rusztmas is now known as Rusz_Tamas
[2016-10-12 16:24:56] NICK: Rusz_Tamas is now known as Rusz_Tamass
[2016-10-12 16:26:02] restart: Requested by Rusz_Tamass(rusztmas)
[2016-10-12 16:26:02] Stopping script
[2016-10-12 16:26:02] Resource 'script' changed, reloading and starting
[2016-10-12 16:26:02] Starting script
[2016-10-12 16:26:02] script restarted successfully
[2016-10-12 16:26:23] NICK: Rusz_Tamass is now known as rusztmas
[2016-10-12 16:27:58] restart: Requested by rusztmas
[2016-10-12 16:27:58] Stopping script
[2016-10-12 16:27:59] Resource 'script' changed, reloading and starting
[2016-10-12 16:27:59] Starting script
[2016-10-12 16:27:59] script restarted successfully
[2016-10-12 16:30:37] restart: Requested by rusztmas
[2016-10-12 16:30:37] Stopping script
[2016-10-12 16:30:37] Resource 'script' changed, reloading and starting
[2016-10-12 16:30:37] Starting script
[2016-10-12 16:30:37] script restarted successfully
[2016-10-12 16:30:39] QUIT: rusztmas left the game [Quit]
[2016-10-12 16:30:41] CONNECT: rusztmas connected (IP: 192.168.1.103  Serial: 4BB221CA8B037BE7FDF3A8FC0DE1A994  Version: 1.5.2-9.09928.4)
[2016-10-12 16:30:41] JOIN: rusztmas joined the game (IP: 192.168.1.103)
[2016-10-12 16:30:41] WARNING: script\codeS.lua:50: Bad argument @ 'getPlayerSerial' [Expected player at argument 1, got root]
[2016-10-12 16:30:41] ERROR: script\codeS.lua:57: attempt to concatenate local 'serial' (a boolean value)
[2016-10-12 16:31:13] LOGIN: (Admin, Everyone) rusztmas successfully logged in as 'rusztmas' (IP: 192.168.1.103  Serial: 4BB221CA8B037BE7FDF3A8FC0DE1A994)
[2016-10-12 16:31:13] SCRIPT: rusztmas set their script debug mode to 3
[2016-10-12 16:31:15] restart: Requested by rusztmas
[2016-10-12 16:31:15] Stopping script
[2016-10-12 16:31:15] Resource 'script' changed, reloading and starting
[2016-10-12 16:31:15] Starting script
[2016-10-12 16:31:15] script restarted successfully
[2016-10-12 16:31:17] QUIT: rusztmas left the game [Quit]
[2016-10-12 16:31:19] CONNECT: rusztmas connected (IP: 192.168.1.103  Serial: 4BB221CA8B037BE7FDF3A8FC0DE1A994  Version: 1.5.2-9.09928.4)
[2016-10-12 16:31:19] JOIN: rusztmas joined the game (IP: 192.168.1.103)
[2016-10-12 16:31:19] WARNING: script\codeS.lua:50: Bad argument @ 'getPlayerSerial' [Expected player at argument 1, got root]
[2016-10-12 16:31:19] ERROR: script\codeS.lua:57: attempt to concatenate local 'serial' (a boolean value)
[2016-10-12 16:32:39] ACL: Denied 'rusztmas' access to command 'restart'
[2016-10-12 16:32:40] LOGIN: (Admin, Everyone) rusztmas successfully logged in as 'rusztmas' (IP: 192.168.1.103  Serial: 4BB221CA8B037BE7FDF3A8FC0DE1A994)
[2016-10-12 16:32:40] SCRIPT: rusztmas set their script debug mode to 3
[2016-10-12 16:32:42] restart: Requested by rusztmas
[2016-10-12 16:32:42] Stopping script
[2016-10-12 16:32:42] Resource 'script' changed, reloading and starting
[2016-10-12 16:32:42] Starting script
[2016-10-12 16:32:42] SCRIPT ERROR: script\codeS.lua:49: ')' expected near '('
[2016-10-12 16:32:42] ERROR: Loading script failed: script\codeS.lua:49: ')' expected near '('
[2016-10-12 16:32:42] script restarted successfully
[2016-10-12 16:32:58] restart: Requested by rusztmas
[2016-10-12 16:32:58] Stopping script
[2016-10-12 16:32:58] Resource 'script' changed, reloading and starting
[2016-10-12 16:32:58] Starting script
[2016-10-12 16:32:58] script restarted successfully
[2016-10-12 16:33:01] QUIT: rusztmas left the game [Quit]
[2016-10-12 16:33:03] CONNECT: rusztmas connected (IP: 192.168.1.103  Serial: 4BB221CA8B037BE7FDF3A8FC0DE1A994  Version: 1.5.2-9.09928.4)
[2016-10-12 16:33:03] JOIN: rusztmas joined the game (IP: 192.168.1.103)
[2016-10-12 16:33:03] WARNING: script\codeS.lua:50: Bad argument @ 'getPlayerSerial' [Expected player at argument 1, got root]
[2016-10-12 16:33:09] ERROR: script\codeS.lua:57: attempt to concatenate local 'serial' (a boolean value)
[2016-10-12 16:33:53] ACL: Denied 'rusztmas' access to command 'restart'
[2016-10-12 16:33:54] LOGIN: (Admin, Everyone) rusztmas successfully logged in as 'rusztmas' (IP: 192.168.1.103  Serial: 4BB221CA8B037BE7FDF3A8FC0DE1A994)
[2016-10-12 16:33:54] SCRIPT: rusztmas set their script debug mode to 3
[2016-10-12 16:33:55] restart: Requested by rusztmas
[2016-10-12 16:33:55] Stopping script
[2016-10-12 16:33:55] Resource 'script' changed, reloading and starting
[2016-10-12 16:33:55] Starting script
[2016-10-12 16:33:55] script restarted successfully
[2016-10-12 16:33:57] QUIT: rusztmas left the game [Quit]
[2016-10-12 16:33:59] CONNECT: rusztmas connected (IP: 192.168.1.103  Serial: 4BB221CA8B037BE7FDF3A8FC0DE1A994  Version: 1.5.2-9.09928.4)
[2016-10-12 16:33:59] JOIN: rusztmas joined the game (IP: 192.168.1.103)
[2016-10-12 16:33:59] WARNING: script\codeS.lua:50: Bad argument @ 'getPlayerSerial' [Expected player at argument 1, got root]
[2016-10-12 16:33:59] ERROR: script\codeS.lua:57: attempt to concatenate local 'serial' (a boolean value)
[2016-10-12 16:36:04] ACL: Denied 'rusztmas' access to command 'restart'
[2016-10-12 16:36:05] LOGIN: (Admin, Everyone) rusztmas successfully logged in as 'rusztmas' (IP: 192.168.1.103  Serial: 4BB221CA8B037BE7FDF3A8FC0DE1A994)
[2016-10-12 16:36:05] SCRIPT: rusztmas set their script debug mode to 3
[2016-10-12 16:36:06] restart: Requested by rusztmas
[2016-10-12 16:36:06] Stopping script
[2016-10-12 16:36:06] Resource 'script' changed, reloading and starting
[2016-10-12 16:36:06] Starting script
[2016-10-12 16:36:06] WARNING: script\codeS.lua:69: Bad argument @ 'addEventHandler' [Expected element at argument 2, got nil]
[2016-10-12 16:36:06] script restarted successfully
[2016-10-12 16:36:26] restart: Requested by rusztmas
[2016-10-12 16:36:26] Stopping script
[2016-10-12 16:36:26] Resource 'script' changed, reloading and starting
[2016-10-12 16:36:26] Starting script
[2016-10-12 16:36:26] script restarted successfully
[2016-10-12 16:36:27] QUIT: rusztmas left the game [Quit]
[2016-10-12 16:36:29] CONNECT: rusztmas connected (IP: 192.168.1.103  Serial: 4BB221CA8B037BE7FDF3A8FC0DE1A994  Version: 1.5.2-9.09928.4)
[2016-10-12 16:36:29] JOIN: rusztmas joined the game (IP: 192.168.1.103)
[2016-10-12 16:36:29] WARNING: script\codeS.lua:50: Bad argument @ 'getPlayerSerial' [Expected player at argument 1, got number '2005']
[2016-10-12 16:36:29] WARNING: script\codeS.lua:51: Bad argument @ 'getPlayerName' [Expected element at argument 1, got number '2005']
[2016-10-12 16:36:29] WARNING: script\codeS.lua:52: Bad argument @ 'getPlayerIP' [Expected element at argument 1, got number '2005']
[2016-10-12 16:36:29] WARNING: script\codeS.lua:56: Bad argument @ 'outputChatBox' [Expected element at argument 2, got number '2005']
[2016-10-12 16:36:29] ERROR: script\codeS.lua:57: attempt to concatenate local 'serial' (a boolean value)
[2016-10-12 16:42:27] ACL: Denied 'rusztmas' access to command 'restart'
[2016-10-12 16:42:28] LOGIN: (Admin, Everyone) rusztmas successfully logged in as 'rusztmas' (IP: 192.168.1.103  Serial: 4BB221CA8B037BE7FDF3A8FC0DE1A994)
[2016-10-12 16:42:28] SCRIPT: rusztmas set their script debug mode to 3
[2016-10-12 16:42:30] restart: Requested by rusztmas
[2016-10-12 16:42:30] Stopping script
[2016-10-12 16:42:31] Resource 'script' changed, reloading and starting
[2016-10-12 16:42:31] Starting script
[2016-10-12 16:42:31] script restarted successfully
[2016-10-12 16:48:50] restart: Requested by rusztmas
[2016-10-12 16:48:50] Stopping script
[2016-10-12 16:48:50] Resource 'script' changed, reloading and starting
[2016-10-12 16:48:50] Starting script
[2016-10-12 16:48:50] WARNING: script\codeS.lua:69: Bad argument @ 'addEventHandler' [Expected element at argument 2, got nil]
[2016-10-12 16:48:50] script restarted successfully
[2016-10-12 16:49:01] restart: Requested by rusztmas
[2016-10-12 16:49:01] Stopping script
[2016-10-12 16:49:01] Resource 'script' changed, reloading and starting
[2016-10-12 16:49:01] Starting script
[2016-10-12 16:49:01] script restarted successfully
[2016-10-12 16:49:02] restart: Requested by rusztmas
[2016-10-12 16:49:02] Stopping script
[2016-10-12 16:49:02] Starting script
[2016-10-12 16:49:02] script restarted successfully
[2016-10-12 16:49:05] QUIT: rusztmas left the game [Quit]
[2016-10-12 16:49:07] CONNECT: rusztmas connected (IP: 192.168.1.103  Serial: 4BB221CA8B037BE7FDF3A8FC0DE1A994  Version: 1.5.2-9.09928.4)
[2016-10-12 16:49:08] JOIN: rusztmas joined the game (IP: 192.168.1.103)
[2016-10-12 16:49:08] WARNING: script\codeS.lua:50: Bad argument @ 'getPlayerSerial' [Expected player at argument 1, got number '2485']
[2016-10-12 16:49:08] WARNING: script\codeS.lua:51: Bad argument @ 'getPlayerName' [Expected element at argument 1, got number '2485']
[2016-10-12 16:49:08] WARNING: script\codeS.lua:52: Bad argument @ 'getPlayerIP' [Expected element at argument 1, got number '2485']
[2016-10-12 16:49:08] WARNING: script\codeS.lua:56: Bad argument @ 'outputChatBox' [Expected element at argument 2, got number '2485']
[2016-10-12 16:49:08] ERROR: script\codeS.lua:57: attempt to concatenate local 'serial' (a boolean value)
[2016-10-12 16:49:49] LOGIN: (Admin, Everyone) rusztmas successfully logged in as 'rusztmas' (IP: 192.168.1.103  Serial: 4BB221CA8B037BE7FDF3A8FC0DE1A994)
[2016-10-12 16:49:49] SCRIPT: rusztmas set their script debug mode to 3
[2016-10-12 16:49:49] restart: Requested by rusztmas
[2016-10-12 16:49:49] Stopping script
[2016-10-12 16:49:49] Resource 'script' changed, reloading and starting
[2016-10-12 16:49:49] Starting script
[2016-10-12 16:49:49] script restarted successfully
[2016-10-12 16:49:52] QUIT: rusztmas left the game [Quit]
[2016-10-12 16:49:54] WARNING: script\codeS.lua:50: Bad argument @ 'getPlayerSerial' [Expected player at argument 1, got string 'rusztmas']
[2016-10-12 16:49:54] WARNING: script\codeS.lua:51: Bad argument @ 'getPlayerName' [Expected element at argument 1, got string 'rusztmas']
[2016-10-12 16:49:54] WARNING: script\codeS.lua:52: Bad argument @ 'getPlayerIP' [Expected element at argument 1, got string 'rusztmas']
[2016-10-12 16:49:54] WARNING: script\codeS.lua:56: Bad argument @ 'outputChatBox' [Expected element at argument 2, got string 'rusztmas']
[2016-10-12 16:49:54] ERROR: script\codeS.lua:57: attempt to concatenate local 'serial' (a boolean value)
[2016-10-12 16:49:54] CONNECT: rusztmas connected (IP: 192.168.1.103  Serial: 4BB221CA8B037BE7FDF3A8FC0DE1A994  Version: 1.5.2-9.09928.4)
[2016-10-12 16:49:54] JOIN: rusztmas joined the game (IP: 192.168.1.103)

 

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