Races in dialogs...
#1

hi all,
i wan to make a dialog with all Ryder Races...to load the races what are in scriptfiles in a dialog...
but doesn't work...
here is the dialog
pawn Код:
CMD:rraces( playerid, params[])
{
    new string[ 128 ], ryder[ 1024 ];
    format( ryder, 1024, "{FFFFFF}" );
    format( string, 128, "%s\n", LoadRaceNames( ) );
    strcat( ryder, string, 1024 );
    ShowPlayerDialog( playerid, 12000, DIALOG_STYLE_LIST, "{FFFFFF}Real Races", ryder, "Select", "Cancel" );
    return 1;
}
when i type /rraces in game the dialog is empty
help me anyone pls...
Reply
#2

pawn Код:
CMD:loadracenames( playerid, params[])
{
    new string[ 128 ], ryder[ 1024 ];
    LoadRaceNames( );
    format( ryder, 1024, "{FFFFFF}" );
    Loop(x, TotalRaces){
        format( string, 128, "%s\n", RaceNames[x]);
        strcat( ryder, string, 1024 );
    }
    ShowPlayerDialog( playerid, 12000, DIALOG_STYLE_LIST, "{FFFFFF}Real Races", ryder, "Select", "Cancel" );
    return 1;
}
Reply
#3

Thx dude it works
Reply


Forum Jump:


Users browsing this thread: