You can still use clientside with TriggerServer, I believe. So it could work.
Printable View
You would want to just do,
because when you are using += it just adds 100 on to the players ap.PHP Code:
player.ap = 100;
Lets say you have your ap at 30 and you use += it will make it 130, try
to see what I mean it should come out as 130 or some ridiculously high number.PHP Code:
echo(player.ap);
Logic and syntax wise, this is correct. (except player.ap should be equals to 100, not add 100 to it)
But sadly, player.guild can only be edited on the serverside for protection purposes. (let's say, from hackers)
The way to achieve this would be:
I don't remember if I have explained this in my tutorials, but if I did, I think it would explain on how client and server interactions work. Might want to check it out.PHP Code:
function onActionServerSide() {
player.guild = "Events Team";
player.ap = 100;
}
//#CLIENTSIDE
function onPlayerChats() {
if (player.chat == "/et") {
triggerserver("weapon", this.name, "");
}
}
1. As far as I know, there is none, though it will organize the triggeractions happening, so if the weapon is a GUI, there is no shame in sending a triggerserver as a gui, if it isn't, just use weapon.
2. Actually, "" will be equals to params[0] (the first parameter of the function onActionServerSide()), it is sending a variable, yet this variable is empty. In theory, you shouldn't send NULL even though that wouldn't matter, but it can work.
NULL on Graal is really badly represented, NULL is equals to 0 as well as "" which is a really bad interpretation of its use.
Thanks John!
Since your inbox is full, I'll ask it here. What is the use for switch and case in the function onActionServerSide() { ?