• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua simple "and" problem

ziggy46802

Active Member
Joined
Aug 19, 2012
Messages
418
Reaction score
27
Here is the login.lua script

Code:
function onLogin(cid)
		
	if getPlayerStorageValue(cid, 1000) < 1 then
	setPlayerStorageValue(cid, 1000, 1) and  --line 10
	
--killing in the name of

setPlayerStorageValue(cid, 	14501, 0) and
setPlayerStorageValue(cid, 	14502, 0) and

and heres what it says in my console

Code:
23/09/2012 11:46:12] [Error - LuaScriptInterface::loadFile] data/creaturescripts/scripts/login.lua:10: unexpected symbol near 'and'
[23/09/2012 11:46:12] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/login.lua)
[23/09/2012 11:46:12] data/creaturescripts/scripts/login.lua:10: unexpected symbol near 'and'

I dont see what the problem is....
 
Back
Top