Okay, So I was trying to make some admin commands in witch I just add a thing in a moudle script to
add a command. However my check privileges thing only runs once. Also, it only runs to the third print, not the fourth.
My output is also really weird because it should say
1st
1st
1st
1st
but it says
1st
2st
3st
Code:
function Admin:CheckPriv(plrname)
for z=1, #Settingz do
print(z.."st")
izil=Settingz
if thegmatch(izil[z], "%S+") == plrname then
print(z.."st")
for i in string.gmatch(plrname, "%S+") do
print(z.."st")
p=p+1
if p==2 then
print(z.."st")
return i
end
end
end
end
return -50
end
Output:
1st
2st
3st |