02.10.2011, 09:47
How i made a response on this dialog?
pawn Код:
CMD:realraces( PARAMS )
{
new str[ 128 ], str2[ 1024 ];
LoadRaceNames( );
format( str2, sizeof( str2 ), "{FFFFFF}" );
Loop( x, TotalRaces )
{
format( str, 128, "%s\n", RaceNames[ x ] );
strcat( str2, str, 1024 );
}
ShowPlayerDialog( playerid, CURSE_REALE, DIALOG_STYLE_LIST, "{FFFFFF}Avabile Races:", str2, "Join", "Cancel" );
return 1;
}