• 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!

Solved Simple LUA problem

ziggy46802

Active Member
Joined
Aug 19, 2012
Messages
418
Reaction score
27
heres my script

Code:
function onLogin(cid)

if (getPlayerStorageValue(cid, 1000) < 1) then setPlayerStorageValue(cid, 1000, 1)
and (getPlayerStorageValue(cid, 1001) < 1) then setPlayerStorageValue(cid, 1001, 1)
and (getPlayerStorageValue(cid, 1002) < 1) then setPlayerStorageValue(cid, 1002, 1)

server is saying it can't read login.lua due to the first and, what's the problem?
 
Code:
function onLogin(cid)
   if (getPlayerStorageValue(cid, 1000) < 1) then
      setPlayerStorageValue(cid, 1000, 1)
   elseif (getPlayerStorageValue(cid, 1001) < 1) then
      setPlayerStorageValue(cid, 1001, 1)
   elseif (getPlayerStorageValue(cid, 1002) < 1) then
      setPlayerStorageValue(cid, 1002, 1)
      end
   return true
end
 
Back
Top