![]() |
Shop Script Help
PHP Code:
Error: Unknown command: addweapon Event/Hug how do i fix or is there a substitute for addweapon??? |
In offline playerworlds, you should use toweapons Event/Hug. It's possible that the level editor doesn't recognize the addweapon command. Just see if it works online.
|
it dont work online thats the prob :(
|
You should probably get into the habit of not doing multiple checks on the same line unless they're directly related.
+ try addweapon ("Event/Hug"); It might even be case sensitive, I'm not sure. |
Quote:
addweapon does not exist offline. If you're going to test it online then ignore what the level maker says. I see no reason why that script wouldn't work online on the serverside. |
Quote:
Quote:
|
Quote:
|
Lol it dont work at all online
|
Does the NPC even exist in the NC?
|
Quote:
|
how do i put it in nc???
|
there's really no point putting that in NC. just keep it in a level based NPC.
|
player.addWeapon("WEAPONNAMEHERE");
Only works serverside so make a case and do a triggerserver. |
Quote:
Anyway, first off, make sure you got the script you posted somewhere in a level npc, not inside a weapon. Also, make sure that the weapon "Event/Hug" actually exists and has got at least a tiny bit of code which fires when the weapon is added, so you know buying it actually worked. If both apply, everything should work fine. If not, you are probably still doing something wrong. Maybe write a more detailed description for us? Or even provide the code of the weapon, might help. All up to you. |
I take it you guys didn't realize this thread is quite old? :o
|
Quote:
|
Quote:
|
I scroll up to the top by habit and that does involve checking the date :)
|
Quote:
|
Quote:
|
Oh I see
|
| All times are GMT +2. The time now is 06:17 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.