![]() |
Prize Shop script
The Events Team Admin in the pw I work for asked me to make him a script for a prize shop. I made it and he sent this script back saying it didn't work. This isn't the script I sent him though.... Can someone fix the script before I go mad?
HTML Code:
//#CLIENTSIDE |
remove quotes from the number ("30" to 30 etc..)
addweapon("*Prizes/Light Mouse"); need ( ) addweapon is serverside setting clientr. strings must be done serverside :) |
So, it should be this...?
HTML Code:
//#SERVERSIDE |
Quote:
|
Quote:
|
Quote:
|
Quote:
^Right, take a look at these: PHP Code:
Compared to: PHP Code:
Get the picture? |
Quote:
PHP Code:
|
Quote:
I fixed my post before you posted, your page just wasn't refreshed. I was trying to find a way to word it correctly and realized I had worded it incorrectly. Fixed it just in time, though ^^ |
PHP Code:
{ } format PHP Code:
|
Quote:
I avoided doing such since you would only do so assuming everything for each and every item would be the same (I.E, the same chat messages and so forth). Unless everything is going to be the same, you'd have to break it up as I did. Else, your method would be the way to go. Since he didn't group everything as such, I just took his method and fixed it up. EDIT: Though now that I think about it, you could set it all up in the arrays, so I guess it would work either way. The only thing you should do is break up your array so it doesn't extend far across the script as such. |
Quote:
|
Holy shizzle! I started a scripting war!
|
Where would I put the script to make it work?
|
Quote:
You say you scripted the system to begin with and now you don't know where scripts go? x-x |
| All times are GMT +2. The time now is 02:25 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.