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

Movements-Error

Kudzu

Active Member
Joined
Apr 9, 2008
Messages
512
Reaction score
40
Location
localhost
PHP:
function onStepIn(cid, item, position, fromPosition)
    if getPlayerStorageValue(cid, CONFIG[item.actionid].storage) == -1 then
        doPlayerSendTextMessage(cid, 22, "Pokonales  " .. CONFIG[item.actionid].seal .. "\'s i absorbowales czesc jego energii.")
        setPlayerStorageValue(cid, CONFIG[item.actionid].storage, 1)
    else
        doPlayerSendTextMessage(cid, 22, "Obecnie zaliczyles " .. CONFIG[item.actionid].seal .. "\'s i absorbowales czesc jego energii.")
    end
  return TRUE
end

In console I have that error:
[15/11/2010 17:26:33] [Error - MoveEvents Interface]
[15/11/2010 17:26:33] data/movements/scripts/inq_bossowie.lua:onStepIn
[15/11/2010 17:26:33] Description:
[15/11/2010 17:26:33] (luaDoPlayerSendTextMessage) Player not found

What wrong's here? Please help.
 
LUA:
function onStepIn(cid, item, position, fromPosition)
	if isPlayer(cid) then
		if getPlayerStorageValue(cid, CONFIG[item.actionid].storage) == -1 then
			doPlayerSendTextMessage(cid, 22, "Pokonales  " .. CONFIG[item.actionid].seal .. "\'s i absorbowales czesc jego energii.")
			setPlayerStorageValue(cid, CONFIG[item.actionid].storage, 1)
		else
			doPlayerSendTextMessage(cid, 22, "Obecnie zaliczyles " .. CONFIG[item.actionid].seal .. "\'s i absorbowales czesc jego energii.")
		end
	end
end
 
Ok.Thank You. This work. I have next question to you you know maybe why I have that error in db? I cant add this table
mysql_real_query(): SELECT `player_id` AS `vip` FROM `account_viplist` WHERE `account_id` = 5916748 AND `world_id` = 0 - MYSQL ERROR: Table 'wejotstest.account_viplist' doesn't exist (1146)
 
Execute this query in phpMyAdmin:
SQL:
CREATE TABLE `account_viplist`
(
	`account_id` INT NOT NULL,
	`world_id` TINYINT(2) UNSIGNED NOT NULL DEFAULT 0,
	`player_id` INT NOT NULL,
	KEY (`account_id`), KEY (`player_id`), KEY (`world_id`), UNIQUE (`account_id`, `player_id`),
	FOREIGN KEY (`account_id`) REFERENCES `accounts`(`id`) ON DELETE CASCADE,
	FOREIGN KEY (`player_id`) REFERENCES `players`(`id`) ON DELETE CASCADE
) ENGINE = InnoDB;
 
Back
Top