Results 1 to 10 of 28

Thread: Kicking bots

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #21
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by filthy_freak_ View Post
    Before I attempt to implement the method into my libcod, I have a quick question;

    Why is it
    Code:
    void PlayerCmd_renamebot(int a1) {
    instead of
    Code:
    void PlayerCmd_renamebot(string newname) {
    since you do
    Code:
    players[i] renamebot(newname);
    a1 is like he said the entity number. The parameters you use are stored in the stack of cod script. They get retrieved by Script_GetString(0). (different function in libcod)

  2. The Following User Says Thank You to Mitch For This Useful Post:

    filthy_freak_ (24th May 2014)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •