Hi all,
i dont know there my mistake is, maybe some can help me
----------------------------------------------
-- Create Portpoint only Admins
elseif cmd[1] == "/ptnew" then
local target;
-- Checking if Admin :
if not event.player:isAdmin() then return msgAccessDenied(event.player) end
local name = cmd[2]
local pos = event.player:getPlayerPosition()
ptnew(event.player, pos, name)
-------------------------------------------------
function ptnew (admin, pos, name)
local targetPos = admin:getPlayerPosition();
local posx = targetPos.x;
local posy = targetPos.y;
local posz = targetPos.z;
admin:sendTextMessage(posx);
admin:sendTextMessage(posy);
admin:sendTextMessage(posz);
admin:sendTextMessage(name);
database:queryupdate("INSERT INTO `port` (`name`, `posx`, `posy`, `posz`) VALUES ('".. name .."', '".. posx .."', ".. posy ..", '".. posz .."')")
end
------------------------------------------------
when i do /ptnew test 1
it will not take the 1, so when i have a space the rest after the space will not in the name
thx for you help
Vossi