what's wrong with my script? :(
4 posters
Page 1 of 1
what's wrong with my script? :(
Hey people, my script doesn't work? Here have a look:
It's supposed to give you an AK-47 at spawn. What am i doing wrong?
- Code:
addhook("spawn" , "_spawn")
function _spawn(id)
parse("equip "..id.." 30"
end
It's supposed to give you an AK-47 at spawn. What am i doing wrong?
SuperSkye~- Hated
- Posts : 40
Points : 59
Reputation : -10
Join date : 2012-07-31
Re: what's wrong with my script? :(
I don't know how to script or write lua. Sorry bro. Ask Surf in a PM.
Re: what's wrong with my script? :(
You forgot to close the brackets
Easy fix,
- Code:
addhook("spawn" , "_spawn")
function _spawn(id)
parse("equip "..id.." 30")
end
Easy fix,
SuperSkye~- Hated
- Posts : 40
Points : 59
Reputation : -10
Join date : 2012-07-31
Re: what's wrong with my script? :(
DO NOT USE EQUIP IN A SPAWN HOOK!
Use
Use
- Code:
function spawn(id)
return 1,2,3 --ID's of weapons
end
VADemon- Posts : 101
Points : 125
Reputation : 9
Join date : 2012-07-31
Age : 22
Re: what's wrong with my script? :(
VADemon wrote:DO NOT USE EQUIP IN A SPAWN HOOK!
Useinstead.
- Code:
function spawn(id)
return 1,2,3 --ID's of weapons
end
Thanks!
SuperSkye~- Hated
- Posts : 40
Points : 59
Reputation : -10
Join date : 2012-07-31
Similar topics
» can u help me fix my lua script pls.?
» Resetscore lua script
» Admin Script
» Macro Script - Release
» Broadcast Script Request
» Resetscore lua script
» Admin Script
» Macro Script - Release
» Broadcast Script Request
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|