C++ Script help menu

Shout-Out

User Tag List

Results 1 to 11 of 11
  1. #1
    *~Descending~*'s Avatar Member
    Reputation
    25
    Join Date
    Sep 2008
    Posts
    71
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    C++ Script help

    Ok, I've been working on this AV Script here for awhile now, and I'm getting a few errors some very annoying ones...
    Errors:
    Code:
    c:ascenttrunksrcascent-worldAlteracValley.h(30) : error C2143: syntax error : missing ';' before '*'
    c:ascenttrunksrcascent-worldAlteracValley.h(30) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    c:ascenttrunksrcascent-worldAlteracValley.h(30) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    c:ascenttrunksrcascent-worldAlteracValley.h(30) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    c:ascenttrunksrcascent-worldAlteracValley.h(30) : warning C4183: 'Create': missing return type; assumed to be a member function returning 'int'
    c:ascenttrunksrcascent-worldAlteracValley.h(30) : error C2440: 'return' : cannot convert from 'AlteracValley *' to 'int *'
            Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    Line:
    Code:
    static &CBattleground * Create(MapMgr * m, uint32 i, uint32 l, uint32 t) { return new AlteracValley(m, i, l, t); }
    I put the &CBattlegound in av.h there to test if it would stop getting this error:
    Code:
    AlteracValley.cpp
    ....srcascent-worldAlteracValley.cpp(67) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(67) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(68) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(68) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(69) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(69) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(70) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(70) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(71) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(71) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(72) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(72) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(73) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(73) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(74) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(74) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(75) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(75) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(76) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(76) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(77) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(77) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(78) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(78) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(79) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(79) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(80) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(80) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(81) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(81) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(82) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(82) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(83) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(83) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(84) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(84) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(85) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(85) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(86) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(86) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(87) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(87) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(88) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(88) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(89) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(89) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(90) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(90) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(91) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(91) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(92) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(92) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(93) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(93) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(94) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(94) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(95) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(95) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(96) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(96) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(97) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(97) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(98) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(98) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(99) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(99) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(100) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(100) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(101) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(101) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(102) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(102) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(103) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(103) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(104) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(104) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(105) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(105) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(106) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(106) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(107) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(107) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(108) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(108) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(109) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(109) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(110) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(110) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(111) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(111) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(112) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(112) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(113) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(113) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(114) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(114) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(115) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(115) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(116) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(116) : error C2109: subscript requires array or pointer type
    ....srcascent-worldAlteracValley.cpp(117) : error C3867: 'CBattleground::SetWorldState': function call missing argument list; use '&CBattleground::SetWorldState' to create a pointer to member
    ....srcascent-worldAlteracValley.cpp(117) : fatal error C1003: error count exceeds 100; stopping compilation
    It get's rid of the error once I put &CBattleground in AlteracValley.h but gives more errors (Top)
    Would rather not post the whole script. Any help is much appreciated and will Rep.
    Last edited by *~Descending~*; 10-04-2008 at 06:49 PM.

    C++ Script help
  2. #2
    Energizer Rabbit's Avatar Active Member
    Reputation
    22
    Join Date
    Oct 2007
    Posts
    177
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try downloading a pre-maid scrip

  3. #3
    *~Descending~*'s Avatar Member
    Reputation
    25
    Join Date
    Sep 2008
    Posts
    71
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not looking for a pre-made script, all the AV script's that are out are either not finished or illegal to use.

  4. #4
    TheSpidey's Avatar Elite User
    Reputation
    365
    Join Date
    Jan 2008
    Posts
    2,200
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You'll need to post more source if you want assistance

  5. #5
    *~Descending~*'s Avatar Member
    Reputation
    25
    Join Date
    Sep 2008
    Posts
    71
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nvm fixed it.

  6. #6
    TK_Inc0rperate's Avatar Member
    Reputation
    10
    Join Date
    Sep 2008
    Posts
    11
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by *~Descending~* View Post
    I'm not looking for a pre-made script, all the AV script's that are out are either not finished or illegal to use.
    ..... you're hosting an emulated server for world of warcraft.....

  7. #7
    Aznex's Avatar Contributor
    Reputation
    128
    Join Date
    Feb 2008
    Posts
    770
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ..... you're hosting an emulated server for world of warcraft.....
    *Cough* Someone *Cough* will sue you with her laywers

  8. #8
    Sounddead's Avatar Contributor
    Reputation
    160
    Join Date
    Sep 2007
    Posts
    1,126
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ..... you're hosting an emulated server for world of warcraft.....
    Emulation is not illegal.

    I live in a shoe

  9. #9
    *~Descending~*'s Avatar Member
    Reputation
    25
    Join Date
    Sep 2008
    Posts
    71
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ..... you're hosting an emulated server for world of warcraft.....
    Rofl thats all I can say... ROFL

  10. #10
    Clain's Avatar Banned
    Reputation
    179
    Join Date
    Jan 2008
    Posts
    1,396
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Lol when you declare a variable you can't just do :
    Then again i never work/use C++

    lol int

    lol int32 would be correct i think. Then it sounds like your using the SetWorldState function wrong.

    Edit nvm : I fail at C++!
    Last edited by Clain; 10-10-2008 at 07:15 PM.

  11. #11
    *~Descending~*'s Avatar Member
    Reputation
    25
    Join Date
    Sep 2008
    Posts
    71
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, I've fixed the error and the world state errors only came along with adding the &

Similar Threads

  1. Lua script help and general questions from beginner
    By WinKIller0 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 02-23-2008, 04:38 AM
  2. LUA Boss Script Help
    By neurothymia in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 02-05-2008, 02:57 PM
  3. Need LUA Scripting Help ?
    By Snailz in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 02-04-2008, 12:36 PM
  4. 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
  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 07:39 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