I'm sure it's simple and I've overlooked/messed something up but:
Everything works fine, except when you join it doesn't ask you what race you want, instead, you have to do the "changerace" command to get a race.
???!!!
war3ft 3.0 rc5 help
Moderator: Forum Moderator
you have to comment out some code in the sourcefiles and recompile it
war3ft.inl
find:
Small:
// User has no race
if ( p_data[id][P_RACE] == 0 )
{
new menu_id, keys;
new menuUp = player_menu_info( id, menu_id, keys );
// Only display menu if another isn't shown
if ( menuUp <= 0 )
{
WC3_ChangeRaceStart( id );
}
// Try again in 1 second
else
{
set_task( 1.0, "WC3_GetUserInput", TASK_GETINPUT + id );
}
}
and change to:
Small:
// User has no race
if ( p_data[id][P_RACE] == 0 )
{
// new menu_id, keys;
// new menuUp = player_menu_info( id, menu_id, keys );
// Only display menu if another isn't shown
// if ( menuUp <= 0 )
// {
WC3_ChangeRaceStart( id );
// }
// Try again in 1 second
// else
// {
// set_task( 1.0, "WC3_GetUserInput", TASK_GETINPUT + id );
// }
}
This works the way it did before the menuUp code, but its not compatible to csdm
[quote]
war3ft.inl
find:
Small:
// User has no race
if ( p_data[id][P_RACE] == 0 )
{
new menu_id, keys;
new menuUp = player_menu_info( id, menu_id, keys );
// Only display menu if another isn't shown
if ( menuUp <= 0 )
{
WC3_ChangeRaceStart( id );
}
// Try again in 1 second
else
{
set_task( 1.0, "WC3_GetUserInput", TASK_GETINPUT + id );
}
}
and change to:
Small:
// User has no race
if ( p_data[id][P_RACE] == 0 )
{
// new menu_id, keys;
// new menuUp = player_menu_info( id, menu_id, keys );
// Only display menu if another isn't shown
// if ( menuUp <= 0 )
// {
WC3_ChangeRaceStart( id );
// }
// Try again in 1 second
// else
// {
// set_task( 1.0, "WC3_GetUserInput", TASK_GETINPUT + id );
// }
}
This works the way it did before the menuUp code, but its not compatible to csdm
[quote]
yeah, im having a similar problem with rc5, you get money for kills and xp for kills, but you cant select a race at all. If you type changerace nothing happens, what have i done? I have the most recent version of amxmodx and metamod if that matters, tell me if you want a full information thingy. time is short right now sorry.
-
- Rifleman
- Posts: 162
- Joined: Thu Dec 21, 2006 2:12 am
did someone test this and does it really work?
mattypee wrote:you have to comment out some code in the sourcefiles and recompile it
war3ft.inl
find:
[small]
// User has no race
if ( p_data[id][P_RACE] == 0 )
{
new menu_id, keys;
new menuUp = player_menu_info( id, menu_id, keys );
// Only display menu if another isn't shown
if ( menuUp <= 0 )
{
WC3_ChangeRaceStart( id );
}
// Try again in 1 second
else
{
set_task( 1.0, "WC3_GetUserInput", TASK_GETINPUT + id );
}
}
and change to:
// User has no race
if ( p_data[id][P_RACE] == 0 )
{
// new menu_id, keys;
// new menuUp = player_menu_info( id, menu_id, keys );
// Only display menu if another isn't shown
// if ( menuUp <= 0 )
// {
WC3_ChangeRaceStart( id );
// }
// Try again in 1 second
// else
// {
// set_task( 1.0, "WC3_GetUserInput", TASK_GETINPUT + id );
// }
}
[/small]
-
- WC3Mods Donor
- Posts: 223
- Joined: Thu Mar 09, 2006 6:05 pm
- Location: Germany
- Contact: