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

can someone fix the problem

Sir MoX

New Member
Joined
Jan 14, 2009
Messages
285
Reaction score
1
hi, when i start the server the script to make citizen the players of the cities has an error so I need someone who can fix it please ^^

function onStepIn(cid, item, pos)

if isPlayer(cid) == TRUE then
if (item.actionid == 5000) then
doPlayerSendTextMessage(cid,22,"Now you are citizen of Thais City.")
doPlayerSetTown(cid,1)

elseif (item.actionid == 5001) then
doPlayerSendTextMessage(cid,22,"Now you are citizen of Venriel City.")
doPlayerSetTown(cid,4)

elseif (item.actionid == 5002) then
doPlayerSendTextMessage(cid,22,"Now you are citizen of Kosiji City.")
doPlayerSetTown(cid,2)

elseif (item.actionid == 5003) then
doPlayerSendTextMessage(cid,22,"Now you are citizen of Asgard City.")
doPlayerSetTown(cid,5)

elseif (item.actionid == 5004) then
doPlayerSendTextMessage(cid,22,"Now you are citizen of Mustafar City.")
doPlayerSetTown(cid,6)

elseif (item.actionid == 5005) then
doPlayerSendTextMessage(cid,22,"Now you are citizen of Siria City.")
doPlayerSetTown(cid,3)

end
end
end
end
end

and heres the problem that appear in the starter:

[07/02/2009 23:50:08] Warning: [Event::loadScript] Can not load script. data/movements/scripts/temple.lua
[07/02/2009 23:50:08] data/movements/scripts/temple.lua:31: '<eof>' expected near 'end'
[07/02/2009 23:50:08] Warning: [Event::loadScript] Can not load script. data/movements/scripts/temple.lua
[07/02/2009 23:50:08] data/movements/scripts/temple.lua:31: '<eof>' expected near 'end'
[07/02/2009 23:50:08] Warning: [Event::loadScript] Can not load script. data/movements/scripts/temple.lua
[07/02/2009 23:50:08] data/movements/scripts/temple.lua:31: '<eof>' expected near 'end'
[07/02/2009 23:50:08] Warning: [Event::loadScript] Can not load script. data/movements/scripts/temple.lua
[07/02/2009 23:50:08] data/movements/scripts/temple.lua:31: '<eof>' expected near 'end'
[07/02/2009 23:50:08] Warning: [Event::loadScript] Can not load script. data/movements/scripts/temple.lua
[07/02/2009 23:50:08] data/movements/scripts/temple.lua:31: '<eof>' expected near 'end'
[07/02/2009 23:50:08] Warning: [Event::loadScript] Can not load script. data/movements/scripts/temple.lua
[07/02/2009 23:50:08] data/movements/scripts/temple.lua:31: '<eof>' expected near 'end'
 
hi, when i start the server the script to make citizen the players of the cities has an error so I need someone who can fix it please ^^



and heres the problem that appear in the starter:

Try

Code:
function onStepIn(cid, item, pos)

if isPlayer(cid) == TRUE then
if (item.actionid == 5000) then
doPlayerSendTextMessage(cid,22,"Now you are citizen of Thais City.")
doPlayerSetTown(cid,1)

elseif (item.actionid == 5001) then
doPlayerSendTextMessage(cid,22,"Now you are citizen of Venriel City.")
doPlayerSetTown(cid,4)

elseif (item.actionid == 5002) then
doPlayerSendTextMessage(cid,22,"Now you are citizen of Kosiji City.")
doPlayerSetTown(cid,2)

elseif (item.actionid == 5003) then
doPlayerSendTextMessage(cid,22,"Now you are citizen of Asgard City.")
doPlayerSetTown(cid,5)

elseif (item.actionid == 5004) then
doPlayerSendTextMessage(cid,22,"Now you are citizen of Mustafar City.")
doPlayerSetTown(cid,6)

elseif (item.actionid == 5005) then
doPlayerSendTextMessage(cid,22,"Now you are citizen of Siria City.")
doPlayerSetTown(cid,3)

end
end
end
return true
end

not sure but always worth a try
 
PHP:
function onStepIn(cid, item, pos)
	if isPlayer(cid) == TRUE then
		if (item.actionid == 5000) then
			doPlayerSendTextMessage(cid,22,"Now you are citizen of Thais City.")
			doPlayerSetTown(cid,1)

		elseif (item.actionid == 5001) then
			doPlayerSendTextMessage(cid,22,"Now you are citizen of Venriel City.")
			doPlayerSetTown(cid,4)

		elseif (item.actionid == 5002) then
			doPlayerSendTextMessage(cid,22,"Now you are citizen of Kosiji City.")
			doPlayerSetTown(cid,2)

		elseif (item.actionid == 5003) then
			doPlayerSendTextMessage(cid,22,"Now you are citizen of Asgard City.")
			doPlayerSetTown(cid,5)

		elseif (item.actionid == 5004) then
			doPlayerSendTextMessage(cid,22,"Now you are citizen of Mustafar City.")
			doPlayerSetTown(cid,6)

		elseif (item.actionid == 5005) then
			doPlayerSendTextMessage(cid,22,"Now you are citizen of Siria City.")
			doPlayerSetTown(cid,3)

		end
	end
	return TRUE
end

There you go :) you had too many "end"s
 
PHP:
function onStepIn(cid, item, pos)
	if isPlayer(cid) == TRUE then
		if (item.actionid == 5000) then
			doPlayerSendTextMessage(cid,22,"Now you are citizen of Thais City.")
			doPlayerSetTown(cid,1)

		elseif (item.actionid == 5001) then
			doPlayerSendTextMessage(cid,22,"Now you are citizen of Venriel City.")
			doPlayerSetTown(cid,4)

		elseif (item.actionid == 5002) then
			doPlayerSendTextMessage(cid,22,"Now you are citizen of Kosiji City.")
			doPlayerSetTown(cid,2)

		elseif (item.actionid == 5003) then
			doPlayerSendTextMessage(cid,22,"Now you are citizen of Asgard City.")
			doPlayerSetTown(cid,5)

		elseif (item.actionid == 5004) then
			doPlayerSendTextMessage(cid,22,"Now you are citizen of Mustafar City.")
			doPlayerSetTown(cid,6)

		elseif (item.actionid == 5005) then
			doPlayerSendTextMessage(cid,22,"Now you are citizen of Siria City.")
			doPlayerSetTown(cid,3)

		end
	end
	return TRUE
end

There you go :) you had too many "end"s

Just as i thought, had 1 to many ends on my change ;p sux i cant add rep to you. well thanks.
 
Back
Top