24.11.2012, 00:26
pawn Код:
case DIALOG_ENTRANCES_EDIT_IPOS_X:
{
if( response )
{
EntranceInfo [ plEditingEntrance [ playerid ] ] [ iX ] = strval( inputtext ); // Specifically this.
SaveEntrance( plEditingEntrance [ playerid ] );
LoadEntrance( plEditingEntrance [ playerid ] );
new
cStr [ 32 ],
iStr [ 128 ];
format( cStr, 32, "Editing: Entrance #%d", plEditingEntrance [ playerid ] );
format( iStr, 128, ""#I_RoyalBlue"Current Teleport Y: "#I_White"%f\n\nTeleport Y is where the player will be teleported to when entering the Entry Point.", EntranceInfo [ plEditingEntrance[ playerid ] ] [ iY ] );
ShowPlayerDialog( playerid, DIALOG_ENTRANCES_EDIT_IPOS_Y, DIALOG_STYLE_INPUT, cStr, iStr, "Change", "Back" );
printf("%f", strval( inputtext ) );
}
else return ShowDialog( playerid, DIALOG_ENTRANCES_EDIT );
}