SendChatMessage Diff syntax than what it should be ?? menu

Shout-Out

User Tag List

Results 1 to 4 of 4
  1. #1
    Deathbringer123's Avatar Master Sergeant
    Reputation
    25
    Join Date
    Oct 2010
    Posts
    121
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    SendChatMessage Diff syntax than what it should be ??

    Ok i have downloaded a lua Script for Rotface and i get this error
    [string "scripts\Rotafce.lua":220: bad argument #4 to 'SendCharMessage' <number expected, got no value>
    the Send chat Msg code line is
    SendChatMessage(14, 0, "Fun time?")
    And im positive this is the right syntax im using ArcEmu rev 4140
    and help is greatly apreciated

    Thanks
    Death

    SendChatMessage Diff syntax than what it should be ??
  2. #2
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    :SendChatMessage()
    :SendChatMessageToPlayer()
    :SendChatMessageAlternateEntry()

    Are the functions.

    The error is saying line 220 and SendCharMessage, make sure it is SendChatMessage and post the actual script (or at least function).

  3. #3
    Deathbringer123's Avatar Master Sergeant
    Reputation
    25
    Join Date
    Oct 2010
    Posts
    121
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    function FEST.Festur_OnDeath (Unit, Event)
    Unit:RemoveEvents()
    Unit:SendChatMessage(14, 0, Chat.List.Sound_6)
    Plyr:PlaySoundToPlayer(Sounds.List.Sound_6)
    Unit:RegisterEvent("FEST.Festur_Debugz", 2000, 1)
    end
    Thats the Function and that was my Spelling mistake with the "SendCharMessage" it was "SendChatMessage"
    Sorry

  4. #4
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    If it's still not working:

    Unit:SendChatMessage(14, 0, Chat.List.Sound_6)

    Chat.List.Sound_6, show where it's defined. It may not be set to the right data type or not called in the correct fashion.

Similar Threads

  1. [Question] What sire should I use for powerleveling?
    By Dancingcow in forum World of Warcraft General
    Replies: 3
    Last Post: 09-18-2007, 07:18 AM
  2. Replies: 0
    Last Post: 08-02-2007, 12:32 AM
  3. What Someone Should Do For The Arena Fighting Community...
    By Jackalantern in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 04-13-2007, 07:10 PM
  4. What Someone Should Do For The Arena Fighting Community...
    By Jackalantern in forum World of Warcraft Exploits
    Replies: 1
    Last Post: 04-13-2007, 07:04 PM
  5. What class should i go (my main got hacked)
    By Zanatons in forum World of Warcraft General
    Replies: 4
    Last Post: 03-24-2007, 09:34 AM
All times are GMT -5. The time now is 06:45 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search