Author Topic: My questions thread  (Read 9625 times)

//Made by Johnny Blockhead
package SkiiFetch
{
   function servercmdgetskiis(%this, %client)
   {
      messageClient(%client,'',"Wish granted, skii carefully!");
      startskiing(%this); //I don't even know if this is going to work lol
   }
};


It doesn't work ingame
Concept: A player says /getskiis, and then they get skiis.
Am I doing the right concept? I tried removing startskiing(%this); but it didn't even work.
It might be a packaging error, idk
No syntax errors
« Last Edit: October 20, 2013, 06:58:13 PM by Johnny Blockhead »

there should only be 1 parameter and that should be %client

Still doesn't work
I might not be packaging it right


Searching for a tutorial on this....
« Last Edit: October 20, 2013, 07:18:47 PM by Johnny Blockhead »

I just checked the skiis, the paramater for start skiing is the player not the client

I've been having a problem lately. View my post above swollow's for all the information in the add-on.
It is not .zip, it is just a folder.
I put it in Add-Ons, and then run the game.
The name is server_fetchskii
Look at this

wtfno


//Made by Johnny Blockhead
package SkiiFetch
{
   function servercmdgetskiis(%client, %player)
   {
      messageClient(%client,'',"Wish granted, skii carefully!");
      startskiing(%player); //I don't even know if this is going to work lol
   }
};


Enabled it, no syntax errors.
/fetchskiis just doesn't work


NVM STUPID
DID NOT ACTIVATE PACKAGE

you can't just type in player into the paramaters, the paramaters for the serverCmd is client and then every word they type after it try
startSkiing(%client.player);


because you should do %client.player.startSkiing();
but optionally you can do startSkiing(%client.player);

the "%player" paramater in your server cmd is actually the first word they would type afterwards
like /getSkiis bananas
and %player would equal "bananas"

Oh
Thanks! That will be very useful for future programs.

   

    function servercmdShake
    {
            %client.player.playershake();
            messageClient(%client,'',"<color:FFFFFF>lovey.");
    };



The blue is a function that doesn't exist.
You know how when you type in a message and then send it, your character kind of shakes? What is the function for that? I want blue to be replaced by the correct function

you mean like the talking animation?