![]() |
Not adding or removing from guild
So, im trying to make it where you can add staffs clientr.var, wep, and tag all in one move, like many have done before. Dont quit see what im doing wrong. Please. :)
PHP Code:
|
function onActionServerSide(params) {
ex: triggerserver("gui",name,{foo,bar,leb }, baroo); so, params[0] is the first in a array, would be foo. params[1] would be bar, not baroo. (this is just thoughts, i haven't tested it,) |
PHP Code:
params[2] and params[3] don't even exist, do they? Since you're only sending: PHP Code:
|
An off-topic suggestion, if you feel the need to add a comment for almost every line of code, you should put the comment behind the line, not above it. Increases readability.
|
i put {"addstaff", temp.toAdd}
but still nothing. Trying to send everything said after the /addstaff, because of the way it sets. |
How do you expect it to add/remove when you're using undefined parameters? You haven't defined params[2/3] within your add/remove functions, only params[1].
|
Ok, i just did
PHP Code:
PHP Code:
PHP Code:
|
No point making param[0] into params (which does not make the other params as params[#]). Get rid of the s in params, it's param.
Quote:
|
Quote:
|
Quote:
|
you should rename the "params" to something else, due there is a default thing called "params" (or was it "param" :oo:)
i'm not sure it's the problem but it's worth a shot, right? |
That's not the problem.
|
No its not the problem, and I do prefer it the way it is. I have it working for the /addstaff and /removestaff now. Like i said, its only the /settag part that isnt working.
|
Well, on the serverside, you got:
PHP Code:
PHP Code:
|
I got it to set to (StaffTag), but no nick in there with:
serverside in the trigger PHP Code:
PHP Code:
also, since graal.net is down, what is SPC exactly, what's it mean, and what's it used for? also, any ideas on how to add the nick in? |
PHP Code:
PHP Code:
|
Quote:
SPC is, just like @, a concatenation operator. Instead of just appending the preceding string to the following string though, it adds a space inbetween. |
Quote:
:D |
oh, makes sense. TY.
Any idea on the reason the code isn't pulling the name out of the guild.txt, and only setting the tag? |
Quote:
|
I forgot to change it, my bad. Thanks lol!
|
| All times are GMT +2. The time now is 08:01 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.