Races in dialogs... - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Races in dialogs... (
/showthread.php?tid=267268)
Races in dialogs... -
Edvin - 07.07.2011
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...
Re: Races in dialogs... -
Donya - 07.07.2011
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;
}
Re: Races in dialogs... -
Edvin - 07.07.2011
Thx dude it works