Trying To Update An Outdated Script, Help Is Needed! menu

These ads disappear when you log in.

Results 1 to 1 of 1
  1. #1
    bossrogue's Avatar Private
    Reputation
    1
    Join Date
    Jan 2010
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)

    Trying To Update An Outdated Script, Help Is Needed!

    Hello.
    I am trying to update a bit outdated script.

    sGamblingSystem.SetupMatch(pPlayer, pDefender);
    error
    error C2065: 'pDefender' : undeclared identifier

    .................................................. .................................................. ................................
    if(Player *pDefender = sObjectMgr->GetPlayerByLowGUID((pCode));
    error
    error C2143: syntax error : missing ')' before ';'
    .................................................. .................................................. .................................
    if(pPlayer->GetSession()->GetAccountId() == pDefender->GetSession()->GetAccountId())
    error
    error C2227: left of '->GetAccountId' must point to class/struct/union/generic type
    .................................................. .................................................. ................................
    if(pPlayer->getLevel() <= m_minRequiredLevel || pDefender->getLevel() <= m_minRequiredLevel )
    error
    error C2227: left of '->getLevel' must point to class/struct/union/generic type
    .................................................. .................................................. ...............................
    ChatHandler(pPlayer).PSendSysMessage(ARENA_GAMBLER _MSG_CHALLENGE_ISSUED, pDefender->GetName());
    error
    error C2227: left of '->GetName' must point to class/struct/union/generic type
    .................................................. .................................................. ...............................
    ChatHandler(pPlayer).PSendSysMessage(ARENA_GAMBLER _MSG_BET_AMOUNT_FAILED);
    error
    error C2440: '<function-style-cast>' : cannot convert from 'Player *' to 'ChatHandler'
    .................................................. .................................................. ..............................

Similar Threads

  1. [Help] A few errors when trying to update to rev 4337
    By MisterEMU in forum World of Warcraft Emulator Servers
    Replies: 15
    Last Post: 04-21-2008, 06:11 PM
  2. Scripting help please will +rep need for a new server
    By runiker in forum WoW EMU Guides & Tutorials
    Replies: 0
    Last Post: 01-22-2008, 04:05 AM
  3. [Help] I need help creating a script.
    By jokerjokes in forum World of Warcraft Emulator Servers
    Replies: 23
    Last Post: 01-10-2008, 10:06 PM
  4. Simple Lua Script , not working need help!
    By Arugos in forum World of Warcraft Emulator Servers
    Replies: 16
    Last Post: 12-30-2007, 02:06 PM
  5. [Ascent] Boss Scripts help
    By n0t5ew in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 12-24-2007, 03:04 PM
All times are GMT -5. The time now is 02:58 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved. Digital Point modules: Sphinx-based search