Hello everyone, I've been trying to get my model to work, but i found an error saying there was an unfinished string in this file:
*DISCLAIMER: Yes this is an Osama Bin Laden skin, its for one of my donators, no offense to anyone who finds this offensive!
[CODE]ITEM.Name = 'Osama Bin Laden'
ITEM.Price = 50000
ITEM.Model = 'models/jessev92/player/misc/osamabl1.mdl'
function ITEM:OnEquip(ply, modifications)
if not ply._OldModel then
ply._OldModel = ply:GetModel()
end
timer.Simple(1, function() ply:SetModel(self.Model) end)
end
function ITEM:OnHolster(ply)
if ply._OldModel then
ply:SetModel(ply._OldModel)
end
end
function ITEM:PlayerSetModel(ply)
ply:SetModel(self.Model)
end
[/CODE]
[QUOTE=Marshgray;46243719]Hello everyone, I've been trying to get my model to work, but i found an error saying there was an unfinished string in this file:
*DISCLAIMER: Yes this is an Osama Bin Laden skin, its for one of my donators, no offense to anyone who finds this offensive!
[CODE]ITEM.Name = 'Osama Bin Laden'
ITEM.Price = 50000
ITEM.Model = 'models/jessev92/player/misc/osamabl1.mdl'
function ITEM:OnEquip(ply, modifications)
if not ply._OldModel then
ply._OldModel = ply:GetModel()
end
timer.Simple(1, function() ply:SetModel(self.Model) end)
end
function ITEM:OnHolster(ply)
if ply._OldModel then
ply:SetModel(ply._OldModel)
end
end
function ITEM:PlayerSetModel(ply)
ply:SetModel(self.Model)
end
[/CODE][/QUOTE]
Can you tell us the error?
It says
[ERROR] addons/pointshop-master/lua/pointshop/items/playermodels/osama.lua:3: unfinished string near '''
1. unknown - addons/pointshop-master/lua/pointshop/items/playermodels/osama.lua:0
[POINTSHOP] Item missing name: playermodels/osama.lua
So yeah two errors so I'm not sure what to do...
EDIT: My friends obama works so I'm not sure why mine wont work..
The Obama is actually an error for some people and for others it isnt so I;m not sure whats wrong
[QUOTE=Marshgray;46245885]The Obama is actually an error for some people and for others it isnt so I;m not sure whats wrong[/QUOTE]
Set up FastDL/Workshop.lua
Thanks, but also I'm not sure what to do about the error with MY skin..
Try double quotes
[QUOTE=Disseminate;46256238]Try double quotes[/QUOTE]
Why? '' and "" are strings, one doesn't matter over the other.
I was thinking there was some kind of encoding issue.
I don't get any syntax errors when I use it. Try to check that your server isn't messing with the file, reupload it and see if you get the error again.
Sorry, you need to Log In to post a reply to this thread.